Commit 11c31848949987b3ebdb45b118c7cb5aee180829
1 parent
5899f235
feat:重写根据出库口获取出库明细看板接口
Showing
3 changed files
with
48 additions
and
7 deletions
src/main/java/com/huaheng/api/tv/controller/TvController.java
... | ... | @@ -23,8 +23,12 @@ import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail; |
23 | 23 | import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService; |
24 | 24 | import com.huaheng.pc.inventory.inventoryTransaction.service.InventoryTransactionService; |
25 | 25 | import com.huaheng.pc.report.excelReport.mapper.ExcelReportMapper; |
26 | +import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail; | |
26 | 27 | import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetailTv; |
27 | 28 | import com.huaheng.pc.shipment.shipmentDetail.mapper.ShipmentDetailMapper; |
29 | +import com.huaheng.pc.shipment.shipmentDetail.service.ShipmentDetailService; | |
30 | +import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader; | |
31 | +import com.huaheng.pc.shipment.shipmentHeader.service.ShipmentHeaderService; | |
28 | 32 | import com.huaheng.pc.task.taskDetail.domain.TaskDetail; |
29 | 33 | import com.huaheng.pc.task.taskDetail.service.TaskDetailService; |
30 | 34 | import com.huaheng.pc.task.taskHeader.domain.TaskHeader; |
... | ... | @@ -63,6 +67,8 @@ public class TvController extends BaseController { |
63 | 67 | @Resource |
64 | 68 | private ShipmentDetailMapper shipmentDetailMapper; |
65 | 69 | @Resource |
70 | + private ShipmentHeaderService shipmentHeaderService; | |
71 | + @Resource | |
66 | 72 | ExcelReportMapper mapper; |
67 | 73 | |
68 | 74 | //入库看板 |
... | ... | @@ -87,8 +93,8 @@ public class TvController extends BaseController { |
87 | 93 | //} |
88 | 94 | @GetMapping("/queryAllPicture") |
89 | 95 | public List<String> queryAllPicture() { |
90 | - //String directoryPath = "D:/Huaheng/uploadPath/file/"; | |
91 | - String directoryPath = "/Users/yiwenpeng/Desktop/素材"; | |
96 | + String directoryPath = "D:/Huaheng/uploadPath/file/"; | |
97 | + //String directoryPath = "/Users/yiwenpeng/Desktop/素材"; | |
92 | 98 | return listImageFiles(directoryPath); |
93 | 99 | } |
94 | 100 | |
... | ... | @@ -235,13 +241,47 @@ public class TvController extends BaseController { |
235 | 241 | //allBean.setUpList(upList); |
236 | 242 | |
237 | 243 | RoadwayLocationStatus roadwayLocationStatus = getRoadwayLocationStatus(roadway); |
238 | - List<ShipmentDetailTv> portList = shipmentDetailMapper.getTvOutList(par);//当前站台出库明细 | |
244 | + //List<ShipmentDetailTv> portList = shipmentDetailMapper.getTvOutList(par);//当前站台出库明细 | |
245 | + List<ShipmentDetailTv> portList = getShipmentDetailTaskByPort(par);//当前站台出库明细 | |
239 | 246 | allBean.setPortList(portList); |
240 | 247 | allBean.setRoadwayLocationStatus(roadwayLocationStatus); |
241 | 248 | return TVResult.success(allBean); |
242 | 249 | } |
243 | 250 | |
244 | 251 | |
252 | + public List<ShipmentDetailTv> getShipmentDetailTaskByPort(String par) { | |
253 | + List<ShipmentDetailTv> returnList = new ArrayList<>(); | |
254 | + List<TaskDetail> newShipmentDetailList = new ArrayList<>(); | |
255 | + | |
256 | + List<TaskHeader> taskHeaderList = taskHeaderService.list(new LambdaQueryWrapper<TaskHeader>() | |
257 | + .eq(TaskHeader::getInternalTaskType, 200) | |
258 | + .in(TaskHeader::getPort, par) | |
259 | + .eq(TaskHeader::getStatus, 50)); | |
260 | + | |
261 | + for (TaskHeader taskHeader : taskHeaderList) { | |
262 | + List<TaskDetail> taskDetailList = taskDetailService.list(new LambdaQueryWrapper<TaskDetail>().eq(TaskDetail::getTaskId, taskHeader.getId())); | |
263 | + newShipmentDetailList.addAll(taskDetailList); | |
264 | + } | |
265 | + for (TaskDetail taskDetail : newShipmentDetailList) { | |
266 | + ShipmentHeader shipmentHeader = shipmentHeaderService.getOne(new LambdaQueryWrapper<ShipmentHeader>().eq(ShipmentHeader::getCode, taskDetail.getBillCode())); | |
267 | + ShipmentDetailTv tv = new ShipmentDetailTv(); | |
268 | + tv.setMaterialcode(taskDetail.getMaterialCode()); | |
269 | + tv.setMaterialname(taskDetail.getMaterialName()); | |
270 | + tv.setQty(String.valueOf(taskDetail.getQty())); | |
271 | + tv.setInvoicenumber(taskDetail.getBillCode()); | |
272 | + tv.setTraynumber(taskDetail.getContainerCode()); | |
273 | + tv.setNoticeNo(shipmentHeader.getNoticeNo()); | |
274 | + if (taskDetail.getTaskType().equals(QuantityConstant.TASK_TYPE_WHOLESHIPMENT)) { | |
275 | + tv.setType("整出"); | |
276 | + } else { | |
277 | + tv.setType("分拣"); | |
278 | + } | |
279 | + returnList.add(tv); | |
280 | + } | |
281 | + return returnList; | |
282 | + } | |
283 | + | |
284 | + | |
245 | 285 | private RoadwayLocationStatus getRoadwayLocationStatus(String roadway) { |
246 | 286 | RoadwayLocationStatus roadwayLocationStatus = new RoadwayLocationStatus(); |
247 | 287 | int highEmptyContainer = getCount(2, roadway); //高库位空托 |
... | ... |
src/main/java/com/huaheng/pc/receipt/receiptDetail/controller/ReceiptDetailController.java
... | ... | @@ -137,7 +137,7 @@ public class ReceiptDetailController extends BaseController { |
137 | 137 | */ |
138 | 138 | @ApiOperation(value = "PDA查询入库详情", notes = "根据头表id获取入库单明细信息", httpMethod = "POST") |
139 | 139 | @RequiresPermissions("receipt:receiptDetail:list") |
140 | - @Log(title = "入库-PDA查询入库详情", operating = "PDA查询入库详情", action = BusinessType.GRANT) | |
140 | + //@Log(title = "入库-PDA查询入库详情", operating = "PDA查询入库详情", action = BusinessType.GRANT) | |
141 | 141 | @PostMapping("/pdaList") |
142 | 142 | @ResponseBody |
143 | 143 | public TableDataInfo pdaList(@ApiParam(name = "receiptDetail", value = "入库详情") ReceiptDetail receiptDetail, |
... | ... | @@ -185,7 +185,7 @@ public class ReceiptDetailController extends BaseController { |
185 | 185 | * 通过id查询入库详情 |
186 | 186 | */ |
187 | 187 | @ApiOperation(value = "查看入库详情", notes = "根据从表id获取入库单明细信息", httpMethod = "POST") |
188 | - @Log(title = "入库-入库单明细刷新", operating = "刷新入库单明细", action = BusinessType.GRANT) | |
188 | + //@Log(title = "入库-入库单明细刷新", operating = "刷新入库单明细", action = BusinessType.GRANT) | |
189 | 189 | @PostMapping("/refreshList") |
190 | 190 | @ResponseBody |
191 | 191 | public TableDataInfo refreshList(@RequestBody List<String> ids) { |
... | ... | @@ -204,7 +204,7 @@ public class ReceiptDetailController extends BaseController { |
204 | 204 | * 查询入库详情 |
205 | 205 | */ |
206 | 206 | @ApiOperation(value = "查看合并入库详情", notes = "根据头表ids获取入库单明细信息", httpMethod = "POST") |
207 | - @Log(title = "入库-入库单明细管理", operating = "查看入库单明细", action = BusinessType.GRANT) | |
207 | + //@Log(title = "入库-入库单明细管理", operating = "查看入库单明细", action = BusinessType.GRANT) | |
208 | 208 | @PostMapping("/mergeList") |
209 | 209 | @ResponseBody |
210 | 210 | public TableDataInfo mergeList(@ApiParam(name = "receiptDetail", value = "入库详情") ReceiptDetail receiptDetail, |
... | ... |
src/main/java/com/huaheng/pc/shipment/shippingCombination/controller/ShippingCombinationController.java
... | ... | @@ -402,7 +402,8 @@ public class ShippingCombinationController extends BaseController { |
402 | 402 | } |
403 | 403 | } |
404 | 404 | String collect = idsList.stream().map(String::valueOf).collect(Collectors.joining(",")); |
405 | - return handleMultiProcess(() -> createTask(collect)); | |
405 | + //return handleMultiProcess(() -> createTask(collect)); | |
406 | + return createTask(collect); | |
406 | 407 | } |
407 | 408 | |
408 | 409 | /** |
... | ... |