Commit f2bf1eb876b3753b7e69cfcb0489ae6dba805f6c
1 parent
7a0246fb
解决双伸位入库的一些问题
Showing
4 changed files
with
15 additions
and
4 deletions
src/main/java/com/huaheng/api/wcs/controller/WarecellAllocation.java
... | ... | @@ -43,7 +43,8 @@ public class WarecellAllocation extends BaseController { |
43 | 43 | AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() { |
44 | 44 | @Override |
45 | 45 | public AjaxResult doProcess() { |
46 | - return warecellAllocationService.warecellAllocation(wcsTask); | |
46 | + AjaxResult ajaxResult = warecellAllocationService.warecellAllocation(wcsTask); | |
47 | + return ajaxResult; | |
47 | 48 | } |
48 | 49 | }); |
49 | 50 | return ajaxResult; |
... | ... | @@ -61,7 +62,13 @@ public class WarecellAllocation extends BaseController { |
61 | 62 | wcsTask.setWidth(width); |
62 | 63 | wcsTask.setHeight(height); |
63 | 64 | wcsTask.setWeight(weight); |
64 | - return warecellAllocationService.destinationAllocation(wcsTask); | |
65 | + AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() { | |
66 | + @Override | |
67 | + public AjaxResult doProcess() { | |
68 | + return warecellAllocationService.destinationAllocation(wcsTask); | |
69 | + } | |
70 | + }); | |
71 | + return ajaxResult; | |
65 | 72 | } |
66 | 73 | |
67 | 74 | |
... | ... |
src/main/java/com/huaheng/api/wcs/service/warecellAllocation/WarecellAllocationServiceImpl.java
... | ... | @@ -129,6 +129,9 @@ public class WarecellAllocationServiceImpl implements WarecellAllocationService |
129 | 129 | List<TaskDetail> taskDetailList = taskDetailService.list(taskDetailLambda); |
130 | 130 | |
131 | 131 | TaskHeader taskHeader = taskHeaderService.getById(wcsTask.getTaskNo()); |
132 | + if(taskHeader.getStatus() == 100) { | |
133 | + return AjaxResult.error("任务已经完成,不能再分库位"); | |
134 | + } | |
132 | 135 | |
133 | 136 | /* 循环查询入库组盘明细*/ |
134 | 137 | List<ReceiptContainerDetail> receiptContainerDetailList = new ArrayList<>(); |
... | ... |
src/main/java/com/huaheng/framework/web/controller/BaseController.java
... | ... | @@ -207,7 +207,7 @@ public class BaseController |
207 | 207 | ajaxResult = multiProcessListener.doProcess(); |
208 | 208 | } catch (Exception e) { |
209 | 209 | e.printStackTrace(); |
210 | - ajaxResult = AjaxResult.error("多线程处理异常"); | |
210 | + ajaxResult = AjaxResult.error(e.toString()); | |
211 | 211 | } finally { |
212 | 212 | semaphore.release(1); |
213 | 213 | } |
... | ... |
src/main/java/com/huaheng/pc/config/location/service/LocationServiceImpl.java
... | ... | @@ -343,7 +343,8 @@ public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> i |
343 | 343 | queryWrapper.eq(Location::getRowFlag, 0); |
344 | 344 | queryWrapper.eq(Location::getContainerCode, ""); |
345 | 345 | queryWrapper.eq(Location::getLocationType, location.getLocationType()); |
346 | - Location location1 = getOne(queryWrapper); | |
346 | + List<Location> locationList = list(queryWrapper); | |
347 | + Location location1 = locationList.get(0); | |
347 | 348 | return location1; |
348 | 349 | } |
349 | 350 | |
... | ... |