Commit ab3b55fd0812b16692b530b7e91f2daee2b4020f
1 parent
1e6b8a96
站台任务看板接口修改,封闭任务类型,任务状态字段给前端
Showing
3 changed files
with
31 additions
and
49 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/mobile/controller/TaskController.java renamed to huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/mobile/controller/MobileController.java
... | ... | @@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | 5 | import io.swagger.annotations.Api; |
6 | 6 | import org.jeecg.common.api.vo.Result; |
7 | +import org.jeecg.modules.system.entity.SysDictItem; | |
8 | +import org.jeecg.modules.system.service.impl.SysDictItemServiceImpl; | |
7 | 9 | import org.jeecg.modules.wms.api.mobile.entity.TvTaskVo; |
8 | 10 | import org.jeecg.modules.wms.task.taskHeader.entity.TaskDetail; |
9 | 11 | import org.jeecg.modules.wms.task.taskHeader.entity.TaskHeader; |
... | ... | @@ -18,19 +20,23 @@ import org.springframework.web.bind.annotation.RestController; |
18 | 20 | import javax.annotation.Resource; |
19 | 21 | import java.util.ArrayList; |
20 | 22 | import java.util.Arrays; |
23 | +import java.util.HashMap; | |
21 | 24 | import java.util.List; |
22 | 25 | |
23 | 26 | /** |
24 | 27 | */ |
25 | 28 | @Api(tags = "Mobile") |
26 | 29 | @RestController |
27 | -@RequestMapping("/api/mobile/task") | |
28 | -public class TaskController { | |
30 | +@RequestMapping("/api/mobile") | |
31 | +public class MobileController { | |
29 | 32 | |
30 | 33 | @Resource |
31 | 34 | private TaskHeaderServiceImpl taskHeaderService; |
32 | 35 | |
33 | 36 | @Resource |
37 | + private SysDictItemServiceImpl sysDictItemService; | |
38 | + | |
39 | + @Resource | |
34 | 40 | private TaskDetailServiceImpl taskDetailService; |
35 | 41 | |
36 | 42 | @GetMapping("taskOfStation") |
... | ... | @@ -40,6 +46,27 @@ public class TaskController { |
40 | 46 | stationList = Arrays.asList(code.split(",")); |
41 | 47 | } |
42 | 48 | |
49 | + HashMap<String, String> typeMap = new HashMap<>(); | |
50 | + typeMap.put("100", "整盘入库"); | |
51 | + typeMap.put("200", "补充入库"); | |
52 | + typeMap.put("300", "整盘出库"); | |
53 | + typeMap.put("400", "分拣出库"); | |
54 | + typeMap.put("500", "空容器入库"); | |
55 | + typeMap.put("600", "空容器出库"); | |
56 | + typeMap.put("700", "盘点"); | |
57 | + typeMap.put("800", "移库"); | |
58 | + typeMap.put("900", "出库查看"); | |
59 | + typeMap.put("1000", "换站"); | |
60 | + typeMap.put("1100", "空托盘组入库"); | |
61 | + typeMap.put("1200", "空托盘组出库"); | |
62 | + typeMap.put("1300", "空托盘组换站"); | |
63 | + | |
64 | + HashMap<String, String> statusMap = new HashMap<>(); | |
65 | + statusMap.put("1", "生成任务"); | |
66 | + statusMap.put("10", "下发任务"); | |
67 | + statusMap.put("50", "到达拣选台"); | |
68 | + statusMap.put("100", "任务完成"); | |
69 | + | |
43 | 70 | LambdaQueryWrapper<TaskHeader> hQuery = Wrappers.lambdaQuery(); |
44 | 71 | hQuery.eq(TaskHeader::getStatus, QuantityConstant.TASK_STATUS_ARRIVED_STATION) |
45 | 72 | .in(stationList.size() > 0, TaskHeader::getToPortCode, stationList); |
... | ... | @@ -47,6 +74,8 @@ public class TaskController { |
47 | 74 | |
48 | 75 | List<TvTaskVo> list = new ArrayList<>(); |
49 | 76 | for (TaskHeader header : headers) { |
77 | + header.setUserdef1(typeMap.get(header.getTaskType().toString())); | |
78 | + header.setUserdef2(statusMap.get(header.getStatus().toString())); | |
50 | 79 | TvTaskVo vo = new TvTaskVo(); |
51 | 80 | LambdaQueryWrapper<TaskDetail> dQuery = Wrappers.lambdaQuery(); |
52 | 81 | dQuery.eq(TaskDetail::getTaskHeaderId, header.getId()); |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/mobile/controller/ReceiptController.java deleted
1 | -package org.jeecg.modules.wms.api.mobile.controller; | |
2 | - | |
3 | -import javax.annotation.Resource; | |
4 | - | |
5 | -import org.jeecg.modules.wms.api.mobile.service.IMobileService; | |
6 | -import org.jeecg.modules.wms.framework.controller.HuahengBaseController; | |
7 | -import org.springframework.web.bind.annotation.RequestMapping; | |
8 | -import org.springframework.web.bind.annotation.RestController; | |
9 | - | |
10 | -import io.swagger.annotations.Api; | |
11 | - | |
12 | -/** | |
13 | - * PDA入库接口,整合复用PC端service层接口 | |
14 | - */ | |
15 | -@Api(tags = "Mobile") | |
16 | -@RestController | |
17 | -@RequestMapping("/mobile/receipt") | |
18 | -public class ReceiptController extends HuahengBaseController { | |
19 | - | |
20 | - @Resource | |
21 | - private IMobileService mobileService; | |
22 | - | |
23 | -} |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/mobile/controller/ShipmentController.java deleted
1 | -package org.jeecg.modules.wms.api.mobile.controller; | |
2 | - | |
3 | -import javax.annotation.Resource; | |
4 | - | |
5 | -import org.jeecg.modules.wms.api.mobile.service.IMobileService; | |
6 | -import org.jeecg.modules.wms.framework.controller.HuahengBaseController; | |
7 | -import org.springframework.web.bind.annotation.RequestMapping; | |
8 | -import org.springframework.web.bind.annotation.RestController; | |
9 | - | |
10 | -import io.swagger.annotations.Api; | |
11 | - | |
12 | -/** | |
13 | - * * PDA出库接口,整合复用PC端service层接口 | |
14 | - */ | |
15 | -@Api(tags = "Mobile") | |
16 | -@RestController | |
17 | -@RequestMapping("/mobile/shipment") | |
18 | -public class ShipmentController extends HuahengBaseController { | |
19 | - | |
20 | - @Resource | |
21 | - private IMobileService mobileService; | |
22 | - | |
23 | - | |
24 | -} |