|
|
@@ -266,7 +266,13 @@ public class InServiceImpl implements InService {
|
|
266
|
266
|
err += "未找到名为\"" + wareName + "\"的库房;";
|
|
267
|
267
|
throw new Exception(err);
|
|
268
|
268
|
}
|
|
269
|
|
- Stack stack = stackMapper.selectByWareNameStackName(wareName, stackName, userId, belongId);
|
|
|
269
|
+ Stack stack = null;
|
|
|
270
|
+ try {
|
|
|
271
|
+ stack = stackMapper.selectByWareNameStackName(wareName, stackName, userId, belongId);
|
|
|
272
|
+ }catch (Exception e) {
|
|
|
273
|
+ throw new Exception("垛位查询重复");
|
|
|
274
|
+ }
|
|
|
275
|
+
|
|
270
|
276
|
if (stack == null) {
|
|
271
|
277
|
Stack stack_new = new Stack();
|
|
272
|
278
|
stack_new.setId(ware.getId().substring(0,10)+stackName);
|