Commit 53fbb1e60bfdf30f0544406d10b30036e8a5fb08

Authored by 谭毅彬
1 parent 86d66bb8

修复双升位移库任务BUG

Signed-off-by: TanYibin <5491541@qq.com>
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
... ... @@ -317,7 +317,7 @@ public class WcsServiceImpl implements WcsService {
317 317 if (!direction) {
318 318 // 出库性质的任务圆库位不能为空
319 319 if (StringUtils.isEmpty(fromLocationCode)) {
320   - return Result.error("库位为空");
  320 + return Result.error("起始库位为空");
321 321 }
322 322 int rowFlag = fromLocation.getRowFlag();
323 323 if (rowFlag == QuantityConstant.ROW_OUT) {
... ... @@ -341,13 +341,6 @@ public class WcsServiceImpl implements WcsService {
341 341 return Result.error("创建移库任务失败");
342 342 }
343 343 preTaskNo = result.getResult().getId();
344   - // 移库任务
345   - taskHeader.setPreTaskNo(preTaskNo);
346   - boolean success = taskHeaderService.updateById(taskHeader);
347   - if (!success) {
348   - return Result.error("更新任务状态失败");
349   - }
350   -// return Result.error("先执行移库任务");
351 344 }
352 345 } else {
353 346 // 如果是有任务,从这个库位入托盘,那么不能生成新的出库任务。必须等这个任务完成以后,重新生成新的移库后,这个任务才能执行。
... ...