Commit 91d12a91ac59506b5b3b07c43c2e4ab41b859638
1 parent
2dd92ddd
操作日志记录增删改操作,不记录查询操作
Showing
20 changed files
with
550 additions
and
678 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/audit/controller/AuditController.java
1 | package org.jeecg.modules.wms.audit.controller; | 1 | package org.jeecg.modules.wms.audit.controller; |
2 | 2 | ||
3 | -import java.util.Arrays; | ||
4 | -import java.util.List; | ||
5 | -import java.util.Map; | ||
6 | -import java.util.stream.Collectors; | ||
7 | -import java.io.IOException; | ||
8 | -import java.io.UnsupportedEncodingException; | ||
9 | -import java.net.URLDecoder; | ||
10 | -import javax.servlet.http.HttpServletRequest; | ||
11 | -import javax.servlet.http.HttpServletResponse; | ||
12 | -import org.jeecg.common.api.vo.Result; | ||
13 | -import org.jeecg.common.system.query.QueryGenerator; | ||
14 | -import org.jeecg.common.util.oConvertUtils; | ||
15 | -import org.jeecg.modules.wms.audit.entity.Audit; | ||
16 | -import org.jeecg.modules.wms.audit.entity.AuditFlow; | ||
17 | -import org.jeecg.modules.wms.audit.service.IAuditService; | ||
18 | - | ||
19 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
20 | import com.baomidou.mybatisplus.core.metadata.IPage; | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
21 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
6 | +import io.swagger.annotations.Api; | ||
7 | +import io.swagger.annotations.ApiOperation; | ||
22 | import lombok.extern.slf4j.Slf4j; | 8 | import lombok.extern.slf4j.Slf4j; |
23 | - | ||
24 | -import org.jeecgframework.poi.excel.ExcelImportUtil; | ||
25 | -import org.jeecgframework.poi.excel.def.NormalExcelConstants; | ||
26 | -import org.jeecgframework.poi.excel.entity.ExportParams; | ||
27 | -import org.jeecgframework.poi.excel.entity.ImportParams; | ||
28 | -import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; | 9 | +import org.jeecg.common.api.vo.Result; |
10 | +import org.jeecg.common.aspect.annotation.AutoLog; | ||
29 | import org.jeecg.common.system.base.controller.JeecgController; | 11 | import org.jeecg.common.system.base.controller.JeecgController; |
12 | +import org.jeecg.common.system.query.QueryGenerator; | ||
13 | +import org.jeecg.modules.wms.audit.entity.Audit; | ||
14 | +import org.jeecg.modules.wms.audit.entity.AuditFlow; | ||
15 | +import org.jeecg.modules.wms.audit.service.IAuditService; | ||
30 | import org.springframework.beans.factory.annotation.Autowired; | 16 | import org.springframework.beans.factory.annotation.Autowired; |
31 | import org.springframework.web.bind.annotation.*; | 17 | import org.springframework.web.bind.annotation.*; |
32 | -import org.springframework.web.multipart.MultipartFile; | ||
33 | -import org.springframework.web.multipart.MultipartHttpServletRequest; | ||
34 | import org.springframework.web.servlet.ModelAndView; | 18 | import org.springframework.web.servlet.ModelAndView; |
35 | -import com.alibaba.fastjson.JSON; | ||
36 | -import io.swagger.annotations.Api; | ||
37 | -import io.swagger.annotations.ApiOperation; | ||
38 | -import org.jeecg.common.aspect.annotation.AutoLog; | ||
39 | 19 | ||
40 | - /** | 20 | +import javax.servlet.http.HttpServletRequest; |
21 | +import javax.servlet.http.HttpServletResponse; | ||
22 | +import java.util.Arrays; | ||
23 | + | ||
24 | +/** | ||
41 | * @Description: 审核表 | 25 | * @Description: 审核表 |
42 | * @Author: jeecg-boot | 26 | * @Author: jeecg-boot |
43 | - * @Date: 2023-07-26 | 27 | + * @Date: 2023-07-26 |
44 | * @Version: V1.0 | 28 | * @Version: V1.0 |
45 | */ | 29 | */ |
46 | -@Api(tags="审核表") | 30 | +@Api(tags = "审核表") |
47 | @RestController | 31 | @RestController |
48 | @RequestMapping("/audit/audit") | 32 | @RequestMapping("/audit/audit") |
49 | @Slf4j | 33 | @Slf4j |
50 | public class AuditController extends JeecgController<Audit, IAuditService> { | 34 | public class AuditController extends JeecgController<Audit, IAuditService> { |
51 | - @Autowired | ||
52 | - private IAuditService auditService; | ||
53 | - | ||
54 | - /** | ||
55 | - * 分页列表查询 | ||
56 | - * | ||
57 | - * @param audit | ||
58 | - * @param pageNo | ||
59 | - * @param pageSize | ||
60 | - * @param req | ||
61 | - * @return | ||
62 | - */ | ||
63 | - //@AutoLog(value = "审核表-分页列表查询") | ||
64 | - @ApiOperation(value="审核表-分页列表查询", notes="审核表-分页列表查询") | ||
65 | - @GetMapping(value = "/list") | ||
66 | - public Result<IPage<Audit>> queryPageList(Audit audit, | ||
67 | - @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | ||
68 | - @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | ||
69 | - HttpServletRequest req) { | ||
70 | - QueryWrapper<Audit> queryWrapper = QueryGenerator.initQueryWrapper(audit, req.getParameterMap()); | ||
71 | - Page<Audit> page = new Page<Audit>(pageNo, pageSize); | ||
72 | - IPage<Audit> pageList = auditService.page(page, queryWrapper); | ||
73 | - return Result.OK(pageList); | ||
74 | - } | ||
75 | - | ||
76 | - /** | ||
77 | - * 添加 | ||
78 | - * | ||
79 | - * @param audit | ||
80 | - * @return | ||
81 | - */ | ||
82 | - @AutoLog(value = "审核表-添加") | ||
83 | - @ApiOperation(value="审核表-添加", notes="审核表-添加") | ||
84 | - @PostMapping(value = "/add") | ||
85 | - public Result<String> add(@RequestBody Audit audit) { | ||
86 | - auditService.save(audit); | ||
87 | - return Result.OK("添加成功!"); | ||
88 | - } | ||
89 | - | ||
90 | - /** | ||
91 | - * 编辑 | ||
92 | - * | ||
93 | - * @param audit | ||
94 | - * @return | ||
95 | - */ | ||
96 | - @AutoLog(value = "审核表-编辑") | ||
97 | - @ApiOperation(value="审核表-编辑", notes="审核表-编辑") | ||
98 | - @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | ||
99 | - public Result<String> edit(@RequestBody Audit audit) { | ||
100 | - auditService.updateById(audit); | ||
101 | - return Result.OK("编辑成功!"); | ||
102 | - } | ||
103 | - | ||
104 | - /** | ||
105 | - * 通过id删除 | ||
106 | - * | ||
107 | - * @param id | ||
108 | - * @return | ||
109 | - */ | ||
110 | - @AutoLog(value = "审核表-通过id删除") | ||
111 | - @ApiOperation(value="审核表-通过id删除", notes="审核表-通过id删除") | ||
112 | - @DeleteMapping(value = "/delete") | ||
113 | - public Result<String> delete(@RequestParam(name="id",required=true) String id) { | ||
114 | - auditService.removeById(id); | ||
115 | - return Result.OK("删除成功!"); | ||
116 | - } | ||
117 | - | ||
118 | - /** | ||
119 | - * 批量删除 | ||
120 | - * | ||
121 | - * @param ids | ||
122 | - * @return | ||
123 | - */ | ||
124 | - @AutoLog(value = "审核表-批量删除") | ||
125 | - @ApiOperation(value="审核表-批量删除", notes="审核表-批量删除") | ||
126 | - @DeleteMapping(value = "/deleteBatch") | ||
127 | - public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | ||
128 | - this.auditService.removeByIds(Arrays.asList(ids.split(","))); | ||
129 | - return Result.OK("批量删除成功!"); | ||
130 | - } | ||
131 | - | ||
132 | - /** | ||
133 | - * 通过id查询 | ||
134 | - * | ||
135 | - * @param id | ||
136 | - * @return | ||
137 | - */ | ||
138 | - //@AutoLog(value = "审核表-通过id查询") | ||
139 | - @ApiOperation(value="审核表-通过id查询", notes="审核表-通过id查询") | ||
140 | - @GetMapping(value = "/queryById") | ||
141 | - public Result<Audit> queryById(@RequestParam(name="id",required=true) String id) { | ||
142 | - Audit audit = auditService.getById(id); | ||
143 | - if(audit==null) { | ||
144 | - return Result.error("未找到对应数据"); | ||
145 | - } | ||
146 | - return Result.OK(audit); | ||
147 | - } | 35 | + @Autowired |
36 | + private IAuditService auditService; | ||
148 | 37 | ||
149 | /** | 38 | /** |
150 | - * 导出excel | ||
151 | - * | ||
152 | - * @param request | ||
153 | - * @param audit | ||
154 | - */ | 39 | + * 分页列表查询 |
40 | + * | ||
41 | + * @param audit | ||
42 | + * @param pageNo | ||
43 | + * @param pageSize | ||
44 | + * @param req | ||
45 | + * @return | ||
46 | + */ | ||
47 | + //@AutoLog(value = "审核表-分页列表查询") | ||
48 | + @ApiOperation(value = "审核表-分页列表查询", notes = "审核表-分页列表查询") | ||
49 | + @GetMapping(value = "/list") | ||
50 | + public Result<IPage<Audit>> queryPageList(Audit audit, | ||
51 | + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | ||
52 | + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
53 | + HttpServletRequest req) { | ||
54 | + QueryWrapper<Audit> queryWrapper = QueryGenerator.initQueryWrapper(audit, req.getParameterMap()); | ||
55 | + Page<Audit> page = new Page<Audit>(pageNo, pageSize); | ||
56 | + IPage<Audit> pageList = auditService.page(page, queryWrapper); | ||
57 | + return Result.OK(pageList); | ||
58 | + } | ||
59 | + | ||
60 | + /** | ||
61 | + * 添加 | ||
62 | + * | ||
63 | + * @param audit | ||
64 | + * @return | ||
65 | + */ | ||
66 | + @AutoLog(value = "审核表-添加") | ||
67 | + @ApiOperation(value = "审核表-添加", notes = "审核表-添加") | ||
68 | + @PostMapping(value = "/add") | ||
69 | + public Result<String> add(@RequestBody Audit audit) { | ||
70 | + auditService.save(audit); | ||
71 | + return Result.OK("添加成功!"); | ||
72 | + } | ||
73 | + | ||
74 | + /** | ||
75 | + * 编辑 | ||
76 | + * | ||
77 | + * @param audit | ||
78 | + * @return | ||
79 | + */ | ||
80 | + @AutoLog(value = "审核表-编辑") | ||
81 | + @ApiOperation(value = "审核表-编辑", notes = "审核表-编辑") | ||
82 | + @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) | ||
83 | + public Result<String> edit(@RequestBody Audit audit) { | ||
84 | + auditService.updateById(audit); | ||
85 | + return Result.OK("编辑成功!"); | ||
86 | + } | ||
87 | + | ||
88 | + /** | ||
89 | + * 通过id删除 | ||
90 | + * | ||
91 | + * @param id | ||
92 | + * @return | ||
93 | + */ | ||
94 | + @AutoLog(value = "审核表-通过id删除") | ||
95 | + @ApiOperation(value = "审核表-通过id删除", notes = "审核表-通过id删除") | ||
96 | + @DeleteMapping(value = "/delete") | ||
97 | + public Result<String> delete(@RequestParam(name = "id", required = true) String id) { | ||
98 | + auditService.removeById(id); | ||
99 | + return Result.OK("删除成功!"); | ||
100 | + } | ||
101 | + | ||
102 | + /** | ||
103 | + * 批量删除 | ||
104 | + * | ||
105 | + * @param ids | ||
106 | + * @return | ||
107 | + */ | ||
108 | + @AutoLog(value = "审核表-批量删除") | ||
109 | + @ApiOperation(value = "审核表-批量删除", notes = "审核表-批量删除") | ||
110 | + @DeleteMapping(value = "/deleteBatch") | ||
111 | + public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { | ||
112 | + this.auditService.removeByIds(Arrays.asList(ids.split(","))); | ||
113 | + return Result.OK("批量删除成功!"); | ||
114 | + } | ||
115 | + | ||
116 | + /** | ||
117 | + * 通过id查询 | ||
118 | + * | ||
119 | + * @param id | ||
120 | + * @return | ||
121 | + */ | ||
122 | + //@AutoLog(value = "审核表-通过id查询") | ||
123 | + @ApiOperation(value = "审核表-通过id查询", notes = "审核表-通过id查询") | ||
124 | + @GetMapping(value = "/queryById") | ||
125 | + public Result<Audit> queryById(@RequestParam(name = "id", required = true) String id) { | ||
126 | + Audit audit = auditService.getById(id); | ||
127 | + if (audit == null) { | ||
128 | + return Result.error("未找到对应数据"); | ||
129 | + } | ||
130 | + return Result.OK(audit); | ||
131 | + } | ||
132 | + | ||
133 | + /** | ||
134 | + * 导出excel | ||
135 | + * | ||
136 | + * @param request | ||
137 | + * @param audit | ||
138 | + */ | ||
155 | @RequestMapping(value = "/exportXls") | 139 | @RequestMapping(value = "/exportXls") |
156 | public ModelAndView exportXls(HttpServletRequest request, Audit audit) { | 140 | public ModelAndView exportXls(HttpServletRequest request, Audit audit) { |
157 | return super.exportXls(request, audit, Audit.class, "审核表"); | 141 | return super.exportXls(request, audit, Audit.class, "审核表"); |
158 | } | 142 | } |
159 | 143 | ||
160 | /** | 144 | /** |
161 | - * 通过excel导入数据 | ||
162 | - * | ||
163 | - * @param request | ||
164 | - * @param response | ||
165 | - * @return | ||
166 | - */ | 145 | + * 通过excel导入数据 |
146 | + * | ||
147 | + * @param request | ||
148 | + * @param response | ||
149 | + * @return | ||
150 | + */ | ||
167 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | 151 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
168 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | 152 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
169 | return super.importExcel(request, response, Audit.class); | 153 | return super.importExcel(request, response, Audit.class); |
170 | } | 154 | } |
171 | 155 | ||
172 | - @ApiOperation(value="提交入库单审核", notes="提交入库单审核") | ||
173 | - @GetMapping(value = "/createReceiptAuditFlow") | ||
174 | - public Result<Audit> createReceiptAuditFlow(Audit audit) { | ||
175 | - return auditService.createReceiptAuditFlow(audit); | ||
176 | - } | ||
177 | - | ||
178 | - @ApiOperation(value="入库单审核", notes="入库单审核") | ||
179 | - @GetMapping(value = "/auditReceipt") | ||
180 | - public Result<Audit> auditReceipt(Audit audit) { | ||
181 | - return auditService.auditReceipt(audit); | ||
182 | - } | ||
183 | - | ||
184 | - @ApiOperation(value="查询审核流程进度", notes="查询审核流程进度") | ||
185 | - @GetMapping(value = "/searchAuditFlow") | ||
186 | - public AuditFlow searchAuditFlow(Audit audit) { | ||
187 | - return auditService.searchAuditFlow(audit); | ||
188 | - } | ||
189 | - | ||
190 | - @ApiOperation(value="提交出库单审核", notes="提交出库单审核") | ||
191 | - @GetMapping(value = "/createShipmentAuditFlow") | ||
192 | - public Result<Audit> createShipmentAuditFlow(Audit audit) { | ||
193 | - return auditService.createShipmentAuditFlow(audit); | ||
194 | - } | ||
195 | - | ||
196 | - @ApiOperation(value="出库单审核", notes="出库单审核") | ||
197 | - @GetMapping(value = "/auditShipment") | ||
198 | - public Result<Audit> auditShipment(Audit audit) { | ||
199 | - return auditService.auditShipment(audit); | ||
200 | - } | 156 | + @AutoLog(value = "审核表-提交入库单审核", operateType = 2) |
157 | + @ApiOperation(value = "提交入库单审核", notes = "提交入库单审核") | ||
158 | + @GetMapping(value = "/createReceiptAuditFlow") | ||
159 | + public Result<Audit> createReceiptAuditFlow(Audit audit) { | ||
160 | + return auditService.createReceiptAuditFlow(audit); | ||
161 | + } | ||
162 | + | ||
163 | + @AutoLog(value = "审核表-入库单审核", operateType = 3) | ||
164 | + @ApiOperation(value = "入库单审核", notes = "入库单审核") | ||
165 | + @GetMapping(value = "/auditReceipt") | ||
166 | + public Result<Audit> auditReceipt(Audit audit) { | ||
167 | + return auditService.auditReceipt(audit); | ||
168 | + } | ||
169 | + | ||
170 | + @ApiOperation(value = "查询审核流程进度", notes = "查询审核流程进度") | ||
171 | + @GetMapping(value = "/searchAuditFlow") | ||
172 | + public AuditFlow searchAuditFlow(Audit audit) { | ||
173 | + return auditService.searchAuditFlow(audit); | ||
174 | + } | ||
201 | 175 | ||
176 | + @AutoLog(value = "审核表-提交出库单审核", operateType = 2) | ||
177 | + @ApiOperation(value = "提交出库单审核", notes = "提交出库单审核") | ||
178 | + @GetMapping(value = "/createShipmentAuditFlow") | ||
179 | + public Result<Audit> createShipmentAuditFlow(Audit audit) { | ||
180 | + return auditService.createShipmentAuditFlow(audit); | ||
181 | + } | ||
202 | 182 | ||
183 | + @AutoLog(value = "审核表-出库单审核", operateType = 3) | ||
184 | + @ApiOperation(value = "出库单审核", notes = "出库单审核") | ||
185 | + @GetMapping(value = "/auditShipment") | ||
186 | + public Result<Audit> auditShipment(Audit audit) { | ||
187 | + return auditService.auditShipment(audit); | ||
188 | + } | ||
203 | } | 189 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/container/controller/ContainerController.java
@@ -152,16 +152,8 @@ public class ContainerController extends JeecgController<Container, IContainerSe | @@ -152,16 +152,8 @@ public class ContainerController extends JeecgController<Container, IContainerSe | ||
152 | return Result.OK("批量删除成功!"); | 152 | return Result.OK("批量删除成功!"); |
153 | } | 153 | } |
154 | 154 | ||
155 | - /** | ||
156 | - * 获取打印数据 | ||
157 | - * | ||
158 | - * @param ids | ||
159 | - * @return | ||
160 | - */ | ||
161 | - @AutoLog(value = "容器管理-获取打印数据") | ||
162 | @ApiOperation(value = "容器管理-获取打印数据", notes = "容器管理-获取打印数据") | 155 | @ApiOperation(value = "容器管理-获取打印数据", notes = "容器管理-获取打印数据") |
163 | @PostMapping(value = "/getPrintContent") | 156 | @PostMapping(value = "/getPrintContent") |
164 | - @ResponseBody | ||
165 | public Result getPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 157 | public Result getPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
166 | List<String> idlist = Arrays.asList(ids.split(",")); | 158 | List<String> idlist = Arrays.asList(ids.split(",")); |
167 | List<Container> containerList = containerService.listByIds(idlist); | 159 | List<Container> containerList = containerService.listByIds(idlist); |
@@ -174,10 +166,9 @@ public class ContainerController extends JeecgController<Container, IContainerSe | @@ -174,10 +166,9 @@ public class ContainerController extends JeecgController<Container, IContainerSe | ||
174 | * @param ids | 166 | * @param ids |
175 | * @return | 167 | * @return |
176 | */ | 168 | */ |
177 | - @AutoLog(value = "容器管理-设置打印次数") | 169 | + @AutoLog(value = "容器管理-设置打印次数", operateType = 3) |
178 | @ApiOperation(value = "容器管理-设置打印次数", notes = "容器管理-设置打印次数") | 170 | @ApiOperation(value = "容器管理-设置打印次数", notes = "容器管理-设置打印次数") |
179 | @PostMapping(value = "/setPrintTimes") | 171 | @PostMapping(value = "/setPrintTimes") |
180 | - @ResponseBody | ||
181 | public Result setPrintTimes(@RequestParam(name = "ids", required = true) String ids) { | 172 | public Result setPrintTimes(@RequestParam(name = "ids", required = true) String ids) { |
182 | List<String> idlist = Arrays.asList(ids.split(",")); | 173 | List<String> idlist = Arrays.asList(ids.split(",")); |
183 | List<Container> containerList = containerService.listByIds(idlist); | 174 | List<Container> containerList = containerService.listByIds(idlist); |
@@ -233,13 +224,6 @@ public class ContainerController extends JeecgController<Container, IContainerSe | @@ -233,13 +224,6 @@ public class ContainerController extends JeecgController<Container, IContainerSe | ||
233 | return super.importExcel(request, response, Container.class); | 224 | return super.importExcel(request, response, Container.class); |
234 | } | 225 | } |
235 | 226 | ||
236 | - /** | ||
237 | - * 选取空闲的托盘 | ||
238 | - * | ||
239 | - * @param container | ||
240 | - * @return | ||
241 | - */ | ||
242 | - @AutoLog(value = "选取空闲的托盘") | ||
243 | @ApiOperation(value = "库位管理-选取空闲的托盘", notes = "库位管理-选取空闲的托盘") | 227 | @ApiOperation(value = "库位管理-选取空闲的托盘", notes = "库位管理-选取空闲的托盘") |
244 | @GetMapping(value = "/getEmptyAllContainer") | 228 | @GetMapping(value = "/getEmptyAllContainer") |
245 | public Result getEmptyAllContainer(Container container, HttpServletRequest req) { | 229 | public Result getEmptyAllContainer(Container container, HttpServletRequest req) { |
@@ -254,7 +238,6 @@ public class ContainerController extends JeecgController<Container, IContainerSe | @@ -254,7 +238,6 @@ public class ContainerController extends JeecgController<Container, IContainerSe | ||
254 | * @param container | 238 | * @param container |
255 | * @return | 239 | * @return |
256 | */ | 240 | */ |
257 | - @AutoLog(value = "选取空闲的托盘") | ||
258 | @ApiOperation(value = "库位管理-选取空闲的托盘", notes = "库位管理-选取空闲的托盘") | 241 | @ApiOperation(value = "库位管理-选取空闲的托盘", notes = "库位管理-选取空闲的托盘") |
259 | @GetMapping(value = "/getCanUseListContainer") | 242 | @GetMapping(value = "/getCanUseListContainer") |
260 | public Result getCanUseListContainer(Container container, HttpServletRequest req) { | 243 | public Result getCanUseListContainer(Container container, HttpServletRequest req) { |
@@ -263,7 +246,6 @@ public class ContainerController extends JeecgController<Container, IContainerSe | @@ -263,7 +246,6 @@ public class ContainerController extends JeecgController<Container, IContainerSe | ||
263 | return Result.OK(containerList); | 246 | return Result.OK(containerList); |
264 | } | 247 | } |
265 | 248 | ||
266 | - @ApiOperation(value = "容器管理-分页列表查询", notes = "容器管理-分页列表查询") | ||
267 | @PassApiAuthentication | 249 | @PassApiAuthentication |
268 | @GetMapping(value = "/listPrintContent") | 250 | @GetMapping(value = "/listPrintContent") |
269 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 251 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/controller/LocationController.java
@@ -166,16 +166,8 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -166,16 +166,8 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
166 | return result; | 166 | return result; |
167 | } | 167 | } |
168 | 168 | ||
169 | - /** | ||
170 | - * 获取打印数据 | ||
171 | - * | ||
172 | - * @param ids | ||
173 | - * @return | ||
174 | - */ | ||
175 | - @AutoLog(value = "库位管理-获取打印数据") | ||
176 | @ApiOperation(value = "库位管理-获取打印数据", notes = "库位管理-获取打印数据") | 169 | @ApiOperation(value = "库位管理-获取打印数据", notes = "库位管理-获取打印数据") |
177 | @PostMapping(value = "/getPrintContent") | 170 | @PostMapping(value = "/getPrintContent") |
178 | - @ResponseBody | ||
179 | public Result getPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 171 | public Result getPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
180 | List<String> idlist = Arrays.asList(ids.split(",")); | 172 | List<String> idlist = Arrays.asList(ids.split(",")); |
181 | List<Location> locationList = locationService.listByIds(idlist); | 173 | List<Location> locationList = locationService.listByIds(idlist); |
@@ -286,13 +278,6 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -286,13 +278,6 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
286 | return super.importExcel(request, response, Location.class); | 278 | return super.importExcel(request, response, Location.class); |
287 | } | 279 | } |
288 | 280 | ||
289 | - /** | ||
290 | - * WCS库位信息比较 | ||
291 | - * | ||
292 | - * @param location | ||
293 | - * @return | ||
294 | - */ | ||
295 | - @AutoLog(value = "WCS库位信息比较") | ||
296 | @ApiOperation(value = "库位管理-WCS库位信息比较", notes = "库位管理-WCS库位信息比较") | 281 | @ApiOperation(value = "库位管理-WCS库位信息比较", notes = "库位管理-WCS库位信息比较") |
297 | @GetMapping(value = "/compareWcsLocation") | 282 | @GetMapping(value = "/compareWcsLocation") |
298 | public Result compareWcsLocation(@Validated QueryCompareLocationDto queryCompareLocationDto, HttpServletRequest request) { | 283 | public Result compareWcsLocation(@Validated QueryCompareLocationDto queryCompareLocationDto, HttpServletRequest request) { |
@@ -304,7 +289,6 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -304,7 +289,6 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
304 | /** | 289 | /** |
305 | * WCS库位信息比较 | 290 | * WCS库位信息比较 |
306 | * | 291 | * |
307 | - * @param location | ||
308 | * @return | 292 | * @return |
309 | */ | 293 | */ |
310 | @ApiOperation(value = "库位管理-WCS库位任务信息比较", notes = "库位管理-WCS库位任务信息比较") | 294 | @ApiOperation(value = "库位管理-WCS库位任务信息比较", notes = "库位管理-WCS库位任务信息比较") |
@@ -329,7 +313,6 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -329,7 +313,6 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
329 | return Result.OK(compareContainerTaskDtoPage); | 313 | return Result.OK(compareContainerTaskDtoPage); |
330 | } | 314 | } |
331 | 315 | ||
332 | - @ApiOperation(value = "容器管理-分页列表查询", notes = "容器管理-分页列表查询") | ||
333 | @PassApiAuthentication | 316 | @PassApiAuthentication |
334 | @GetMapping(value = "/listPrintContent") | 317 | @GetMapping(value = "/listPrintContent") |
335 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 318 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/material/controller/MaterialController.java
@@ -158,17 +158,10 @@ public class MaterialController extends JeecgController<Material, IMaterialServi | @@ -158,17 +158,10 @@ public class MaterialController extends JeecgController<Material, IMaterialServi | ||
158 | return super.exportXls(request, material, Material.class, "物料管理"); | 158 | return super.exportXls(request, material, Material.class, "物料管理"); |
159 | } | 159 | } |
160 | 160 | ||
161 | - /** | ||
162 | - * 获取打印数据 | ||
163 | - * | ||
164 | - * @param ids | ||
165 | - * @return | ||
166 | - */ | ||
167 | - @AutoLog(value = "物料管理-获取打印数据") | 161 | + |
168 | @ApiOperation(value = "物料管理-获取打印数据", notes = "物料管理-获取打印数据") | 162 | @ApiOperation(value = "物料管理-获取打印数据", notes = "物料管理-获取打印数据") |
169 | @RequiresPermissions("material:print") | 163 | @RequiresPermissions("material:print") |
170 | @PostMapping(value = "/getPrintContent") | 164 | @PostMapping(value = "/getPrintContent") |
171 | - @ResponseBody | ||
172 | public Result getPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 165 | public Result getPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
173 | List<String> idlist = Arrays.asList(ids.split(",")); | 166 | List<String> idlist = Arrays.asList(ids.split(",")); |
174 | List<Material> materialList = materialService.listByIds(idlist); | 167 | List<Material> materialList = materialService.listByIds(idlist); |
@@ -258,7 +251,6 @@ public class MaterialController extends JeecgController<Material, IMaterialServi | @@ -258,7 +251,6 @@ public class MaterialController extends JeecgController<Material, IMaterialServi | ||
258 | return Result.OK(searchDomainList); | 251 | return Result.OK(searchDomainList); |
259 | } | 252 | } |
260 | 253 | ||
261 | - @ApiOperation(value = "物料管理-分页列表查询", notes = "物料管理-分页列表查询") | ||
262 | @PassApiAuthentication | 254 | @PassApiAuthentication |
263 | @GetMapping(value = "/listPrintContent") | 255 | @GetMapping(value = "/listPrintContent") |
264 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 256 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/materialSn/controller/MaterialSnController.java
@@ -168,7 +168,6 @@ public class MaterialSnController extends JeecgController<MaterialSn, IMaterialS | @@ -168,7 +168,6 @@ public class MaterialSnController extends JeecgController<MaterialSn, IMaterialS | ||
168 | return super.importExcel(request, response, MaterialSn.class); | 168 | return super.importExcel(request, response, MaterialSn.class); |
169 | } | 169 | } |
170 | 170 | ||
171 | - @ApiOperation(value = "容器管理-分页列表查询", notes = "容器管理-分页列表查询") | ||
172 | @PassApiAuthentication | 171 | @PassApiAuthentication |
173 | @GetMapping(value = "/listPrintContent") | 172 | @GetMapping(value = "/listPrintContent") |
174 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { | 173 | public JimuReportResult listPrintContent(@RequestParam(name = "ids", required = true) String ids) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/flow/controller/FlowHeaderController.java
1 | package org.jeecg.modules.wms.flow.controller; | 1 | package org.jeecg.modules.wms.flow.controller; |
2 | 2 | ||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | -import org.jeecg.common.system.query.QueryGenerator; | ||
5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 4 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
6 | import com.baomidou.mybatisplus.core.metadata.IPage; | 5 | import com.baomidou.mybatisplus.core.metadata.IPage; |
7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 6 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
7 | +import io.swagger.annotations.Api; | ||
8 | +import io.swagger.annotations.ApiOperation; | ||
8 | import lombok.extern.slf4j.Slf4j; | 9 | import lombok.extern.slf4j.Slf4j; |
9 | -import org.jeecg.common.system.base.controller.JeecgController; | 10 | +import org.apache.shiro.SecurityUtils; |
10 | import org.jeecg.common.api.vo.Result; | 11 | import org.jeecg.common.api.vo.Result; |
12 | +import org.jeecg.common.aspect.annotation.AutoLog; | ||
13 | +import org.jeecg.common.system.base.controller.JeecgController; | ||
14 | +import org.jeecg.common.system.query.QueryGenerator; | ||
15 | +import org.jeecg.common.system.vo.LoginUser; | ||
16 | +import org.jeecg.common.util.oConvertUtils; | ||
11 | import org.jeecg.modules.system.entity.SysUser; | 17 | import org.jeecg.modules.system.entity.SysUser; |
12 | import org.jeecg.modules.system.service.ISysUserService; | 18 | import org.jeecg.modules.system.service.ISysUserService; |
13 | -import org.springframework.beans.factory.annotation.Autowired; | ||
14 | -import org.springframework.web.bind.annotation.*; | ||
15 | - | ||
16 | -import javax.annotation.Resource; | ||
17 | -import javax.servlet.http.HttpServletRequest; | ||
18 | -import javax.servlet.http.HttpServletResponse; | ||
19 | -import org.springframework.web.servlet.ModelAndView; | ||
20 | - | ||
21 | -import java.util.ArrayList; | ||
22 | -import java.util.Arrays; | ||
23 | -import org.jeecg.common.util.oConvertUtils; | ||
24 | import org.jeecg.modules.wms.flow.entity.FlowDetail; | 19 | import org.jeecg.modules.wms.flow.entity.FlowDetail; |
25 | import org.jeecg.modules.wms.flow.entity.FlowHeader; | 20 | import org.jeecg.modules.wms.flow.entity.FlowHeader; |
26 | -import org.jeecg.modules.wms.flow.service.IFlowHeaderService; | ||
27 | import org.jeecg.modules.wms.flow.service.IFlowDetailService; | 21 | import org.jeecg.modules.wms.flow.service.IFlowDetailService; |
28 | -import io.swagger.annotations.Api; | ||
29 | -import io.swagger.annotations.ApiOperation; | ||
30 | -import org.jeecg.common.aspect.annotation.AutoLog; | ||
31 | -import org.apache.shiro.SecurityUtils; | ||
32 | -import org.jeecg.common.system.vo.LoginUser; | 22 | +import org.jeecg.modules.wms.flow.service.IFlowHeaderService; |
33 | import org.jeecgframework.poi.excel.ExcelImportUtil; | 23 | import org.jeecgframework.poi.excel.ExcelImportUtil; |
34 | import org.jeecgframework.poi.excel.def.NormalExcelConstants; | 24 | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
35 | import org.jeecgframework.poi.excel.entity.ExportParams; | 25 | import org.jeecgframework.poi.excel.entity.ExportParams; |
36 | import org.jeecgframework.poi.excel.entity.ImportParams; | 26 | import org.jeecgframework.poi.excel.entity.ImportParams; |
37 | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; | 27 | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
28 | +import org.springframework.beans.factory.annotation.Autowired; | ||
29 | +import org.springframework.web.bind.annotation.*; | ||
38 | import org.springframework.web.multipart.MultipartFile; | 30 | import org.springframework.web.multipart.MultipartFile; |
39 | import org.springframework.web.multipart.MultipartHttpServletRequest; | 31 | import org.springframework.web.multipart.MultipartHttpServletRequest; |
32 | +import org.springframework.web.servlet.ModelAndView; | ||
33 | + | ||
34 | +import javax.annotation.Resource; | ||
35 | +import javax.servlet.http.HttpServletRequest; | ||
36 | +import javax.servlet.http.HttpServletResponse; | ||
40 | import java.io.IOException; | 37 | import java.io.IOException; |
38 | +import java.util.ArrayList; | ||
39 | +import java.util.Arrays; | ||
41 | import java.util.List; | 40 | import java.util.List; |
42 | import java.util.Map; | 41 | import java.util.Map; |
43 | import java.util.stream.Collectors; | 42 | import java.util.stream.Collectors; |
44 | 43 | ||
45 | - /** | 44 | +/** |
46 | * @Description: 流程头表 | 45 | * @Description: 流程头表 |
47 | * @Author: jeecg-boot | 46 | * @Author: jeecg-boot |
48 | - * @Date: 2023-07-25 | 47 | + * @Date: 2023-07-25 |
49 | * @Version: V1.0 | 48 | * @Version: V1.0 |
50 | */ | 49 | */ |
51 | -@Api(tags="流程头表") | 50 | +@Api(tags = "流程头表") |
52 | @RestController | 51 | @RestController |
53 | @RequestMapping("/flow/flowHeader") | 52 | @RequestMapping("/flow/flowHeader") |
54 | @Slf4j | 53 | @Slf4j |
55 | public class FlowHeaderController extends JeecgController<FlowHeader, IFlowHeaderService> { | 54 | public class FlowHeaderController extends JeecgController<FlowHeader, IFlowHeaderService> { |
56 | 55 | ||
57 | - @Autowired | ||
58 | - private IFlowHeaderService flowHeaderService; | 56 | + @Autowired |
57 | + private IFlowHeaderService flowHeaderService; | ||
59 | 58 | ||
60 | - @Autowired | ||
61 | - private IFlowDetailService flowDetailService; | 59 | + @Autowired |
60 | + private IFlowDetailService flowDetailService; | ||
62 | 61 | ||
63 | - @Resource | ||
64 | - private ISysUserService iSysUserService; | 62 | + @Resource |
63 | + private ISysUserService iSysUserService; | ||
65 | 64 | ||
66 | 65 | ||
67 | - /*---------------------------------主表处理-begin-------------------------------------*/ | 66 | + /*---------------------------------主表处理-begin-------------------------------------*/ |
68 | 67 | ||
69 | - /** | ||
70 | - * 分页列表查询 | ||
71 | - * @param flowHeader | ||
72 | - * @param pageNo | ||
73 | - * @param pageSize | ||
74 | - * @param req | ||
75 | - * @return | ||
76 | - */ | ||
77 | - //@AutoLog(value = "流程头表-分页列表查询") | ||
78 | - @ApiOperation(value="流程头表-分页列表查询", notes="流程头表-分页列表查询") | ||
79 | - @GetMapping(value = "/list") | ||
80 | - public Result<IPage<FlowHeader>> queryPageList(FlowHeader flowHeader, | ||
81 | - @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | ||
82 | - @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | ||
83 | - HttpServletRequest req) { | ||
84 | - QueryWrapper<FlowHeader> queryWrapper = QueryGenerator.initQueryWrapper(flowHeader, req.getParameterMap()); | ||
85 | - Page<FlowHeader> page = new Page<FlowHeader>(pageNo, pageSize); | ||
86 | - IPage<FlowHeader> pageList = flowHeaderService.page(page, queryWrapper); | ||
87 | - return Result.OK(pageList); | ||
88 | - } | 68 | + /** |
69 | + * 分页列表查询 | ||
70 | + * | ||
71 | + * @param flowHeader | ||
72 | + * @param pageNo | ||
73 | + * @param pageSize | ||
74 | + * @param req | ||
75 | + * @return | ||
76 | + */ | ||
77 | + //@AutoLog(value = "流程头表-分页列表查询") | ||
78 | + @ApiOperation(value = "流程头表-分页列表查询", notes = "流程头表-分页列表查询") | ||
79 | + @GetMapping(value = "/list") | ||
80 | + public Result<IPage<FlowHeader>> queryPageList(FlowHeader flowHeader, | ||
81 | + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | ||
82 | + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
83 | + HttpServletRequest req) { | ||
84 | + QueryWrapper<FlowHeader> queryWrapper = QueryGenerator.initQueryWrapper(flowHeader, req.getParameterMap()); | ||
85 | + Page<FlowHeader> page = new Page<FlowHeader>(pageNo, pageSize); | ||
86 | + IPage<FlowHeader> pageList = flowHeaderService.page(page, queryWrapper); | ||
87 | + return Result.OK(pageList); | ||
88 | + } | ||
89 | 89 | ||
90 | - /** | ||
91 | - * 添加 | 90 | + /** |
91 | + * 添加 | ||
92 | + * | ||
92 | * @param flowHeader | 93 | * @param flowHeader |
93 | * @return | 94 | * @return |
94 | */ | 95 | */ |
95 | @AutoLog(value = "流程头表-添加") | 96 | @AutoLog(value = "流程头表-添加") |
96 | - @ApiOperation(value="流程头表-添加", notes="流程头表-添加") | 97 | + @ApiOperation(value = "流程头表-添加", notes = "流程头表-添加") |
97 | @PostMapping(value = "/add") | 98 | @PostMapping(value = "/add") |
98 | public Result<String> add(@RequestBody FlowHeader flowHeader) { | 99 | public Result<String> add(@RequestBody FlowHeader flowHeader) { |
99 | - if (flowHeaderService.getFlowHead(flowHeader.getFlowType(),flowHeader.getDocumentType())){ | ||
100 | - flowHeaderService.save(flowHeader); | ||
101 | - return Result.OK("添加成功!"); | ||
102 | - }else { | ||
103 | - return Result.error("不能存在相同的流程!!"); | ||
104 | - } | 100 | + if (flowHeaderService.getFlowHead(flowHeader.getFlowType(), flowHeader.getDocumentType())) { |
101 | + flowHeaderService.save(flowHeader); | ||
102 | + return Result.OK("添加成功!"); | ||
103 | + } else { | ||
104 | + return Result.error("不能存在相同的流程!!"); | ||
105 | + } | ||
105 | 106 | ||
106 | } | 107 | } |
107 | 108 | ||
108 | /** | 109 | /** |
109 | - * 编辑 | 110 | + * 编辑 |
111 | + * | ||
110 | * @param flowHeader | 112 | * @param flowHeader |
111 | * @return | 113 | * @return |
112 | */ | 114 | */ |
113 | @AutoLog(value = "流程头表-编辑") | 115 | @AutoLog(value = "流程头表-编辑") |
114 | - @ApiOperation(value="流程头表-编辑", notes="流程头表-编辑") | ||
115 | - @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 116 | + @ApiOperation(value = "流程头表-编辑", notes = "流程头表-编辑") |
117 | + @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) | ||
116 | public Result<String> edit(@RequestBody FlowHeader flowHeader) { | 118 | public Result<String> edit(@RequestBody FlowHeader flowHeader) { |
117 | flowHeaderService.updateById(flowHeader); | 119 | flowHeaderService.updateById(flowHeader); |
118 | return Result.OK("编辑成功!"); | 120 | return Result.OK("编辑成功!"); |
@@ -120,32 +122,35 @@ public class FlowHeaderController extends JeecgController<FlowHeader, IFlowHeade | @@ -120,32 +122,35 @@ public class FlowHeaderController extends JeecgController<FlowHeader, IFlowHeade | ||
120 | 122 | ||
121 | /** | 123 | /** |
122 | * 通过id删除 | 124 | * 通过id删除 |
125 | + * | ||
123 | * @param id | 126 | * @param id |
124 | * @return | 127 | * @return |
125 | */ | 128 | */ |
126 | @AutoLog(value = "流程头表-通过id删除") | 129 | @AutoLog(value = "流程头表-通过id删除") |
127 | - @ApiOperation(value="流程头表-通过id删除", notes="流程头表-通过id删除") | 130 | + @ApiOperation(value = "流程头表-通过id删除", notes = "流程头表-通过id删除") |
128 | @DeleteMapping(value = "/delete") | 131 | @DeleteMapping(value = "/delete") |
129 | - public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 132 | + public Result<String> delete(@RequestParam(name = "id", required = true) String id) { |
130 | flowHeaderService.delMain(id); | 133 | flowHeaderService.delMain(id); |
131 | return Result.OK("删除成功!"); | 134 | return Result.OK("删除成功!"); |
132 | } | 135 | } |
133 | 136 | ||
134 | /** | 137 | /** |
135 | * 批量删除 | 138 | * 批量删除 |
139 | + * | ||
136 | * @param ids | 140 | * @param ids |
137 | * @return | 141 | * @return |
138 | */ | 142 | */ |
139 | @AutoLog(value = "流程头表-批量删除") | 143 | @AutoLog(value = "流程头表-批量删除") |
140 | - @ApiOperation(value="流程头表-批量删除", notes="流程头表-批量删除") | 144 | + @ApiOperation(value = "流程头表-批量删除", notes = "流程头表-批量删除") |
141 | @DeleteMapping(value = "/deleteBatch") | 145 | @DeleteMapping(value = "/deleteBatch") |
142 | - public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 146 | + public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
143 | this.flowHeaderService.delBatchMain(Arrays.asList(ids.split(","))); | 147 | this.flowHeaderService.delBatchMain(Arrays.asList(ids.split(","))); |
144 | return Result.OK("批量删除成功!"); | 148 | return Result.OK("批量删除成功!"); |
145 | } | 149 | } |
146 | 150 | ||
147 | /** | 151 | /** |
148 | * 导出 | 152 | * 导出 |
153 | + * | ||
149 | * @return | 154 | * @return |
150 | */ | 155 | */ |
151 | @RequestMapping(value = "/exportXls") | 156 | @RequestMapping(value = "/exportXls") |
@@ -155,180 +160,185 @@ public class FlowHeaderController extends JeecgController<FlowHeader, IFlowHeade | @@ -155,180 +160,185 @@ public class FlowHeaderController extends JeecgController<FlowHeader, IFlowHeade | ||
155 | 160 | ||
156 | /** | 161 | /** |
157 | * 导入 | 162 | * 导入 |
163 | + * | ||
158 | * @return | 164 | * @return |
159 | */ | 165 | */ |
160 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | 166 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
161 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | 167 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
162 | return super.importExcel(request, response, FlowHeader.class); | 168 | return super.importExcel(request, response, FlowHeader.class); |
163 | } | 169 | } |
164 | - /*---------------------------------主表处理-end-------------------------------------*/ | 170 | + /*---------------------------------主表处理-end-------------------------------------*/ |
165 | 171 | ||
166 | 172 | ||
167 | /*--------------------------------子表处理-流程配置明细-begin----------------------------------------------*/ | 173 | /*--------------------------------子表处理-流程配置明细-begin----------------------------------------------*/ |
168 | - /** | ||
169 | - * 通过主表ID查询 | ||
170 | - * @return | ||
171 | - */ | ||
172 | - //@AutoLog(value = "流程配置明细-通过主表ID查询") | ||
173 | - @ApiOperation(value="流程配置明细-通过主表ID查询", notes="流程配置明细-通过主表ID查询") | ||
174 | - @GetMapping(value = "/listFlowDetailByMainId") | 174 | + |
175 | + /** | ||
176 | + * 通过主表ID查询 | ||
177 | + * | ||
178 | + * @return | ||
179 | + */ | ||
180 | + //@AutoLog(value = "流程配置明细-通过主表ID查询") | ||
181 | + @ApiOperation(value = "流程配置明细-通过主表ID查询", notes = "流程配置明细-通过主表ID查询") | ||
182 | + @GetMapping(value = "/listFlowDetailByMainId") | ||
175 | public Result<IPage<FlowDetail>> listFlowDetailByMainId(FlowDetail flowDetail, | 183 | public Result<IPage<FlowDetail>> listFlowDetailByMainId(FlowDetail flowDetail, |
176 | - @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | ||
177 | - @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
178 | - HttpServletRequest req) { | 184 | + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
185 | + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
186 | + HttpServletRequest req) { | ||
179 | QueryWrapper<FlowDetail> queryWrapper = QueryGenerator.initQueryWrapper(flowDetail, req.getParameterMap()); | 187 | QueryWrapper<FlowDetail> queryWrapper = QueryGenerator.initQueryWrapper(flowDetail, req.getParameterMap()); |
180 | Page<FlowDetail> page = new Page<FlowDetail>(pageNo, pageSize); | 188 | Page<FlowDetail> page = new Page<FlowDetail>(pageNo, pageSize); |
181 | IPage<FlowDetail> pageList = flowDetailService.page(page, queryWrapper); | 189 | IPage<FlowDetail> pageList = flowDetailService.page(page, queryWrapper); |
182 | return Result.OK(pageList); | 190 | return Result.OK(pageList); |
183 | } | 191 | } |
184 | 192 | ||
185 | - /** | ||
186 | - * 添加 | ||
187 | - * @param flowDetail | ||
188 | - * @return | ||
189 | - */ | ||
190 | - @AutoLog(value = "流程配置明细-添加") | ||
191 | - @ApiOperation(value="流程配置明细-添加", notes="流程配置明细-添加") | ||
192 | - @PostMapping(value = "/addFlowDetail") | ||
193 | - public Result<String> addFlowDetail(@RequestBody FlowDetail flowDetail) { | ||
194 | - String [] users=flowDetail.getAuditorId().split(","); | ||
195 | - //批量新增的时候,按前台选择用户的顺序,生成审核顺序 | ||
196 | - LambdaQueryWrapper<FlowDetail>lambdaQueryWrapper=new LambdaQueryWrapper<>(); | ||
197 | - lambdaQueryWrapper.eq(FlowDetail::getHeadId,flowDetail.getHeadId()) | ||
198 | - .orderByDesc(FlowDetail::getSequence).last("limit 1"); | ||
199 | - FlowDetail detail=flowDetailService.getOne(lambdaQueryWrapper); | ||
200 | - Integer sequence=0; | ||
201 | - if (detail!=null){ | ||
202 | - sequence=detail.getSequence(); | ||
203 | - } | ||
204 | - List<FlowDetail>flowDetailList=new ArrayList<>(); | ||
205 | - for (int i=0;i<users.length;i++){ | ||
206 | - sequence++; | ||
207 | - FlowDetail flowDetail1=new FlowDetail(); | ||
208 | - flowDetail1.setHeadId(flowDetail.getHeadId()); | ||
209 | - flowDetail1.setSequence(sequence); | ||
210 | - flowDetail1.setRemark(flowDetail.getRemark()); | ||
211 | - //查询用户姓名 | ||
212 | - SysUser user=iSysUserService.getUserByName(users[i]); | ||
213 | - flowDetail1.setAuditor(user.getRealname()); | ||
214 | - flowDetail1.setAuditorId(users[i]); | ||
215 | - flowDetailList.add(flowDetail1); | ||
216 | - } | ||
217 | - flowDetailService.saveBatch(flowDetailList); | ||
218 | - return Result.OK("添加成功!"); | ||
219 | - } | 193 | + /** |
194 | + * 添加 | ||
195 | + * | ||
196 | + * @param flowDetail | ||
197 | + * @return | ||
198 | + */ | ||
199 | + @AutoLog(value = "流程配置明细-添加") | ||
200 | + @ApiOperation(value = "流程配置明细-添加", notes = "流程配置明细-添加") | ||
201 | + @PostMapping(value = "/addFlowDetail") | ||
202 | + public Result<String> addFlowDetail(@RequestBody FlowDetail flowDetail) { | ||
203 | + String[] users = flowDetail.getAuditorId().split(","); | ||
204 | + //批量新增的时候,按前台选择用户的顺序,生成审核顺序 | ||
205 | + LambdaQueryWrapper<FlowDetail> lambdaQueryWrapper = new LambdaQueryWrapper<>(); | ||
206 | + lambdaQueryWrapper.eq(FlowDetail::getHeadId, flowDetail.getHeadId()) | ||
207 | + .orderByDesc(FlowDetail::getSequence).last("limit 1"); | ||
208 | + FlowDetail detail = flowDetailService.getOne(lambdaQueryWrapper); | ||
209 | + Integer sequence = 0; | ||
210 | + if (detail != null) { | ||
211 | + sequence = detail.getSequence(); | ||
212 | + } | ||
213 | + List<FlowDetail> flowDetailList = new ArrayList<>(); | ||
214 | + for (int i = 0; i < users.length; i++) { | ||
215 | + sequence++; | ||
216 | + FlowDetail flowDetail1 = new FlowDetail(); | ||
217 | + flowDetail1.setHeadId(flowDetail.getHeadId()); | ||
218 | + flowDetail1.setSequence(sequence); | ||
219 | + flowDetail1.setRemark(flowDetail.getRemark()); | ||
220 | + //查询用户姓名 | ||
221 | + SysUser user = iSysUserService.getUserByName(users[i]); | ||
222 | + flowDetail1.setAuditor(user.getRealname()); | ||
223 | + flowDetail1.setAuditorId(users[i]); | ||
224 | + flowDetailList.add(flowDetail1); | ||
225 | + } | ||
226 | + flowDetailService.saveBatch(flowDetailList); | ||
227 | + return Result.OK("添加成功!"); | ||
228 | + } | ||
220 | 229 | ||
221 | /** | 230 | /** |
222 | - * 编辑 | ||
223 | - * @param flowDetail | ||
224 | - * @return | ||
225 | - */ | ||
226 | - @AutoLog(value = "流程配置明细-编辑") | ||
227 | - @ApiOperation(value="流程配置明细-编辑", notes="流程配置明细-编辑") | ||
228 | - @RequestMapping(value = "/editFlowDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | ||
229 | - public Result<String> editFlowDetail(@RequestBody FlowDetail flowDetail) { | ||
230 | - flowDetailService.updateById(flowDetail); | ||
231 | - return Result.OK("编辑成功!"); | ||
232 | - } | 231 | + * 编辑 |
232 | + * | ||
233 | + * @param flowDetail | ||
234 | + * @return | ||
235 | + */ | ||
236 | + @AutoLog(value = "流程配置明细-编辑") | ||
237 | + @ApiOperation(value = "流程配置明细-编辑", notes = "流程配置明细-编辑") | ||
238 | + @RequestMapping(value = "/editFlowDetail", method = {RequestMethod.PUT, RequestMethod.POST}) | ||
239 | + public Result<String> editFlowDetail(@RequestBody FlowDetail flowDetail) { | ||
240 | + flowDetailService.updateById(flowDetail); | ||
241 | + return Result.OK("编辑成功!"); | ||
242 | + } | ||
233 | 243 | ||
234 | - /** | ||
235 | - * 通过id删除 | ||
236 | - * @param id | ||
237 | - * @return | ||
238 | - */ | ||
239 | - @AutoLog(value = "流程配置明细-通过id删除") | ||
240 | - @ApiOperation(value="流程配置明细-通过id删除", notes="流程配置明细-通过id删除") | ||
241 | - @DeleteMapping(value = "/deleteFlowDetail") | ||
242 | - public Result<String> deleteFlowDetail(@RequestParam(name="id",required=true) String id) { | ||
243 | - flowDetailService.removeById(id); | ||
244 | - return Result.OK("删除成功!"); | ||
245 | - } | 244 | + /** |
245 | + * 通过id删除 | ||
246 | + * | ||
247 | + * @param id | ||
248 | + * @return | ||
249 | + */ | ||
250 | + @AutoLog(value = "流程配置明细-通过id删除") | ||
251 | + @ApiOperation(value = "流程配置明细-通过id删除", notes = "流程配置明细-通过id删除") | ||
252 | + @DeleteMapping(value = "/deleteFlowDetail") | ||
253 | + public Result<String> deleteFlowDetail(@RequestParam(name = "id", required = true) String id) { | ||
254 | + flowDetailService.removeById(id); | ||
255 | + return Result.OK("删除成功!"); | ||
256 | + } | ||
246 | 257 | ||
247 | - /** | ||
248 | - * 批量删除 | ||
249 | - * @param ids | ||
250 | - * @return | ||
251 | - */ | ||
252 | - @AutoLog(value = "流程配置明细-批量删除") | ||
253 | - @ApiOperation(value="流程配置明细-批量删除", notes="流程配置明细-批量删除") | ||
254 | - @DeleteMapping(value = "/deleteBatchFlowDetail") | ||
255 | - public Result<String> deleteBatchFlowDetail(@RequestParam(name="ids",required=true) String ids) { | ||
256 | - this.flowDetailService.removeByIds(Arrays.asList(ids.split(","))); | ||
257 | - return Result.OK("批量删除成功!"); | ||
258 | - } | 258 | + /** |
259 | + * 批量删除 | ||
260 | + * | ||
261 | + * @param ids | ||
262 | + * @return | ||
263 | + */ | ||
264 | + @AutoLog(value = "流程配置明细-批量删除") | ||
265 | + @ApiOperation(value = "流程配置明细-批量删除", notes = "流程配置明细-批量删除") | ||
266 | + @DeleteMapping(value = "/deleteBatchFlowDetail") | ||
267 | + public Result<String> deleteBatchFlowDetail(@RequestParam(name = "ids", required = true) String ids) { | ||
268 | + this.flowDetailService.removeByIds(Arrays.asList(ids.split(","))); | ||
269 | + return Result.OK("批量删除成功!"); | ||
270 | + } | ||
259 | 271 | ||
260 | /** | 272 | /** |
261 | * 导出 | 273 | * 导出 |
274 | + * | ||
262 | * @return | 275 | * @return |
263 | */ | 276 | */ |
264 | @RequestMapping(value = "/exportFlowDetail") | 277 | @RequestMapping(value = "/exportFlowDetail") |
265 | public ModelAndView exportFlowDetail(HttpServletRequest request, FlowDetail flowDetail) { | 278 | public ModelAndView exportFlowDetail(HttpServletRequest request, FlowDetail flowDetail) { |
266 | - // Step.1 组装查询条件 | ||
267 | - QueryWrapper<FlowDetail> queryWrapper = QueryGenerator.initQueryWrapper(flowDetail, request.getParameterMap()); | ||
268 | - LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); | ||
269 | - | ||
270 | - // Step.2 获取导出数据 | ||
271 | - List<FlowDetail> pageList = flowDetailService.list(queryWrapper); | ||
272 | - List<FlowDetail> exportList = null; | ||
273 | - | ||
274 | - // 过滤选中数据 | ||
275 | - String selections = request.getParameter("selections"); | ||
276 | - if (oConvertUtils.isNotEmpty(selections)) { | ||
277 | - List<String> selectionList = Arrays.asList(selections.split(",")); | ||
278 | - exportList = pageList.stream().filter(item -> selectionList.contains(item.getId())).collect(Collectors.toList()); | ||
279 | - } else { | ||
280 | - exportList = pageList; | ||
281 | - } | ||
282 | - | ||
283 | - // Step.3 AutoPoi 导出Excel | ||
284 | - ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); | ||
285 | - mv.addObject(NormalExcelConstants.FILE_NAME, "流程配置明细"); //此处设置的filename无效 ,前端会重更新设置一下 | ||
286 | - mv.addObject(NormalExcelConstants.CLASS, FlowDetail.class); | ||
287 | - mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("流程配置明细报表", "导出人:" + sysUser.getRealname(), "流程配置明细")); | ||
288 | - mv.addObject(NormalExcelConstants.DATA_LIST, exportList); | ||
289 | - return mv; | 279 | + // Step.1 组装查询条件 |
280 | + QueryWrapper<FlowDetail> queryWrapper = QueryGenerator.initQueryWrapper(flowDetail, request.getParameterMap()); | ||
281 | + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); | ||
282 | + | ||
283 | + // Step.2 获取导出数据 | ||
284 | + List<FlowDetail> pageList = flowDetailService.list(queryWrapper); | ||
285 | + List<FlowDetail> exportList = null; | ||
286 | + | ||
287 | + // 过滤选中数据 | ||
288 | + String selections = request.getParameter("selections"); | ||
289 | + if (oConvertUtils.isNotEmpty(selections)) { | ||
290 | + List<String> selectionList = Arrays.asList(selections.split(",")); | ||
291 | + exportList = pageList.stream().filter(item -> selectionList.contains(item.getId())).collect(Collectors.toList()); | ||
292 | + } else { | ||
293 | + exportList = pageList; | ||
294 | + } | ||
295 | + | ||
296 | + // Step.3 AutoPoi 导出Excel | ||
297 | + ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); | ||
298 | + mv.addObject(NormalExcelConstants.FILE_NAME, "流程配置明细"); //此处设置的filename无效 ,前端会重更新设置一下 | ||
299 | + mv.addObject(NormalExcelConstants.CLASS, FlowDetail.class); | ||
300 | + mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("流程配置明细报表", "导出人:" + sysUser.getRealname(), "流程配置明细")); | ||
301 | + mv.addObject(NormalExcelConstants.DATA_LIST, exportList); | ||
302 | + return mv; | ||
290 | } | 303 | } |
291 | 304 | ||
292 | /** | 305 | /** |
293 | * 导入 | 306 | * 导入 |
307 | + * | ||
294 | * @return | 308 | * @return |
295 | */ | 309 | */ |
296 | @RequestMapping(value = "/importFlowDetail/{mainId}") | 310 | @RequestMapping(value = "/importFlowDetail/{mainId}") |
297 | public Result<?> importFlowDetail(HttpServletRequest request, HttpServletResponse response, @PathVariable("mainId") String mainId) { | 311 | public Result<?> importFlowDetail(HttpServletRequest request, HttpServletResponse response, @PathVariable("mainId") String mainId) { |
298 | - MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; | ||
299 | - Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); | ||
300 | - for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { | ||
301 | - MultipartFile file = entity.getValue();// 获取上传文件对象 | ||
302 | - ImportParams params = new ImportParams(); | ||
303 | - params.setTitleRows(2); | ||
304 | - params.setHeadRows(1); | ||
305 | - params.setNeedSave(true); | ||
306 | - try { | ||
307 | - List<FlowDetail> list = ExcelImportUtil.importExcel(file.getInputStream(), FlowDetail.class, params); | ||
308 | - for (FlowDetail temp : list) { | 312 | + MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
313 | + Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); | ||
314 | + for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { | ||
315 | + MultipartFile file = entity.getValue();// 获取上传文件对象 | ||
316 | + ImportParams params = new ImportParams(); | ||
317 | + params.setTitleRows(2); | ||
318 | + params.setHeadRows(1); | ||
319 | + params.setNeedSave(true); | ||
320 | + try { | ||
321 | + List<FlowDetail> list = ExcelImportUtil.importExcel(file.getInputStream(), FlowDetail.class, params); | ||
322 | + for (FlowDetail temp : list) { | ||
309 | temp.setHeadId(mainId); | 323 | temp.setHeadId(mainId); |
310 | - } | ||
311 | - long start = System.currentTimeMillis(); | ||
312 | - flowDetailService.saveBatch(list); | ||
313 | - log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒"); | ||
314 | - return Result.OK("文件导入成功!数据行数:" + list.size()); | ||
315 | - } catch (Exception e) { | ||
316 | - log.error(e.getMessage(), e); | ||
317 | - return Result.error("文件导入失败:" + e.getMessage()); | ||
318 | - } finally { | ||
319 | - try { | ||
320 | - file.getInputStream().close(); | ||
321 | - } catch (IOException e) { | ||
322 | - e.printStackTrace(); | ||
323 | - } | ||
324 | - } | ||
325 | - } | ||
326 | - return Result.error("文件导入失败!"); | 324 | + } |
325 | + long start = System.currentTimeMillis(); | ||
326 | + flowDetailService.saveBatch(list); | ||
327 | + log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒"); | ||
328 | + return Result.OK("文件导入成功!数据行数:" + list.size()); | ||
329 | + } catch (Exception e) { | ||
330 | + log.error(e.getMessage(), e); | ||
331 | + return Result.error("文件导入失败:" + e.getMessage()); | ||
332 | + } finally { | ||
333 | + try { | ||
334 | + file.getInputStream().close(); | ||
335 | + } catch (IOException e) { | ||
336 | + e.printStackTrace(); | ||
337 | + } | ||
338 | + } | ||
339 | + } | ||
340 | + return Result.error("文件导入失败!"); | ||
327 | } | 341 | } |
328 | 342 | ||
329 | /*--------------------------------子表处理-流程配置明细-end----------------------------------------------*/ | 343 | /*--------------------------------子表处理-流程配置明细-end----------------------------------------------*/ |
330 | - | ||
331 | - | ||
332 | - | ||
333 | - | ||
334 | } | 344 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryAge/controller/InventoryAgeAlarmController.java
@@ -11,7 +11,10 @@ import org.jeecg.modules.wms.config.materialWarning.service.IMaterialWarningServ | @@ -11,7 +11,10 @@ import org.jeecg.modules.wms.config.materialWarning.service.IMaterialWarningServ | ||
11 | import org.jeecg.modules.wms.inventory.inventoryAge.entity.InventoryAgeAlarm; | 11 | import org.jeecg.modules.wms.inventory.inventoryAge.entity.InventoryAgeAlarm; |
12 | import org.jeecg.modules.wms.inventory.inventoryAge.service.IInventoryAgeAlarmService; | 12 | import org.jeecg.modules.wms.inventory.inventoryAge.service.IInventoryAgeAlarmService; |
13 | import org.springframework.beans.factory.annotation.Autowired; | 13 | import org.springframework.beans.factory.annotation.Autowired; |
14 | -import org.springframework.web.bind.annotation.*; | 14 | +import org.springframework.web.bind.annotation.GetMapping; |
15 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
16 | +import org.springframework.web.bind.annotation.RequestParam; | ||
17 | +import org.springframework.web.bind.annotation.RestController; | ||
15 | import org.springframework.web.servlet.ModelAndView; | 18 | import org.springframework.web.servlet.ModelAndView; |
16 | 19 | ||
17 | import javax.servlet.http.HttpServletRequest; | 20 | import javax.servlet.http.HttpServletRequest; |
@@ -19,70 +22,68 @@ import javax.servlet.http.HttpServletRequest; | @@ -19,70 +22,68 @@ import javax.servlet.http.HttpServletRequest; | ||
19 | /** | 22 | /** |
20 | * @Description: inventory_level_alarm | 23 | * @Description: inventory_level_alarm |
21 | * @Author: jeecg-boot | 24 | * @Author: jeecg-boot |
22 | - * @Date: 2023-10-30 | 25 | + * @Date: 2023-10-30 |
23 | * @Version: V1.0 | 26 | * @Version: V1.0 |
24 | */ | 27 | */ |
25 | -@Api(tags="inventory_age_alarm") | 28 | +@Api(tags = "inventory_age_alarm") |
26 | @RestController | 29 | @RestController |
27 | @RequestMapping("/inventory/inventoryAge") | 30 | @RequestMapping("/inventory/inventoryAge") |
28 | @Slf4j | 31 | @Slf4j |
29 | public class InventoryAgeAlarmController extends JeecgController<InventoryAgeAlarm, IInventoryAgeAlarmService> { | 32 | public class InventoryAgeAlarmController extends JeecgController<InventoryAgeAlarm, IInventoryAgeAlarmService> { |
30 | - @Autowired | ||
31 | - private IInventoryAgeAlarmService iInventoryAgeAlarmService; | 33 | + @Autowired |
34 | + private IInventoryAgeAlarmService iInventoryAgeAlarmService; | ||
32 | 35 | ||
33 | - @Autowired | ||
34 | - private IMaterialWarningService iMaterialWarningService; | 36 | + @Autowired |
37 | + private IMaterialWarningService iMaterialWarningService; | ||
35 | 38 | ||
36 | - /** | ||
37 | - * 分页列表查询 | ||
38 | - * | ||
39 | - * @param pageNo | ||
40 | - * @param pageSize | ||
41 | - * @param req | ||
42 | - * @return | ||
43 | - */ | ||
44 | - //@AutoLog(value = "inventory_level_alarm-分页列表查询") | ||
45 | - @ApiOperation(value="inventory_level_alarm-分页列表查询", notes="inventory_level_alarm-分页列表查询") | ||
46 | - @GetMapping(value = "/list") | ||
47 | - public Result<IPage<InventoryAgeAlarm>> queryPageList(String materialCode, String materialName, String alarmStatus, | ||
48 | - @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | ||
49 | - @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | ||
50 | - HttpServletRequest req) { | 39 | + /** |
40 | + * 分页列表查询 | ||
41 | + * | ||
42 | + * @param pageNo | ||
43 | + * @param pageSize | ||
44 | + * @param req | ||
45 | + * @return | ||
46 | + */ | ||
47 | + //@AutoLog(value = "inventory_level_alarm-分页列表查询") | ||
48 | + @ApiOperation(value = "inventory_level_alarm-分页列表查询", notes = "inventory_level_alarm-分页列表查询") | ||
49 | + @GetMapping(value = "/list") | ||
50 | + public Result<IPage<InventoryAgeAlarm>> queryPageList(String materialCode, String materialName, String alarmStatus, | ||
51 | + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | ||
52 | + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
53 | + HttpServletRequest req) { | ||
51 | 54 | ||
52 | - Page<InventoryAgeAlarm> page = new Page<>(pageNo, pageSize); | ||
53 | - IPage<InventoryAgeAlarm> pageList = iInventoryAgeAlarmService.queryAgeAlarm(page, materialCode, materialName, alarmStatus); | ||
54 | - //对list分页处理 | ||
55 | - return Result.OK(pageList); | ||
56 | - } | 55 | + Page<InventoryAgeAlarm> page = new Page<>(pageNo, pageSize); |
56 | + IPage<InventoryAgeAlarm> pageList = iInventoryAgeAlarmService.queryAgeAlarm(page, materialCode, materialName, alarmStatus); | ||
57 | + //对list分页处理 | ||
58 | + return Result.OK(pageList); | ||
59 | + } | ||
57 | 60 | ||
58 | 61 | ||
59 | - /** | ||
60 | - * 通过id查询 | ||
61 | - * | ||
62 | - * @param id | ||
63 | - * @return | ||
64 | - */ | ||
65 | - //@AutoLog(value = "inventory_age_alarm-通过id查询") | ||
66 | - @ApiOperation(value="inventory_age_alarm-通过id查询", notes="inventory_age_alarm-通过id查询") | ||
67 | - @GetMapping(value = "/queryById") | ||
68 | - public Result<InventoryAgeAlarm> queryById(@RequestParam(name="id",required=true) String id) { | ||
69 | - InventoryAgeAlarm inventoryageAlarm = iInventoryAgeAlarmService.getById(id); | ||
70 | - if(inventoryageAlarm ==null) { | ||
71 | - return Result.error("未找到对应数据"); | ||
72 | - } | ||
73 | - return Result.OK(inventoryageAlarm); | ||
74 | - } | 62 | + /** |
63 | + * 通过id查询 | ||
64 | + * | ||
65 | + * @param id | ||
66 | + * @return | ||
67 | + */ | ||
68 | + //@AutoLog(value = "inventory_age_alarm-通过id查询") | ||
69 | + @ApiOperation(value = "inventory_age_alarm-通过id查询", notes = "inventory_age_alarm-通过id查询") | ||
70 | + @GetMapping(value = "/queryById") | ||
71 | + public Result<InventoryAgeAlarm> queryById(@RequestParam(name = "id", required = true) String id) { | ||
72 | + InventoryAgeAlarm inventoryageAlarm = iInventoryAgeAlarmService.getById(id); | ||
73 | + if (inventoryageAlarm == null) { | ||
74 | + return Result.error("未找到对应数据"); | ||
75 | + } | ||
76 | + return Result.OK(inventoryageAlarm); | ||
77 | + } | ||
75 | 78 | ||
76 | /** | 79 | /** |
77 | - * 导出excel | ||
78 | - * | ||
79 | - * @param request | ||
80 | - * @param inventoryAgeAlarm | ||
81 | - */ | 80 | + * 导出excel |
81 | + * | ||
82 | + * @param request | ||
83 | + * @param inventoryAgeAlarm | ||
84 | + */ | ||
82 | @RequestMapping(value = "/exportXls") | 85 | @RequestMapping(value = "/exportXls") |
83 | public ModelAndView exportXls(HttpServletRequest request, InventoryAgeAlarm inventoryAgeAlarm) { | 86 | public ModelAndView exportXls(HttpServletRequest request, InventoryAgeAlarm inventoryAgeAlarm) { |
84 | return super.exportXls(request, inventoryAgeAlarm, InventoryAgeAlarm.class, "inventory_level_alarm"); | 87 | return super.exportXls(request, inventoryAgeAlarm, InventoryAgeAlarm.class, "inventory_level_alarm"); |
85 | } | 88 | } |
86 | - | ||
87 | - | ||
88 | } | 89 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryDetail/controller/InventoryDetailController.java
@@ -385,7 +385,7 @@ public class InventoryDetailController extends JeecgController<InventoryDetail, | @@ -385,7 +385,7 @@ public class InventoryDetailController extends JeecgController<InventoryDetail, | ||
385 | * @param inventoryDetail | 385 | * @param inventoryDetail |
386 | * @return | 386 | * @return |
387 | */ | 387 | */ |
388 | - @AutoLog(value = "库存详情-新增库存数量") | 388 | + @AutoLog(value = "库存详情-新增库存数量", operateType = 3) |
389 | @ApiOperation(value = "库存详情-新增库存数量", notes = "库存详情-新增库存数量") | 389 | @ApiOperation(value = "库存详情-新增库存数量", notes = "库存详情-新增库存数量") |
390 | @RequestMapping(value = "/increaseInventoryDetail", method = {RequestMethod.PUT, RequestMethod.POST}) | 390 | @RequestMapping(value = "/increaseInventoryDetail", method = {RequestMethod.PUT, RequestMethod.POST}) |
391 | public Result increaseInventoryDetail(@RequestBody InventoryDetail inventoryDetail) { | 391 | public Result increaseInventoryDetail(@RequestBody InventoryDetail inventoryDetail) { |
@@ -400,7 +400,7 @@ public class InventoryDetailController extends JeecgController<InventoryDetail, | @@ -400,7 +400,7 @@ public class InventoryDetailController extends JeecgController<InventoryDetail, | ||
400 | * @param inventoryDetail | 400 | * @param inventoryDetail |
401 | * @return | 401 | * @return |
402 | */ | 402 | */ |
403 | - @AutoLog(value = "库存详情-扣减库存数量") | 403 | + @AutoLog(value = "库存详情-扣减库存数量", operateType = 3) |
404 | @ApiOperation(value = "库存详情-扣减库存数量", notes = "库存详情-扣减库存数量") | 404 | @ApiOperation(value = "库存详情-扣减库存数量", notes = "库存详情-扣减库存数量") |
405 | @RequestMapping(value = "/reduceInventoryDetail", method = {RequestMethod.PUT, RequestMethod.POST}) | 405 | @RequestMapping(value = "/reduceInventoryDetail", method = {RequestMethod.PUT, RequestMethod.POST}) |
406 | public Result reduceInventoryDetail(@RequestBody InventoryDetail inventoryDetail) { | 406 | public Result reduceInventoryDetail(@RequestBody InventoryDetail inventoryDetail) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryHeader/controller/InventoryHeaderController.java
@@ -376,10 +376,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | @@ -376,10 +376,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | ||
376 | 376 | ||
377 | /*--------------------------------子表处理-库存详情-end----------------------------------------------*/ | 377 | /*--------------------------------子表处理-库存详情-end----------------------------------------------*/ |
378 | 378 | ||
379 | - @AutoLog("库存详情-释放受控") | 379 | + @AutoLog(value = "库存详情-释放受控", operateType = 3) |
380 | @ApiOperation(value = "释放受控", notes = "释放受控") | 380 | @ApiOperation(value = "释放受控", notes = "释放受控") |
381 | @PostMapping(value = "/releaseController") | 381 | @PostMapping(value = "/releaseController") |
382 | - @ResponseBody | ||
383 | public Result releaseController(@RequestBody List<Integer> ids, HttpServletRequest req) { | 382 | public Result releaseController(@RequestBody List<Integer> ids, HttpServletRequest req) { |
384 | if (StringUtils.isEmpty(ids)) { | 383 | if (StringUtils.isEmpty(ids)) { |
385 | throw new JeecgBootException("库存明细id为空"); | 384 | throw new JeecgBootException("库存明细id为空"); |
@@ -387,10 +386,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | @@ -387,10 +386,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | ||
387 | return inventoryDetailService.releaseController(ids); | 386 | return inventoryDetailService.releaseController(ids); |
388 | } | 387 | } |
389 | 388 | ||
390 | - @AutoLog("库存详情-批量受控") | 389 | + @AutoLog(value = "库存详情-批量受控", operateType = 3) |
391 | @ApiOperation(value = "批量受控", notes = "批量受控") | 390 | @ApiOperation(value = "批量受控", notes = "批量受控") |
392 | @PostMapping("/controller") | 391 | @PostMapping("/controller") |
393 | - @ResponseBody | ||
394 | public Result controller(@RequestBody List<Integer> ids) { | 392 | public Result controller(@RequestBody List<Integer> ids) { |
395 | if (StringUtils.isEmpty(ids)) { | 393 | if (StringUtils.isEmpty(ids)) { |
396 | return Result.error("库存明细id为空"); | 394 | return Result.error("库存明细id为空"); |
@@ -398,11 +396,10 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | @@ -398,11 +396,10 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | ||
398 | return inventoryDetailService.controller(ids); | 396 | return inventoryDetailService.controller(ids); |
399 | } | 397 | } |
400 | 398 | ||
401 | - @AutoLog("库存头-批量出整托库存") | 399 | + @AutoLog(value = "库存头-批量出整托库存", operateType = 4) |
402 | @ApiOperation(value = "批量出整托库存", notes = "批量出整托库存") | 400 | @ApiOperation(value = "批量出整托库存", notes = "批量出整托库存") |
403 | @ApiLogger(apiName = "批量出整托库存") | 401 | @ApiLogger(apiName = "批量出整托库存") |
404 | @PostMapping("/shipmentInventoryHeader") | 402 | @PostMapping("/shipmentInventoryHeader") |
405 | - @ResponseBody | ||
406 | public Result shipmentInventoryHeader(@RequestBody List<InventoryHeader> inventoryHeaderList, HttpServletRequest req) { | 403 | public Result shipmentInventoryHeader(@RequestBody List<InventoryHeader> inventoryHeaderList, HttpServletRequest req) { |
407 | if (StringUtils.isEmpty(inventoryHeaderList)) { | 404 | if (StringUtils.isEmpty(inventoryHeaderList)) { |
408 | return Result.error("库存头为空"); | 405 | return Result.error("库存头为空"); |
@@ -411,11 +408,10 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | @@ -411,11 +408,10 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | ||
411 | return inventoryHeaderService.shipmentInventoryHeader(inventoryHeaderList, warehouseCode); | 408 | return inventoryHeaderService.shipmentInventoryHeader(inventoryHeaderList, warehouseCode); |
412 | } | 409 | } |
413 | 410 | ||
414 | - @AutoLog("库存头-批量出库存详情") | 411 | + @AutoLog(value = "库存头-批量出库存详情", operateType = 4) |
415 | @ApiOperation(value = "批量出库存详情", notes = "批量出库存详情") | 412 | @ApiOperation(value = "批量出库存详情", notes = "批量出库存详情") |
416 | @ApiLogger(apiName = "批量出库存详情") | 413 | @ApiLogger(apiName = "批量出库存详情") |
417 | @PostMapping("/shipmentInventoryDetail") | 414 | @PostMapping("/shipmentInventoryDetail") |
418 | - @ResponseBody | ||
419 | public Result shipmentInventoryDetail(@RequestBody List<InventoryDetail> inventoryDetailList, HttpServletRequest req) { | 415 | public Result shipmentInventoryDetail(@RequestBody List<InventoryDetail> inventoryDetailList, HttpServletRequest req) { |
420 | if (StringUtils.isEmpty(inventoryDetailList)) { | 416 | if (StringUtils.isEmpty(inventoryDetailList)) { |
421 | return Result.error("库存明细为空"); | 417 | return Result.error("库存明细为空"); |
@@ -424,10 +420,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | @@ -424,10 +420,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | ||
424 | return inventoryHeaderService.shipmentInventoryDetail(inventoryDetailList, warehouseCode); | 420 | return inventoryHeaderService.shipmentInventoryDetail(inventoryDetailList, warehouseCode); |
425 | } | 421 | } |
426 | 422 | ||
427 | - @AutoLog("批量出库存详情") | 423 | + @AutoLog(value = "批量出库存详情", operateType = 4) |
428 | @ApiOperation(value = "批量出库存详情", notes = "批量出库存详情") | 424 | @ApiOperation(value = "批量出库存详情", notes = "批量出库存详情") |
429 | @PostMapping("/decuceInventoryDetail") | 425 | @PostMapping("/decuceInventoryDetail") |
430 | - @ResponseBody | ||
431 | public Result decuceInventoryDetail(@RequestBody List<InventoryDetail> inventoryDetailList, HttpServletRequest req) { | 426 | public Result decuceInventoryDetail(@RequestBody List<InventoryDetail> inventoryDetailList, HttpServletRequest req) { |
432 | if (StringUtils.isEmpty(inventoryDetailList)) { | 427 | if (StringUtils.isEmpty(inventoryDetailList)) { |
433 | return Result.error("库存明细为空"); | 428 | return Result.error("库存明细为空"); |
@@ -436,10 +431,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | @@ -436,10 +431,9 @@ public class InventoryHeaderController extends JeecgController<InventoryHeader, | ||
436 | return inventoryHeaderService.decuceInventoryDetail(inventoryDetailList, warehouseCode); | 431 | return inventoryHeaderService.decuceInventoryDetail(inventoryDetailList, warehouseCode); |
437 | } | 432 | } |
438 | 433 | ||
439 | - @AutoLog("按照库存详情质检") | 434 | + @AutoLog(value = "按照库存详情质检", operateType = 3) |
440 | @ApiOperation(value = "按照库存详情质检", notes = "按照库存详情质检") | 435 | @ApiOperation(value = "按照库存详情质检", notes = "按照库存详情质检") |
441 | @PostMapping("/qualityInventoryDetail") | 436 | @PostMapping("/qualityInventoryDetail") |
442 | - @ResponseBody | ||
443 | public Result qualityInventoryDetail(@RequestBody List<InventoryDetail> inventoryDetailList, HttpServletRequest req) { | 437 | public Result qualityInventoryDetail(@RequestBody List<InventoryDetail> inventoryDetailList, HttpServletRequest req) { |
444 | if (StringUtils.isEmpty(inventoryDetailList)) { | 438 | if (StringUtils.isEmpty(inventoryDetailList)) { |
445 | return Result.error("库存明细为空"); | 439 | return Result.error("库存明细为空"); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryLevel/controller/InventoryLevelAlarmController.java
1 | package org.jeecg.modules.wms.inventory.inventoryLevel.controller; | 1 | package org.jeecg.modules.wms.inventory.inventoryLevel.controller; |
2 | 2 | ||
3 | -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||
5 | import com.baomidou.mybatisplus.core.metadata.IPage; | 3 | import com.baomidou.mybatisplus.core.metadata.IPage; |
6 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 4 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
7 | import io.swagger.annotations.Api; | 5 | import io.swagger.annotations.Api; |
@@ -9,89 +7,78 @@ import io.swagger.annotations.ApiOperation; | @@ -9,89 +7,78 @@ import io.swagger.annotations.ApiOperation; | ||
9 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
10 | import org.jeecg.common.api.vo.Result; | 8 | import org.jeecg.common.api.vo.Result; |
11 | import org.jeecg.common.system.base.controller.JeecgController; | 9 | import org.jeecg.common.system.base.controller.JeecgController; |
12 | -import org.jeecg.common.system.query.QueryGenerator; | ||
13 | -import org.jeecg.modules.oss.entity.OSSFile; | ||
14 | -import org.jeecg.modules.wms.config.materialWarning.entity.MaterialWarning; | ||
15 | -import org.jeecg.modules.wms.config.materialWarning.service.IMaterialWarningService; | ||
16 | import org.jeecg.modules.wms.inventory.inventoryLevel.entity.InventoryLevelAlarm; | 10 | import org.jeecg.modules.wms.inventory.inventoryLevel.entity.InventoryLevelAlarm; |
17 | import org.jeecg.modules.wms.inventory.inventoryLevel.service.IInventoryLevelAlarmService; | 11 | import org.jeecg.modules.wms.inventory.inventoryLevel.service.IInventoryLevelAlarmService; |
18 | -import org.jeecg.utils.StringUtils; | ||
19 | import org.springframework.beans.factory.annotation.Autowired; | 12 | import org.springframework.beans.factory.annotation.Autowired; |
20 | -import org.springframework.web.bind.annotation.*; | 13 | +import org.springframework.web.bind.annotation.GetMapping; |
14 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
15 | +import org.springframework.web.bind.annotation.RequestParam; | ||
16 | +import org.springframework.web.bind.annotation.RestController; | ||
21 | import org.springframework.web.servlet.ModelAndView; | 17 | import org.springframework.web.servlet.ModelAndView; |
22 | 18 | ||
23 | import javax.servlet.http.HttpServletRequest; | 19 | import javax.servlet.http.HttpServletRequest; |
24 | -import java.util.List; | ||
25 | -import java.util.stream.Collectors; | ||
26 | 20 | ||
27 | /** | 21 | /** |
28 | * @Description: inventory_level_alarm | 22 | * @Description: inventory_level_alarm |
29 | * @Author: jeecg-boot | 23 | * @Author: jeecg-boot |
30 | - * @Date: 2023-10-30 | 24 | + * @Date: 2023-10-30 |
31 | * @Version: V1.0 | 25 | * @Version: V1.0 |
32 | */ | 26 | */ |
33 | -@Api(tags="inventory_level_alarm") | 27 | +@Api(tags = "inventory_level_alarm") |
34 | @RestController | 28 | @RestController |
35 | @RequestMapping("/inventory/inventoryLevel") | 29 | @RequestMapping("/inventory/inventoryLevel") |
36 | @Slf4j | 30 | @Slf4j |
37 | public class InventoryLevelAlarmController extends JeecgController<InventoryLevelAlarm, IInventoryLevelAlarmService> { | 31 | public class InventoryLevelAlarmController extends JeecgController<InventoryLevelAlarm, IInventoryLevelAlarmService> { |
38 | - @Autowired | ||
39 | - private IInventoryLevelAlarmService iInventoryLevelAlarmService; | ||
40 | 32 | ||
41 | - @Autowired | ||
42 | - private IMaterialWarningService iMaterialWarningService; | ||
43 | - | ||
44 | - /** | ||
45 | - * 分页列表查询 | ||
46 | - * | ||
47 | - * @param inventoryLevelAlarm | ||
48 | - * @param pageNo | ||
49 | - * @param pageSize | ||
50 | - * @param req | ||
51 | - * @return | ||
52 | - */ | ||
53 | - //@AutoLog(value = "inventory_level_alarm-分页列表查询") | ||
54 | - @ApiOperation(value="inventory_level_alarm-分页列表查询", notes="inventory_level_alarm-分页列表查询") | ||
55 | - @GetMapping(value = "/list") | ||
56 | - public Result<IPage<InventoryLevelAlarm>> queryPageList(String materialCode, String materialName, String alarmStatus, | ||
57 | - @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | ||
58 | - @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | ||
59 | - HttpServletRequest req) { | ||
60 | - | ||
61 | - Page<InventoryLevelAlarm> page = new Page<>(pageNo, pageSize); | ||
62 | - IPage<InventoryLevelAlarm> pageList = iInventoryLevelAlarmService.queryLevelAlarm(page, materialCode, materialName, alarmStatus); | ||
63 | - //对list分页处理 | ||
64 | - return Result.OK(pageList); | ||
65 | - } | 33 | + @Autowired |
34 | + private IInventoryLevelAlarmService iInventoryLevelAlarmService; | ||
66 | 35 | ||
36 | + /** | ||
37 | + * 分页列表查询 | ||
38 | + * | ||
39 | + * @param pageNo | ||
40 | + * @param pageSize | ||
41 | + * @param req | ||
42 | + * @return | ||
43 | + */ | ||
44 | + //@AutoLog(value = "inventory_level_alarm-分页列表查询") | ||
45 | + @ApiOperation(value = "inventory_level_alarm-分页列表查询", notes = "inventory_level_alarm-分页列表查询") | ||
46 | + @GetMapping(value = "/list") | ||
47 | + public Result<IPage<InventoryLevelAlarm>> queryPageList(String materialCode, String materialName, String alarmStatus, | ||
48 | + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | ||
49 | + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
50 | + HttpServletRequest req) { | ||
51 | + Page<InventoryLevelAlarm> page = new Page<>(pageNo, pageSize); | ||
52 | + IPage<InventoryLevelAlarm> pageList = iInventoryLevelAlarmService.queryLevelAlarm(page, materialCode, materialName, alarmStatus); | ||
53 | + //对list分页处理 | ||
54 | + return Result.OK(pageList); | ||
55 | + } | ||
67 | 56 | ||
68 | - /** | ||
69 | - * 通过id查询 | ||
70 | - * | ||
71 | - * @param id | ||
72 | - * @return | ||
73 | - */ | ||
74 | - //@AutoLog(value = "inventory_level_alarm-通过id查询") | ||
75 | - @ApiOperation(value="inventory_level_alarm-通过id查询", notes="inventory_level_alarm-通过id查询") | ||
76 | - @GetMapping(value = "/queryById") | ||
77 | - public Result<InventoryLevelAlarm> queryById(@RequestParam(name="id",required=true) String id) { | ||
78 | - InventoryLevelAlarm inventoryLevelAlarm = iInventoryLevelAlarmService.getById(id); | ||
79 | - if(inventoryLevelAlarm ==null) { | ||
80 | - return Result.error("未找到对应数据"); | ||
81 | - } | ||
82 | - return Result.OK(inventoryLevelAlarm); | ||
83 | - } | 57 | + /** |
58 | + * 通过id查询 | ||
59 | + * | ||
60 | + * @param id | ||
61 | + * @return | ||
62 | + */ | ||
63 | + //@AutoLog(value = "inventory_level_alarm-通过id查询") | ||
64 | + @ApiOperation(value = "inventory_level_alarm-通过id查询", notes = "inventory_level_alarm-通过id查询") | ||
65 | + @GetMapping(value = "/queryById") | ||
66 | + public Result<InventoryLevelAlarm> queryById(@RequestParam(name = "id", required = true) String id) { | ||
67 | + InventoryLevelAlarm inventoryLevelAlarm = iInventoryLevelAlarmService.getById(id); | ||
68 | + if (inventoryLevelAlarm == null) { | ||
69 | + return Result.error("未找到对应数据"); | ||
70 | + } | ||
71 | + return Result.OK(inventoryLevelAlarm); | ||
72 | + } | ||
84 | 73 | ||
85 | /** | 74 | /** |
86 | - * 导出excel | ||
87 | - * | ||
88 | - * @param request | ||
89 | - * @param inventoryLevelAlarm | ||
90 | - */ | 75 | + * 导出excel |
76 | + * | ||
77 | + * @param request | ||
78 | + * @param inventoryLevelAlarm | ||
79 | + */ | ||
91 | @RequestMapping(value = "/exportXls") | 80 | @RequestMapping(value = "/exportXls") |
92 | public ModelAndView exportXls(HttpServletRequest request, InventoryLevelAlarm inventoryLevelAlarm) { | 81 | public ModelAndView exportXls(HttpServletRequest request, InventoryLevelAlarm inventoryLevelAlarm) { |
93 | return super.exportXls(request, inventoryLevelAlarm, InventoryLevelAlarm.class, "inventory_level_alarm"); | 82 | return super.exportXls(request, inventoryLevelAlarm, InventoryLevelAlarm.class, "inventory_level_alarm"); |
94 | } | 83 | } |
95 | - | ||
96 | - | ||
97 | } | 84 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/qualityHeader/controller/QualityHeaderController.java
@@ -310,7 +310,7 @@ public class QualityHeaderController extends JeecgController<QualityHeader, IQua | @@ -310,7 +310,7 @@ public class QualityHeaderController extends JeecgController<QualityHeader, IQua | ||
310 | * @param qualityDetail | 310 | * @param qualityDetail |
311 | * @return | 311 | * @return |
312 | */ | 312 | */ |
313 | - @AutoLog(value = "质检单详情-质检") | 313 | + @AutoLog(value = "质检单详情-质检", operateType = 3) |
314 | @ApiOperation(value = "质检单详情-质检", notes = "质检单详情-质检") | 314 | @ApiOperation(value = "质检单详情-质检", notes = "质检单详情-质检") |
315 | @RequestMapping(value = "/qualityTesting", method = {RequestMethod.PUT, RequestMethod.POST}) | 315 | @RequestMapping(value = "/qualityTesting", method = {RequestMethod.PUT, RequestMethod.POST}) |
316 | public Result<String> qualityTesting(@RequestBody QualityDetail qualityDetail) { | 316 | public Result<String> qualityTesting(@RequestBody QualityDetail qualityDetail) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/controller/ReceiptContainerHeaderController.java
@@ -342,9 +342,9 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -342,9 +342,9 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
342 | * 创建任务 | 342 | * 创建任务 |
343 | * @return | 343 | * @return |
344 | */ | 344 | */ |
345 | + @AutoLog(value = "入库组盘-创建任务", operateType = 2) | ||
345 | @ApiOperation(value = "入库组盘-创建任务", notes = "入库组盘-创建任务") | 346 | @ApiOperation(value = "入库组盘-创建任务", notes = "入库组盘-创建任务") |
346 | @PostMapping("/createReceiptTask") | 347 | @PostMapping("/createReceiptTask") |
347 | - @ResponseBody | ||
348 | public Result createReceiptTask(@RequestBody ReceiptContainerHeader receiptContainerHeader, HttpServletRequest req) { | 348 | public Result createReceiptTask(@RequestBody ReceiptContainerHeader receiptContainerHeader, HttpServletRequest req) { |
349 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 349 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
350 | Result result = huahengMultiHandlerService.createReceiptTask(receiptContainerHeader, warehouseCode); | 350 | Result result = huahengMultiHandlerService.createReceiptTask(receiptContainerHeader, warehouseCode); |
@@ -355,9 +355,9 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -355,9 +355,9 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
355 | * 创建任务 | 355 | * 创建任务 |
356 | * @return | 356 | * @return |
357 | */ | 357 | */ |
358 | + @AutoLog(value = "入库组盘-创建任务", operateType = 2) | ||
358 | @ApiOperation(value = "入库组盘-创建任务", notes = "入库组盘-创建任务") | 359 | @ApiOperation(value = "入库组盘-创建任务", notes = "入库组盘-创建任务") |
359 | @PostMapping("/createReceiptBatchTask") | 360 | @PostMapping("/createReceiptBatchTask") |
360 | - @ResponseBody | ||
361 | public Result createReceiptBatchTask(@RequestBody List<ReceiptContainerHeader> receiptContainerHeaderList, HttpServletRequest req) { | 361 | public Result createReceiptBatchTask(@RequestBody List<ReceiptContainerHeader> receiptContainerHeaderList, HttpServletRequest req) { |
362 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 362 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
363 | if (CollectionUtils.isEmpty(receiptContainerHeaderList)) { | 363 | if (CollectionUtils.isEmpty(receiptContainerHeaderList)) { |
@@ -402,7 +402,6 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -402,7 +402,6 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
402 | */ | 402 | */ |
403 | @ApiOperation(value = "出库配盘-选择分拣口", notes = "出库配盘-选择分拣口") | 403 | @ApiOperation(value = "出库配盘-选择分拣口", notes = "出库配盘-选择分拣口") |
404 | @PostMapping("/selectSupplePort") | 404 | @PostMapping("/selectSupplePort") |
405 | - @ResponseBody | ||
406 | public Result selectSupplePort(@RequestBody ReceiptContainerHeader receiptContainerHeader, HttpServletRequest req) { | 405 | public Result selectSupplePort(@RequestBody ReceiptContainerHeader receiptContainerHeader, HttpServletRequest req) { |
407 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 406 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
408 | String fromLocationCode = receiptContainerHeader.getFromLocationCode(); | 407 | String fromLocationCode = receiptContainerHeader.getFromLocationCode(); |
@@ -439,7 +438,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -439,7 +438,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
439 | * 指定库位 | 438 | * 指定库位 |
440 | * @return | 439 | * @return |
441 | */ | 440 | */ |
442 | - @AutoLog(value = "入库组盘-指定库位") | 441 | + @AutoLog(value = "入库组盘-指定库位", operateType = 3) |
443 | @ApiOperation(value = "入库组盘-指定库位", notes = "入库组盘-指定库位") | 442 | @ApiOperation(value = "入库组盘-指定库位", notes = "入库组盘-指定库位") |
444 | @RequestMapping(value = "/allocation", method = {RequestMethod.PUT, RequestMethod.POST}) | 443 | @RequestMapping(value = "/allocation", method = {RequestMethod.PUT, RequestMethod.POST}) |
445 | public Result<String> allocation(@RequestBody ReceiptContainerHeader receiptContainerHeader) { | 444 | public Result<String> allocation(@RequestBody ReceiptContainerHeader receiptContainerHeader) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java
@@ -406,7 +406,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -406,7 +406,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
406 | * @param receiptHeader | 406 | * @param receiptHeader |
407 | * @return | 407 | * @return |
408 | */ | 408 | */ |
409 | - @AutoLog(value = "回传入库单") | 409 | + @AutoLog(value = "回传入库单", operateType = 3) |
410 | @ApiOperation(value = "回传入库单", notes = "回传入库单") | 410 | @ApiOperation(value = "回传入库单", notes = "回传入库单") |
411 | @RequiresPermissions("receiptHeader:back") | 411 | @RequiresPermissions("receiptHeader:back") |
412 | @RequestMapping(value = "/backErpReceipt", method = {RequestMethod.PUT, RequestMethod.POST}) | 412 | @RequestMapping(value = "/backErpReceipt", method = {RequestMethod.PUT, RequestMethod.POST}) |
@@ -414,10 +414,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -414,10 +414,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
414 | return huahengMultiHandlerService.backReceipt(receiptHeader); | 414 | return huahengMultiHandlerService.backReceipt(receiptHeader); |
415 | } | 415 | } |
416 | 416 | ||
417 | - @AutoLog(value = "PDA入库-快速入库") | 417 | + @AutoLog(value = "PDA入库-快速入库", operateType = 2) |
418 | @ApiOperation(value = "PDA入库-快速入库", notes = "快速入库") | 418 | @ApiOperation(value = "PDA入库-快速入库", notes = "快速入库") |
419 | @PostMapping("/quickReceipt") | 419 | @PostMapping("/quickReceipt") |
420 | - @ResponseBody | ||
421 | @ApiLogger(apiName = "PDA入库-快速入库", from = "PDA") | 420 | @ApiLogger(apiName = "PDA入库-快速入库", from = "PDA") |
422 | public Result<?> quickReceipt(@RequestBody QuickReceiptBean bean, HttpServletRequest req) { | 421 | public Result<?> quickReceipt(@RequestBody QuickReceiptBean bean, HttpServletRequest req) { |
423 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 422 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
@@ -426,10 +425,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -426,10 +425,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
426 | return result; | 425 | return result; |
427 | } | 426 | } |
428 | 427 | ||
429 | - @AutoLog(value = "PDA入库-呼叫料盒") | 428 | + @AutoLog(value = "PDA入库-呼叫料盒", operateType = 2) |
430 | @ApiOperation(value = "PDA入库-呼叫料盒", notes = "创建空的补充入库任务,并返回任务id") | 429 | @ApiOperation(value = "PDA入库-呼叫料盒", notes = "创建空的补充入库任务,并返回任务id") |
431 | @PostMapping("/callbox") | 430 | @PostMapping("/callbox") |
432 | - @ResponseBody | ||
433 | @ApiLogger(apiName = "PDA入库-呼叫料盒", from = "PDA") | 431 | @ApiLogger(apiName = "PDA入库-呼叫料盒", from = "PDA") |
434 | public Result<?> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { | 432 | public Result<?> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { |
435 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 433 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
@@ -439,10 +437,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -439,10 +437,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
439 | return result; | 437 | return result; |
440 | } | 438 | } |
441 | 439 | ||
442 | - @AutoLog(value = "PDA入库-批量呼叫料盒") | 440 | + @AutoLog(value = "PDA入库-批量呼叫料盒", operateType = 2) |
443 | @ApiOperation(value = "PDA入库-批量呼叫料盒", notes = "创建空的补充入库任务,并返回任务id") | 441 | @ApiOperation(value = "PDA入库-批量呼叫料盒", notes = "创建空的补充入库任务,并返回任务id") |
444 | @PostMapping("/batchCallBox") | 442 | @PostMapping("/batchCallBox") |
445 | - @ResponseBody | ||
446 | @ApiLogger(apiName = "PDA入库-批量呼叫料盒", from = "PDA") | 443 | @ApiLogger(apiName = "PDA入库-批量呼叫料盒", from = "PDA") |
447 | public Result<?> batchCallBox(@RequestBody List<CallBoxBean> callBoxBeanList, HttpServletRequest req) { | 444 | public Result<?> batchCallBox(@RequestBody List<CallBoxBean> callBoxBeanList, HttpServletRequest req) { |
448 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 445 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
@@ -455,10 +452,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -455,10 +452,9 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
455 | return result; | 452 | return result; |
456 | } | 453 | } |
457 | 454 | ||
458 | - @AutoLog(value = "越库") | 455 | + @AutoLog(value = "越库", operateType = 3) |
459 | @ApiOperation(value = "越库", notes = "越库") | 456 | @ApiOperation(value = "越库", notes = "越库") |
460 | @PostMapping("/crossDocking") | 457 | @PostMapping("/crossDocking") |
461 | - @ResponseBody | ||
462 | @ApiLogger(apiName = "越库", from = "WMS") | 458 | @ApiLogger(apiName = "越库", from = "WMS") |
463 | public Result<?> crossDocking(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { | 459 | public Result<?> crossDocking(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { |
464 | return receiptHeaderService.crossDocking(id); | 460 | return receiptHeaderService.crossDocking(id); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiveHeader/controller/ReceiveHeaderController.java
@@ -335,7 +335,6 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | @@ -335,7 +335,6 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | ||
335 | */ | 335 | */ |
336 | @ApiOperation(value = "入库单详情-通过详情ID查询", notes = "入库单详情-通过详情ID查询") | 336 | @ApiOperation(value = "入库单详情-通过详情ID查询", notes = "入库单详情-通过详情ID查询") |
337 | @PostMapping("/listReceiveByReceiveId") | 337 | @PostMapping("/listReceiveByReceiveId") |
338 | - @ResponseBody | ||
339 | public Result listReceiveByReceiveId(@RequestBody ReceiveDetail receiveDetailDomain) { | 338 | public Result listReceiveByReceiveId(@RequestBody ReceiveDetail receiveDetailDomain) { |
340 | List<Receive> receiveList = new ArrayList<>(); | 339 | List<Receive> receiveList = new ArrayList<>(); |
341 | QueryWrapper<ReceiveDetail> queryWrapper = QueryGenerator.initQueryWrapper(receiveDetailDomain, null); | 340 | QueryWrapper<ReceiveDetail> queryWrapper = QueryGenerator.initQueryWrapper(receiveDetailDomain, null); |
@@ -366,13 +365,11 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | @@ -366,13 +365,11 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | ||
366 | * | 365 | * |
367 | * @return | 366 | * @return |
368 | */ | 367 | */ |
369 | - @AutoLog("收货单-收货") | 368 | + @AutoLog(value = "收货单-收货", operateType = 2) |
370 | @ApiOperation(value = "收货单-收货", notes = "收货单-收货") | 369 | @ApiOperation(value = "收货单-收货", notes = "收货单-收货") |
371 | @PostMapping("/receive") | 370 | @PostMapping("/receive") |
372 | - @ResponseBody | ||
373 | public Result receive(@RequestBody List<Receive> receiveList, HttpServletRequest req) { | 371 | public Result receive(@RequestBody List<Receive> receiveList, HttpServletRequest req) { |
374 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 372 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
375 | - String lockKey = warehouseCode; | ||
376 | Result result = receiveDetailService.receive(receiveList, warehouseCode); | 373 | Result result = receiveDetailService.receive(receiveList, warehouseCode); |
377 | return result; | 374 | return result; |
378 | } | 375 | } |
@@ -382,13 +379,11 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | @@ -382,13 +379,11 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | ||
382 | * | 379 | * |
383 | * @return | 380 | * @return |
384 | */ | 381 | */ |
385 | - @AutoLog("收货单-全部收货") | 382 | + @AutoLog(value = "收货单-全部收货", operateType = 2) |
386 | @ApiOperation(value = "收货单-全部收货", notes = "收货单-全部收货") | 383 | @ApiOperation(value = "收货单-全部收货", notes = "收货单-全部收货") |
387 | @PostMapping("/receiveHeader") | 384 | @PostMapping("/receiveHeader") |
388 | - @ResponseBody | ||
389 | public Result receiveHeader(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { | 385 | public Result receiveHeader(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { |
390 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 386 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
391 | - String lockKey = warehouseCode; | ||
392 | Result result = receiveDetailService.receiveHeader(id, warehouseCode); | 387 | Result result = receiveDetailService.receiveHeader(id, warehouseCode); |
393 | return result; | 388 | return result; |
394 | } | 389 | } |
@@ -398,13 +393,11 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | @@ -398,13 +393,11 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | ||
398 | * | 393 | * |
399 | * @return | 394 | * @return |
400 | */ | 395 | */ |
401 | - @AutoLog("收货单-收货详情质检") | 396 | + @AutoLog(value = "收货单-收货详情质检", operateType = 3) |
402 | @ApiOperation(value = "收货单-收货详情质检", notes = "收货单-收货详情质检") | 397 | @ApiOperation(value = "收货单-收货详情质检", notes = "收货单-收货详情质检") |
403 | @PostMapping("/receiveDetailToQuality") | 398 | @PostMapping("/receiveDetailToQuality") |
404 | - @ResponseBody | ||
405 | public Result receiveDetailToQuality(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { | 399 | public Result receiveDetailToQuality(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { |
406 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 400 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
407 | - String lockKey = warehouseCode; | ||
408 | Result result = receiveDetailService.receiveToQuality(id, warehouseCode); | 401 | Result result = receiveDetailService.receiveToQuality(id, warehouseCode); |
409 | return result; | 402 | return result; |
410 | } | 403 | } |
@@ -414,10 +407,9 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | @@ -414,10 +407,9 @@ public class ReceiveHeaderController extends JeecgController<ReceiveHeader, IRec | ||
414 | * | 407 | * |
415 | * @return | 408 | * @return |
416 | */ | 409 | */ |
417 | - @AutoLog("收货单-全部质检") | 410 | + @AutoLog(value = "收货单-全部质检", operateType = 3) |
418 | @ApiOperation(value = "收货单-全部质检", notes = "收货单-全部质检") | 411 | @ApiOperation(value = "收货单-全部质检", notes = "收货单-全部质检") |
419 | @PostMapping("/receiveHeaderToQuality") | 412 | @PostMapping("/receiveHeaderToQuality") |
420 | - @ResponseBody | ||
421 | public Result receiveHeaderToQuality(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { | 413 | public Result receiveHeaderToQuality(@RequestParam(name = "id", required = true) String id, HttpServletRequest req) { |
422 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 414 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
423 | Result result = receiveHeaderService.receiveHeaderToQuality(id, warehouseCode); | 415 | Result result = receiveHeaderService.receiveHeaderToQuality(id, warehouseCode); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiving/controller/ReceiveController.java
@@ -45,10 +45,6 @@ public class ReceiveController extends HuahengBaseController { | @@ -45,10 +45,6 @@ public class ReceiveController extends HuahengBaseController { | ||
45 | @Resource | 45 | @Resource |
46 | private IContainerService containerService; | 46 | private IContainerService containerService; |
47 | @Resource | 47 | @Resource |
48 | - private ILocationService locationService; | ||
49 | - @Resource | ||
50 | - private IInventoryHeaderService inventoryHeaderService; | ||
51 | - @Resource | ||
52 | private IHuahengMultiHandlerService huahengMultiHandlerService; | 48 | private IHuahengMultiHandlerService huahengMultiHandlerService; |
53 | 49 | ||
54 | /** | 50 | /** |
@@ -58,7 +54,6 @@ public class ReceiveController extends HuahengBaseController { | @@ -58,7 +54,6 @@ public class ReceiveController extends HuahengBaseController { | ||
58 | */ | 54 | */ |
59 | @ApiOperation(value = "入库单详情-通过详情ID查询", notes = "入库单详情-通过详情ID查询") | 55 | @ApiOperation(value = "入库单详情-通过详情ID查询", notes = "入库单详情-通过详情ID查询") |
60 | @PostMapping("/listReceiveByReceiptId") | 56 | @PostMapping("/listReceiveByReceiptId") |
61 | - @ResponseBody | ||
62 | public Result listReceiveByReceiptId(@RequestBody ReceiptDetail receiptDetailDomain) { | 57 | public Result listReceiveByReceiptId(@RequestBody ReceiptDetail receiptDetailDomain) { |
63 | List<Receive> receiveList = new ArrayList<>(); | 58 | List<Receive> receiveList = new ArrayList<>(); |
64 | QueryWrapper<ReceiptDetail> queryWrapper = QueryGenerator.initQueryWrapper(receiptDetailDomain, null); | 59 | QueryWrapper<ReceiptDetail> queryWrapper = QueryGenerator.initQueryWrapper(receiptDetailDomain, null); |
@@ -89,10 +84,9 @@ public class ReceiveController extends HuahengBaseController { | @@ -89,10 +84,9 @@ public class ReceiveController extends HuahengBaseController { | ||
89 | * | 84 | * |
90 | * @return | 85 | * @return |
91 | */ | 86 | */ |
92 | - @AutoLog("入库单-组盘") | 87 | + @AutoLog(value = "入库单-组盘", operateType = 2) |
93 | @ApiOperation(value = "入库单-组盘", notes = "入库单-组盘") | 88 | @ApiOperation(value = "入库单-组盘", notes = "入库单-组盘") |
94 | @PostMapping("/receiving") | 89 | @PostMapping("/receiving") |
95 | - @ResponseBody | ||
96 | public Result receiving(@RequestBody List<Receive> receiveList, HttpServletRequest req) { | 90 | public Result receiving(@RequestBody List<Receive> receiveList, HttpServletRequest req) { |
97 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 91 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
98 | String lockKey = warehouseCode; | 92 | String lockKey = warehouseCode; |
@@ -111,10 +105,9 @@ public class ReceiveController extends HuahengBaseController { | @@ -111,10 +105,9 @@ public class ReceiveController extends HuahengBaseController { | ||
111 | * | 105 | * |
112 | * @return | 106 | * @return |
113 | */ | 107 | */ |
114 | - @AutoLog("入库单-生成任务") | 108 | + @AutoLog(value = "入库单-生成任务", operateType = 2) |
115 | @ApiOperation(value = "入库单-生成任务", notes = "入库单-生成任务") | 109 | @ApiOperation(value = "入库单-生成任务", notes = "入库单-生成任务") |
116 | @PostMapping("/receivingAndCreateTask") | 110 | @PostMapping("/receivingAndCreateTask") |
117 | - @ResponseBody | ||
118 | public Result receivingAndCreateTask(@RequestBody List<Receive> receiveList, HttpServletRequest req) { | 111 | public Result receivingAndCreateTask(@RequestBody List<Receive> receiveList, HttpServletRequest req) { |
119 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 112 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
120 | String lockKey = warehouseCode; | 113 | String lockKey = warehouseCode; |
@@ -133,15 +126,12 @@ public class ReceiveController extends HuahengBaseController { | @@ -133,15 +126,12 @@ public class ReceiveController extends HuahengBaseController { | ||
133 | * | 126 | * |
134 | * @return | 127 | * @return |
135 | */ | 128 | */ |
136 | - @AutoLog("入库单-平库组盘") | 129 | + @AutoLog(value = "入库单-平库组盘", operateType = 2) |
137 | @ApiOperation(value = "入库单-平库组盘", notes = "入库单-平库组盘") | 130 | @ApiOperation(value = "入库单-平库组盘", notes = "入库单-平库组盘") |
138 | @PostMapping("/flatReceive") | 131 | @PostMapping("/flatReceive") |
139 | - @ResponseBody | ||
140 | public Result flatReceive(@RequestBody List<Receive> receiveList, HttpServletRequest req) { | 132 | public Result flatReceive(@RequestBody List<Receive> receiveList, HttpServletRequest req) { |
141 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 133 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
142 | String lockKey = warehouseCode; | 134 | String lockKey = warehouseCode; |
143 | - Receive receive = receiveList.get(0); | ||
144 | - String containerCode = receive.getContainerCode(); | ||
145 | Result result = handleMultiProcess("flatReceive", lockKey, new MultiProcessListener() { | 135 | Result result = handleMultiProcess("flatReceive", lockKey, new MultiProcessListener() { |
146 | @Override | 136 | @Override |
147 | public Result<?> doProcess() { | 137 | public Result<?> doProcess() { |
@@ -157,10 +147,9 @@ public class ReceiveController extends HuahengBaseController { | @@ -157,10 +147,9 @@ public class ReceiveController extends HuahengBaseController { | ||
157 | * | 147 | * |
158 | * @return | 148 | * @return |
159 | */ | 149 | */ |
160 | - @AutoLog("入库单-平库上架") | 150 | + @AutoLog(value = "入库单-平库上架", operateType = 2) |
161 | @ApiOperation(value = "入库单-平库上架", notes = "入库单-平库上架") | 151 | @ApiOperation(value = "入库单-平库上架", notes = "入库单-平库上架") |
162 | @PostMapping("/flatOnShell") | 152 | @PostMapping("/flatOnShell") |
163 | - @ResponseBody | ||
164 | public Result flatOnShell(@RequestBody OnShell onShell, HttpServletRequest req) { | 153 | public Result flatOnShell(@RequestBody OnShell onShell, HttpServletRequest req) { |
165 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 154 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
166 | String lockKey = warehouseCode; | 155 | String lockKey = warehouseCode; |
@@ -185,10 +174,9 @@ public class ReceiveController extends HuahengBaseController { | @@ -185,10 +174,9 @@ public class ReceiveController extends HuahengBaseController { | ||
185 | * | 174 | * |
186 | * @return | 175 | * @return |
187 | */ | 176 | */ |
188 | - @AutoLog("入库单-平库入库") | 177 | + @AutoLog(value = "入库单-平库入库", operateType = 2) |
189 | @ApiOperation(value = "入库单-平库入库", notes = "入库单-平库入库") | 178 | @ApiOperation(value = "入库单-平库入库", notes = "入库单-平库入库") |
190 | @PostMapping("/flatReceipt") | 179 | @PostMapping("/flatReceipt") |
191 | - @ResponseBody | ||
192 | public Result flatReceipt(@RequestBody List<Receive> receiveList, HttpServletRequest req) { | 180 | public Result flatReceipt(@RequestBody List<Receive> receiveList, HttpServletRequest req) { |
193 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 181 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
194 | String lockKey = warehouseCode; | 182 | String lockKey = warehouseCode; |
@@ -221,10 +209,9 @@ public class ReceiveController extends HuahengBaseController { | @@ -221,10 +209,9 @@ public class ReceiveController extends HuahengBaseController { | ||
221 | * | 209 | * |
222 | * @return | 210 | * @return |
223 | */ | 211 | */ |
224 | - @AutoLog("入库单-AGV入库") | 212 | + @AutoLog(value = "入库单-AGV入库", operateType = 2) |
225 | @ApiOperation(value = "入库单-AGV入库", notes = "入库单-AGV入库") | 213 | @ApiOperation(value = "入库单-AGV入库", notes = "入库单-AGV入库") |
226 | @PostMapping("/agvReceipt") | 214 | @PostMapping("/agvReceipt") |
227 | - @ResponseBody | ||
228 | public Result agvReceipt(@RequestBody List<Receive> receiveList, HttpServletRequest req) { | 215 | public Result agvReceipt(@RequestBody List<Receive> receiveList, HttpServletRequest req) { |
229 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 216 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
230 | String lockKey = warehouseCode; | 217 | String lockKey = warehouseCode; |
@@ -238,7 +225,7 @@ public class ReceiveController extends HuahengBaseController { | @@ -238,7 +225,7 @@ public class ReceiveController extends HuahengBaseController { | ||
238 | return result; | 225 | return result; |
239 | } | 226 | } |
240 | 227 | ||
241 | - @AutoLog(value = "平库快速入库", operateType = 1) | 228 | + @AutoLog(value = "平库快速入库", operateType = 2) |
242 | @ApiOperation(value = "平库快速入库", notes = "平库快速入库") | 229 | @ApiOperation(value = "平库快速入库", notes = "平库快速入库") |
243 | @PostMapping("/flatQuickReceipt") | 230 | @PostMapping("/flatQuickReceipt") |
244 | public Result<?> flatQuickReceipt(@RequestBody QuickReceiptBean bean, HttpServletRequest req) { | 231 | public Result<?> flatQuickReceipt(@RequestBody QuickReceiptBean bean, HttpServletRequest req) { |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/controller/ShipmentCombinationController.java
@@ -76,7 +76,6 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -76,7 +76,6 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
76 | * @return | 76 | * @return |
77 | */ | 77 | */ |
78 | @GetMapping("/getShipmentDetailListByShipmentCode") | 78 | @GetMapping("/getShipmentDetailListByShipmentCode") |
79 | - @ResponseBody | ||
80 | public Result getShipmentDetailListByShipmentCode(String shipmentCode, HttpServletRequest req) { | 79 | public Result getShipmentDetailListByShipmentCode(String shipmentCode, HttpServletRequest req) { |
81 | if (StringUtils.isEmpty(shipmentCode)) { | 80 | if (StringUtils.isEmpty(shipmentCode)) { |
82 | return Result.error("没有找到出库单号"); | 81 | return Result.error("没有找到出库单号"); |
@@ -93,10 +92,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -93,10 +92,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
93 | * | 92 | * |
94 | * @return | 93 | * @return |
95 | */ | 94 | */ |
96 | - @AutoLog("出库单-自动配盘") | 95 | + @AutoLog(value = "出库单-自动配盘", operateType = 4) |
97 | @ApiOperation(value = "出库单-自动配盘", notes = "出库单-自动配盘") | 96 | @ApiOperation(value = "出库单-自动配盘", notes = "出库单-自动配盘") |
98 | @PostMapping("/autoCombination") | 97 | @PostMapping("/autoCombination") |
99 | - @ResponseBody | ||
100 | public Result autoCombination(@RequestBody ShipmentHeader shipmentHeader) { | 98 | public Result autoCombination(@RequestBody ShipmentHeader shipmentHeader) { |
101 | String shipmentCode = shipmentHeader.getCode(); | 99 | String shipmentCode = shipmentHeader.getCode(); |
102 | String warehouseCode = shipmentHeader.getWarehouseCode(); | 100 | String warehouseCode = shipmentHeader.getWarehouseCode(); |
@@ -108,10 +106,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -108,10 +106,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
108 | * | 106 | * |
109 | * @return | 107 | * @return |
110 | */ | 108 | */ |
111 | - @AutoLog("出库单-配盘") | 109 | + @AutoLog(value = "出库单-配盘", operateType = 4) |
112 | @ApiOperation(value = "出库单-配盘", notes = "出库单-配盘") | 110 | @ApiOperation(value = "出库单-配盘", notes = "出库单-配盘") |
113 | @PostMapping("/combination") | 111 | @PostMapping("/combination") |
114 | - @ResponseBody | ||
115 | public Result combination(@RequestBody CombinationParam combinationParam) { | 112 | public Result combination(@RequestBody CombinationParam combinationParam) { |
116 | return huahengMultiHandlerService.combination(combinationParam); | 113 | return huahengMultiHandlerService.combination(combinationParam); |
117 | } | 114 | } |
@@ -121,9 +118,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -121,9 +118,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
121 | * | 118 | * |
122 | * @return | 119 | * @return |
123 | */ | 120 | */ |
121 | + @AutoLog(value = "出库组盘-创建出库任务", operateType = 2) | ||
124 | @ApiOperation(value = "出库组盘-创建出库任务", notes = "出库组盘-创建出库任务") | 122 | @ApiOperation(value = "出库组盘-创建出库任务", notes = "出库组盘-创建出库任务") |
125 | @PostMapping("/createShipmentTask") | 123 | @PostMapping("/createShipmentTask") |
126 | - @ResponseBody | ||
127 | public Result createShipmentTask(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { | 124 | public Result createShipmentTask(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { |
128 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 125 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
129 | Result result = huahengMultiHandlerService.createShipmentTask(shipmentContainerHeader, warehouseCode, 0, 0, 0); | 126 | Result result = huahengMultiHandlerService.createShipmentTask(shipmentContainerHeader, warehouseCode, 0, 0, 0); |
@@ -135,9 +132,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -135,9 +132,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
135 | * | 132 | * |
136 | * @return | 133 | * @return |
137 | */ | 134 | */ |
135 | + @AutoLog(value = "出库组盘-批量创建出库任务", operateType = 2) | ||
138 | @ApiOperation(value = "出库组盘-批量创建出库任务", notes = "出库组盘-批量创建出库任务") | 136 | @ApiOperation(value = "出库组盘-批量创建出库任务", notes = "出库组盘-批量创建出库任务") |
139 | @PostMapping("/createShipmentBatchTask") | 137 | @PostMapping("/createShipmentBatchTask") |
140 | - @ResponseBody | ||
141 | public Result createShipmentBatchTask(@RequestBody List<ShipmentContainerHeader> shipmentContainerHeaderList, HttpServletRequest req) { | 138 | public Result createShipmentBatchTask(@RequestBody List<ShipmentContainerHeader> shipmentContainerHeaderList, HttpServletRequest req) { |
142 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 139 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
143 | if (CollectionUtils.isEmpty(shipmentContainerHeaderList)) { | 140 | if (CollectionUtils.isEmpty(shipmentContainerHeaderList)) { |
@@ -188,7 +185,6 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -188,7 +185,6 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
188 | */ | 185 | */ |
189 | @ApiOperation(value = "出库组盘-选择分拣口", notes = "出库组盘-选择分拣口") | 186 | @ApiOperation(value = "出库组盘-选择分拣口", notes = "出库组盘-选择分拣口") |
190 | @PostMapping("/selectSortingPort") | 187 | @PostMapping("/selectSortingPort") |
191 | - @ResponseBody | ||
192 | public Result selectSortingPort(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { | 188 | public Result selectSortingPort(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { |
193 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 189 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
194 | String fromLocationCode = shipmentContainerHeader.getFromLocationCode(); | 190 | String fromLocationCode = shipmentContainerHeader.getFromLocationCode(); |
@@ -214,18 +210,13 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -214,18 +210,13 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
214 | type = QuantityConstant.PORT_TYPE_OUT; | 210 | type = QuantityConstant.PORT_TYPE_OUT; |
215 | } | 211 | } |
216 | List<Port> portList = portService.getPortListByType(type, roadWay, zoneCode, warehouseCode); | 212 | List<Port> portList = portService.getPortListByType(type, roadWay, zoneCode, warehouseCode); |
217 | - if (portList.size() == 0) { | 213 | + if (portList.isEmpty()) { |
218 | return Result.error("选择分拣口时, 没有找到合适的分拣口"); | 214 | return Result.error("选择分拣口时, 没有找到合适的分拣口"); |
219 | } | 215 | } |
220 | return Result.OK(portList); | 216 | return Result.OK(portList); |
221 | } | 217 | } |
222 | 218 | ||
223 | - /** | ||
224 | - * 匹配库存 | ||
225 | - * | ||
226 | - * @return | ||
227 | - */ | ||
228 | - @AutoLog(value = "出库组盘-选取库存") | 219 | + |
229 | @ApiOperation(value = "出库组盘-选取库存", notes = "出库组盘-选取库存") | 220 | @ApiOperation(value = "出库组盘-选取库存", notes = "出库组盘-选取库存") |
230 | @GetMapping("/getInventoryFromShipmentDetail") | 221 | @GetMapping("/getInventoryFromShipmentDetail") |
231 | public Result getInventoryFromShipmentDetail(ShipmentDetail shipmentDetail, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | 222 | public Result getInventoryFromShipmentDetail(ShipmentDetail shipmentDetail, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
@@ -234,15 +225,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -234,15 +225,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
234 | return shipmentCombinationService.getInventoryFromShipmentDetail(id); | 225 | return shipmentCombinationService.getInventoryFromShipmentDetail(id); |
235 | } | 226 | } |
236 | 227 | ||
237 | - /** | ||
238 | - * 通过详情ID查询 | ||
239 | - * | ||
240 | - * @return | ||
241 | - */ | ||
242 | - @AutoLog("出库单详情-通过详情ID查询") | 228 | + |
243 | @ApiOperation(value = "出库单详情-通过详情ID查询", notes = "出库单详情-通过详情ID查询") | 229 | @ApiOperation(value = "出库单详情-通过详情ID查询", notes = "出库单详情-通过详情ID查询") |
244 | @PostMapping("/listShipmentByShipmentDetailId") | 230 | @PostMapping("/listShipmentByShipmentDetailId") |
245 | - @ResponseBody | ||
246 | public Result listShipmentByShipmentDetailId(@RequestBody ShipmentDetail shipmentDetail) { | 231 | public Result listShipmentByShipmentDetailId(@RequestBody ShipmentDetail shipmentDetail) { |
247 | shipmentDetail = shipmentDetailService.getById(shipmentDetail.getId()); | 232 | shipmentDetail = shipmentDetailService.getById(shipmentDetail.getId()); |
248 | Shipment shipment = new Shipment(); | 233 | Shipment shipment = new Shipment(); |
@@ -266,8 +251,8 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -266,8 +251,8 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
266 | * | 251 | * |
267 | * @return | 252 | * @return |
268 | */ | 253 | */ |
269 | - @AutoLog(value = "平库出库,通过托盘") | ||
270 | - @ApiOperation(value = "平库出库,通过托盘", notes = "平库出库,通过托盘") | 254 | + @AutoLog(value = "平库出库,通过托盘", operateType = 4) |
255 | + @ApiOperation(value = "平库出库,通过托盘", notes = "平库出库,通过托盘") | ||
271 | @PostMapping("/flatShipmentByContainerCode") | 256 | @PostMapping("/flatShipmentByContainerCode") |
272 | public Result flatShipmentByContainerCode(@RequestBody List<FlatShipment> flatShipmentList, HttpServletRequest req) { | 257 | public Result flatShipmentByContainerCode(@RequestBody List<FlatShipment> flatShipmentList, HttpServletRequest req) { |
273 | FlatShipment flatShipment = flatShipmentList.get(0); | 258 | FlatShipment flatShipment = flatShipmentList.get(0); |
@@ -281,7 +266,7 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -281,7 +266,7 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
281 | * | 266 | * |
282 | * @return | 267 | * @return |
283 | */ | 268 | */ |
284 | - @AutoLog(value = "平库出库,通过库位") | 269 | + @AutoLog(value = "平库出库,通过库位", operateType = 4) |
285 | @ApiOperation(value = "平库出库,通过库位", notes = "平库出库,通过库位") | 270 | @ApiOperation(value = "平库出库,通过库位", notes = "平库出库,通过库位") |
286 | @PostMapping("/flatShipmentByLocationCode") | 271 | @PostMapping("/flatShipmentByLocationCode") |
287 | public Result flatShipmentByLocationCode(@RequestBody List<FlatShipment> flatShipmentList, HttpServletRequest req) { | 272 | public Result flatShipmentByLocationCode(@RequestBody List<FlatShipment> flatShipmentList, HttpServletRequest req) { |
@@ -296,9 +281,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -296,9 +281,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
296 | * | 281 | * |
297 | * @return | 282 | * @return |
298 | */ | 283 | */ |
284 | + @AutoLog(value = "平库出库", operateType = 4) | ||
299 | @ApiOperation(value = "平库出库", notes = "平库出库") | 285 | @ApiOperation(value = "平库出库", notes = "平库出库") |
300 | @PostMapping("/completeFlatShipment") | 286 | @PostMapping("/completeFlatShipment") |
301 | - @ResponseBody | ||
302 | public Result completeFlatShipment(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { | 287 | public Result completeFlatShipment(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { |
303 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 288 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
304 | String lockKey = warehouseCode; | 289 | String lockKey = warehouseCode; |
@@ -318,9 +303,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -318,9 +303,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
318 | * | 303 | * |
319 | * @return | 304 | * @return |
320 | */ | 305 | */ |
321 | - @ApiOperation(value = "创建出库任务, 出库任务完成以后,AGV去接", notes = "创建出库任务, 出库任务完成以后,AGV去接") | 306 | + @AutoLog(value = "创建出库任务,出库任务完成以后,AGV去接", operateType = 2) |
307 | + @ApiOperation(value = "创建出库任务,出库任务完成以后,AGV去接", notes = "创建出库任务,出库任务完成以后,AGV去接") | ||
322 | @PostMapping("/createShipmentTaskByAgv") | 308 | @PostMapping("/createShipmentTaskByAgv") |
323 | - @ResponseBody | ||
324 | public Result createShipmentTaskByAgv(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { | 309 | public Result createShipmentTaskByAgv(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { |
325 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 310 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
326 | Result result = shipmentCombinationService.createShipmentTaskByAgv(shipmentContainerHeader, warehouseCode); | 311 | Result result = shipmentCombinationService.createShipmentTaskByAgv(shipmentContainerHeader, warehouseCode); |
@@ -333,9 +318,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -333,9 +318,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
333 | * | 318 | * |
334 | * @return | 319 | * @return |
335 | */ | 320 | */ |
336 | - @ApiOperation(value = "创建出库任务, 出库任务完成以后,AGV去接", notes = "创建出库任务, 出库任务完成以后,AGV去接") | 321 | + @AutoLog(value = "创建出库任务,出库任务完成以后,AGV去接", operateType = 2) |
322 | + @ApiOperation(value = "创建出库任务,出库任务完成以后,AGV去接", notes = "创建出库任务,出库任务完成以后,AGV去接") | ||
337 | @PostMapping("/createBatchShipmentTaskByAgv") | 323 | @PostMapping("/createBatchShipmentTaskByAgv") |
338 | - @ResponseBody | ||
339 | public Result createBatchShipmentTaskByAgv(@RequestBody List<ShipmentContainerHeader> shipmentContainerHeaderList, HttpServletRequest req) { | 324 | public Result createBatchShipmentTaskByAgv(@RequestBody List<ShipmentContainerHeader> shipmentContainerHeaderList, HttpServletRequest req) { |
340 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 325 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
341 | for (ShipmentContainerHeader shipmentContainerHeader : shipmentContainerHeaderList) { | 326 | for (ShipmentContainerHeader shipmentContainerHeader : shipmentContainerHeaderList) { |
@@ -353,9 +338,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -353,9 +338,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
353 | * | 338 | * |
354 | * @return | 339 | * @return |
355 | */ | 340 | */ |
341 | + @AutoLog(value = "同时创建出库任务和AGV任务", operateType = 2) | ||
356 | @ApiOperation(value = "同时创建出库任务和AGV任务", notes = "同时创建出库任务和AGV任务") | 342 | @ApiOperation(value = "同时创建出库任务和AGV任务", notes = "同时创建出库任务和AGV任务") |
357 | @PostMapping("/createShipmentTaskAndAgvTask") | 343 | @PostMapping("/createShipmentTaskAndAgvTask") |
358 | - @ResponseBody | ||
359 | public Result createShipmentTaskAndAgvTask(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { | 344 | public Result createShipmentTaskAndAgvTask(@RequestBody ShipmentContainerHeader shipmentContainerHeader, HttpServletRequest req) { |
360 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 345 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
361 | String lockKey = warehouseCode; | 346 | String lockKey = warehouseCode; |
@@ -375,9 +360,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -375,9 +360,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
375 | * | 360 | * |
376 | * @return | 361 | * @return |
377 | */ | 362 | */ |
363 | + @AutoLog(value = "根据序列号扣减预配盘的库存", operateType = 4) | ||
378 | @ApiOperation(value = "根据序列号扣减预配盘的库存", notes = "根据序列号扣减预配盘的库存") | 364 | @ApiOperation(value = "根据序列号扣减预配盘的库存", notes = "根据序列号扣减预配盘的库存") |
379 | @PostMapping("/reduceInventoryDetailBySn") | 365 | @PostMapping("/reduceInventoryDetailBySn") |
380 | - @ResponseBody | ||
381 | public Result reduceInventoryDetailBySn(@RequestParam(name = "snList", required = true) String snList, HttpServletRequest req) { | 366 | public Result reduceInventoryDetailBySn(@RequestParam(name = "snList", required = true) String snList, HttpServletRequest req) { |
382 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 367 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
383 | String lockKey = warehouseCode; | 368 | String lockKey = warehouseCode; |
@@ -396,9 +381,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -396,9 +381,9 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
396 | * | 381 | * |
397 | * @return | 382 | * @return |
398 | */ | 383 | */ |
384 | + @AutoLog(value = "出库复核", operateType = 3) | ||
399 | @ApiOperation(value = "出库复核", notes = "出库复核") | 385 | @ApiOperation(value = "出库复核", notes = "出库复核") |
400 | @PostMapping("/shipmentCheck") | 386 | @PostMapping("/shipmentCheck") |
401 | - @ResponseBody | ||
402 | public Result shipmentCheck(@RequestBody List<ShipmentContainerAdvice> shipmentContainerAdviceList, HttpServletRequest req) { | 387 | public Result shipmentCheck(@RequestBody List<ShipmentContainerAdvice> shipmentContainerAdviceList, HttpServletRequest req) { |
403 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 388 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
404 | String lockKey = warehouseCode; | 389 | String lockKey = warehouseCode; |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentHeader/controller/ShipmentHeaderController.java
@@ -115,7 +115,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -115,7 +115,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
115 | return shipmentHeaderService.saveShipmentHeader(shipmentHeader); | 115 | return shipmentHeaderService.saveShipmentHeader(shipmentHeader); |
116 | } | 116 | } |
117 | 117 | ||
118 | - @AutoLog(value = "出库单-单据合并") | 118 | + @AutoLog(value = "出库单-单据合并", operateType = 3) |
119 | @ApiOperation(value = "出库单-单据合并", notes = "出库单-单据合并") | 119 | @ApiOperation(value = "出库单-单据合并", notes = "出库单-单据合并") |
120 | @PostMapping(value = "/mergeShipment") | 120 | @PostMapping(value = "/mergeShipment") |
121 | @RequiresPermissions("shipmentHeader:mergeShipment") | 121 | @RequiresPermissions("shipmentHeader:mergeShipment") |
@@ -411,7 +411,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -411,7 +411,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
411 | * @param shipmentHeader | 411 | * @param shipmentHeader |
412 | * @return | 412 | * @return |
413 | */ | 413 | */ |
414 | - @AutoLog(value = "回传出库单") | 414 | + @AutoLog(value = "回传出库单", operateType = 3) |
415 | @ApiOperation(value = "回传出库单", notes = "回传出库单") | 415 | @ApiOperation(value = "回传出库单", notes = "回传出库单") |
416 | @RequiresPermissions("shipmentHeader:back") | 416 | @RequiresPermissions("shipmentHeader:back") |
417 | @RequestMapping(value = "/backErpShipment", method = {RequestMethod.PUT, RequestMethod.POST}) | 417 | @RequestMapping(value = "/backErpShipment", method = {RequestMethod.PUT, RequestMethod.POST}) |
@@ -419,10 +419,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -419,10 +419,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
419 | return huahengMultiHandlerService.backShipment(shipmentHeader); | 419 | return huahengMultiHandlerService.backShipment(shipmentHeader); |
420 | } | 420 | } |
421 | 421 | ||
422 | - @AutoLog(value = "PDA出库-呼叫料盒") | 422 | + @AutoLog(value = "PDA出库-呼叫料盒", operateType = 4) |
423 | @ApiOperation(value = "PDA出库-呼叫料盒", notes = "创建空的分拣出库任务,并返回任务id") | 423 | @ApiOperation(value = "PDA出库-呼叫料盒", notes = "创建空的分拣出库任务,并返回任务id") |
424 | @PostMapping("/callbox") | 424 | @PostMapping("/callbox") |
425 | - @ResponseBody | ||
426 | @ApiLogger(apiName = "PDA出库-呼叫料盒", from = "PDA") | 425 | @ApiLogger(apiName = "PDA出库-呼叫料盒", from = "PDA") |
427 | public Result<TaskHeader> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { | 426 | public Result<TaskHeader> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { |
428 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 427 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
@@ -432,10 +431,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -432,10 +431,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
432 | return result; | 431 | return result; |
433 | } | 432 | } |
434 | 433 | ||
435 | - @AutoLog(value = "PDA出库-批量呼叫料盒") | 434 | + @AutoLog(value = "PDA出库-批量呼叫料盒",operateType = 4) |
436 | @ApiOperation(value = "PDA出库-批量呼叫料盒", notes = "创建空的分拣出库任务,并返回任务id") | 435 | @ApiOperation(value = "PDA出库-批量呼叫料盒", notes = "创建空的分拣出库任务,并返回任务id") |
437 | @PostMapping("/batchCallBox") | 436 | @PostMapping("/batchCallBox") |
438 | - @ResponseBody | ||
439 | @ApiLogger(apiName = "PDA出库-呼叫料盒", from = "PDA") | 437 | @ApiLogger(apiName = "PDA出库-呼叫料盒", from = "PDA") |
440 | public Result<TaskHeader> batchCallBox(@RequestBody List<CallBoxBean> callBoxBeanList, HttpServletRequest req) { | 438 | public Result<TaskHeader> batchCallBox(@RequestBody List<CallBoxBean> callBoxBeanList, HttpServletRequest req) { |
441 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 439 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
@@ -448,10 +446,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -448,10 +446,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
448 | return result; | 446 | return result; |
449 | } | 447 | } |
450 | 448 | ||
451 | - @AutoLog(value = "快速出库") | 449 | + @AutoLog(value = "快速出库",operateType = 4) |
452 | @ApiOperation(value = "快速出库", notes = "快速出库") | 450 | @ApiOperation(value = "快速出库", notes = "快速出库") |
453 | @PostMapping("/autoShipment") | 451 | @PostMapping("/autoShipment") |
454 | - @ResponseBody | ||
455 | public Result<TaskHeader> autoShipment(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { | 452 | public Result<TaskHeader> autoShipment(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { |
456 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 453 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
457 | String shipmentCode = shipmentHeader.getCode(); | 454 | String shipmentCode = shipmentHeader.getCode(); |
@@ -459,10 +456,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -459,10 +456,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
459 | return result; | 456 | return result; |
460 | } | 457 | } |
461 | 458 | ||
462 | - @AutoLog(value = "自动预配盘出库") | 459 | + @AutoLog(value = "自动预配盘出库",operateType = 4) |
463 | @ApiOperation(value = "自动预配盘出库", notes = "自动预配盘出库") | 460 | @ApiOperation(value = "自动预配盘出库", notes = "自动预配盘出库") |
464 | @PostMapping("/autoShipmentAdvice") | 461 | @PostMapping("/autoShipmentAdvice") |
465 | - @ResponseBody | ||
466 | public Result<TaskHeader> autoShipmentAdvice(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { | 462 | public Result<TaskHeader> autoShipmentAdvice(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { |
467 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 463 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
468 | String shipmentCode = shipmentHeader.getCode(); | 464 | String shipmentCode = shipmentHeader.getCode(); |
@@ -470,10 +466,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -470,10 +466,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
470 | return result; | 466 | return result; |
471 | } | 467 | } |
472 | 468 | ||
473 | - @AutoLog(value = "平库路径指引") | 469 | + @AutoLog(value = "平库路径指引", operateType = 4) |
474 | @ApiOperation(value = "平库路径指引", notes = "平库路径指引") | 470 | @ApiOperation(value = "平库路径指引", notes = "平库路径指引") |
475 | @PostMapping("/autoFlatShipmentAdvice") | 471 | @PostMapping("/autoFlatShipmentAdvice") |
476 | - @ResponseBody | ||
477 | public Result<TaskHeader> autoFlatShipmentAdvice(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { | 472 | public Result<TaskHeader> autoFlatShipmentAdvice(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { |
478 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 473 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
479 | String shipmentCode = shipmentHeader.getCode(); | 474 | String shipmentCode = shipmentHeader.getCode(); |
@@ -481,10 +476,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -481,10 +476,9 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
481 | return result; | 476 | return result; |
482 | } | 477 | } |
483 | 478 | ||
484 | - @AutoLog(value = "备货") | 479 | + @AutoLog(value = "备货",operateType = 4) |
485 | @ApiOperation(value = "备货", notes = "备货") | 480 | @ApiOperation(value = "备货", notes = "备货") |
486 | @PostMapping("/stockUp") | 481 | @PostMapping("/stockUp") |
487 | - @ResponseBody | ||
488 | public Result stockUp(@RequestBody List<ShipmentHeader> shipmentHeaderList, HttpServletRequest req) { | 482 | public Result stockUp(@RequestBody List<ShipmentHeader> shipmentHeaderList, HttpServletRequest req) { |
489 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 483 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
490 | Result result = huahengMultiHandlerService.stockUp(shipmentHeaderList, warehouseCode); | 484 | Result result = huahengMultiHandlerService.stockUp(shipmentHeaderList, warehouseCode); |
@@ -498,7 +492,6 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -498,7 +492,6 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
498 | */ | 492 | */ |
499 | @ApiOperation(value = "获取出库单物料库存信息", notes = "获取出库单物料库存信息") | 493 | @ApiOperation(value = "获取出库单物料库存信息", notes = "获取出库单物料库存信息") |
500 | @PostMapping(value = "/getInventoryByShipmentDetail") | 494 | @PostMapping(value = "/getInventoryByShipmentDetail") |
501 | - @ResponseBody | ||
502 | public Result<?> getInventoryByShipmentDetail(@RequestBody ShipmentInventory shipmentInventory, HttpServletRequest req) { | 495 | public Result<?> getInventoryByShipmentDetail(@RequestBody ShipmentInventory shipmentInventory, HttpServletRequest req) { |
503 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 496 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
504 | ShipmentHeader shipmentHeader = shipmentHeaderService.getById(shipmentInventory.getShipmentId()); | 497 | ShipmentHeader shipmentHeader = shipmentHeaderService.getById(shipmentInventory.getShipmentId()); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/stocktaking/cycleCountDetail/controller/CycleCountDetailController.java
@@ -189,7 +189,7 @@ public class CycleCountDetailController extends HuahengBaseController { | @@ -189,7 +189,7 @@ public class CycleCountDetailController extends HuahengBaseController { | ||
189 | /** | 189 | /** |
190 | * 生成单条盘点任务 | 190 | * 生成单条盘点任务 |
191 | */ | 191 | */ |
192 | - @AutoLog(value = "生成单条盘点任务") | 192 | + @AutoLog(value = "生成单条盘点任务", operateType = 2) |
193 | @ApiOperation(value = "生成单条盘点任务", notes = "生成单条盘点任务") | 193 | @ApiOperation(value = "生成单条盘点任务", notes = "生成单条盘点任务") |
194 | @PostMapping(value = "/createCycleCoutTaskByDetailId") | 194 | @PostMapping(value = "/createCycleCoutTaskByDetailId") |
195 | public Result createCycleCoutTaskByDetailId(@RequestParam(name = "cycleId") Integer cycleId, @RequestParam(name = "toPort") String toPort, | 195 | public Result createCycleCoutTaskByDetailId(@RequestParam(name = "cycleId") Integer cycleId, @RequestParam(name = "toPort") String toPort, |
@@ -207,7 +207,6 @@ public class CycleCountDetailController extends HuahengBaseController { | @@ -207,7 +207,6 @@ public class CycleCountDetailController extends HuahengBaseController { | ||
207 | */ | 207 | */ |
208 | @ApiOperation(value = "盘点-选择分拣口", notes = "盘点-选择分拣口") | 208 | @ApiOperation(value = "盘点-选择分拣口", notes = "盘点-选择分拣口") |
209 | @PostMapping("/inventoryPort") | 209 | @PostMapping("/inventoryPort") |
210 | - @ResponseBody | ||
211 | public Result inventoryPort(@RequestBody CycleCountDetail cycleCountDetail, HttpServletRequest req) { | 210 | public Result inventoryPort(@RequestBody CycleCountDetail cycleCountDetail, HttpServletRequest req) { |
212 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 211 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
213 | String fromLocationCode = cycleCountDetail.getLocationCode(); | 212 | String fromLocationCode = cycleCountDetail.getLocationCode(); |
@@ -238,7 +237,7 @@ public class CycleCountDetailController extends HuahengBaseController { | @@ -238,7 +237,7 @@ public class CycleCountDetailController extends HuahengBaseController { | ||
238 | /** | 237 | /** |
239 | * 添加盘点 | 238 | * 添加盘点 |
240 | */ | 239 | */ |
241 | - @AutoLog(value = "盘点明细新增") | 240 | + @AutoLog(value = "盘点明细新增", operateType = 2) |
242 | @ApiOperation(value = "盘点明细新增-根据选取的库存新增", notes = "盘点明细新增-根据选取的库存新增") | 241 | @ApiOperation(value = "盘点明细新增-根据选取的库存新增", notes = "盘点明细新增-根据选取的库存新增") |
243 | @PostMapping(value = "/createCycleCountDetailByInventory") | 242 | @PostMapping(value = "/createCycleCountDetailByInventory") |
244 | public Result<?> createCycleCountDetailByInventory(@RequestBody CycleCountDetailByInventoryDto cycleCountDetailByInventoryDto) { | 243 | public Result<?> createCycleCountDetailByInventory(@RequestBody CycleCountDetailByInventoryDto cycleCountDetailByInventoryDto) { |
@@ -268,8 +267,9 @@ public class CycleCountDetailController extends HuahengBaseController { | @@ -268,8 +267,9 @@ public class CycleCountDetailController extends HuahengBaseController { | ||
268 | * 实盘登记 | 267 | * 实盘登记 |
269 | * @return | 268 | * @return |
270 | */ | 269 | */ |
270 | + @AutoLog(value = "实盘登记", operateType = 3) | ||
271 | + @ApiOperation(value = "实盘登记", notes = "盘点明细新增-实盘登记") | ||
271 | @PostMapping("/confirmGapQty") | 272 | @PostMapping("/confirmGapQty") |
272 | - @ResponseBody | ||
273 | public Result confirmGapQty(@RequestBody Map<String, String> map) { | 273 | public Result confirmGapQty(@RequestBody Map<String, String> map) { |
274 | String id = map.get("id"); | 274 | String id = map.get("id"); |
275 | String countedQty = map.get("countedQty"); | 275 | String countedQty = map.get("countedQty"); |
@@ -281,8 +281,9 @@ public class CycleCountDetailController extends HuahengBaseController { | @@ -281,8 +281,9 @@ public class CycleCountDetailController extends HuahengBaseController { | ||
281 | * 实盘登记 | 281 | * 实盘登记 |
282 | * @return | 282 | * @return |
283 | */ | 283 | */ |
284 | + @AutoLog(value = "实盘登记", operateType = 3) | ||
285 | + @ApiOperation(value = "实盘登记", notes = "盘点明细新增-实盘登记") | ||
284 | @PostMapping("/batchConfirmGapQty") | 286 | @PostMapping("/batchConfirmGapQty") |
285 | - @ResponseBody | ||
286 | public Result batchConfirmGapQty(@RequestBody List<CycleCountDetailChild> cycleCountDetailChildList) { | 287 | public Result batchConfirmGapQty(@RequestBody List<CycleCountDetailChild> cycleCountDetailChildList) { |
287 | if (CollectionUtils.isEmpty(cycleCountDetailChildList)) { | 288 | if (CollectionUtils.isEmpty(cycleCountDetailChildList)) { |
288 | return Result.error("批量实盘登记失败参数为空"); | 289 | return Result.error("批量实盘登记失败参数为空"); |
@@ -327,7 +328,6 @@ public class CycleCountDetailController extends HuahengBaseController { | @@ -327,7 +328,6 @@ public class CycleCountDetailController extends HuahengBaseController { | ||
327 | } | 328 | } |
328 | 329 | ||
329 | @PostMapping("/listCycleDetailChildByDetailId") | 330 | @PostMapping("/listCycleDetailChildByDetailId") |
330 | - @ResponseBody | ||
331 | public Result listCycleDetailChildByDetailId(@RequestBody CycleCountDetail cycleCountDetail) { | 331 | public Result listCycleDetailChildByDetailId(@RequestBody CycleCountDetail cycleCountDetail) { |
332 | LambdaQueryWrapper<CycleCountDetailChild> cycleCountDetailChildLambdaQueryWrapper = Wrappers.lambdaQuery(); | 332 | LambdaQueryWrapper<CycleCountDetailChild> cycleCountDetailChildLambdaQueryWrapper = Wrappers.lambdaQuery(); |
333 | cycleCountDetailChildLambdaQueryWrapper.eq(CycleCountDetailChild::getCycleCountDetailid, cycleCountDetail.getId()); | 333 | cycleCountDetailChildLambdaQueryWrapper.eq(CycleCountDetailChild::getCycleCountDetailid, cycleCountDetail.getId()); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/agvTask/controller/AgvTaskController.java
@@ -153,7 +153,7 @@ public class AgvTaskController extends JeecgController<AgvTask, IAgvTaskService> | @@ -153,7 +153,7 @@ public class AgvTaskController extends JeecgController<AgvTask, IAgvTaskService> | ||
153 | /** | 153 | /** |
154 | * 执行任务 | 154 | * 执行任务 |
155 | */ | 155 | */ |
156 | - @AutoLog(value = "AGV任务-执行任务") | 156 | + @AutoLog(value = "AGV任务-执行任务", operateType = 3) |
157 | @ApiOperation(value = "AGV任务-执行任务", notes = "AGV任务-执行任务") | 157 | @ApiOperation(value = "AGV任务-执行任务", notes = "AGV任务-执行任务") |
158 | @PostMapping("/execute") | 158 | @PostMapping("/execute") |
159 | @RequiresPermissions("agvTask:executeTask") | 159 | @RequiresPermissions("agvTask:executeTask") |
@@ -165,7 +165,7 @@ public class AgvTaskController extends JeecgController<AgvTask, IAgvTaskService> | @@ -165,7 +165,7 @@ public class AgvTaskController extends JeecgController<AgvTask, IAgvTaskService> | ||
165 | /** | 165 | /** |
166 | * 完成任务 | 166 | * 完成任务 |
167 | */ | 167 | */ |
168 | - @AutoLog(value = "AGV任务-完成任务") | 168 | + @AutoLog(value = "AGV任务-完成任务", operateType = 3) |
169 | @ApiOperation(value = "AGV任务-完成任务", notes = "AGV任务-完成任务") | 169 | @ApiOperation(value = "AGV任务-完成任务", notes = "AGV任务-完成任务") |
170 | @PostMapping("/complete") | 170 | @PostMapping("/complete") |
171 | @RequiresPermissions("agvTask:completeTask") | 171 | @RequiresPermissions("agvTask:completeTask") |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/controller/TaskHeaderController.java
@@ -355,7 +355,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -355,7 +355,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
355 | /** | 355 | /** |
356 | * 完成任务 | 356 | * 完成任务 |
357 | */ | 357 | */ |
358 | - @AutoLog(value = "任务表-完成任务") | 358 | + @AutoLog(value = "任务表-完成任务", operateType = 3) |
359 | @ApiOperation(value = "任务表-完成任务", notes = "任务表-完成任务") | 359 | @ApiOperation(value = "任务表-完成任务", notes = "任务表-完成任务") |
360 | @PostMapping("/completeTaskByWMS") | 360 | @PostMapping("/completeTaskByWMS") |
361 | @RequiresPermissions("taskHeader:completeTask") | 361 | @RequiresPermissions("taskHeader:completeTask") |
@@ -376,10 +376,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -376,10 +376,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
376 | /** | 376 | /** |
377 | * 取消任务 | 377 | * 取消任务 |
378 | */ | 378 | */ |
379 | - @AutoLog(value = "任务表-取消任务") | 379 | + @AutoLog(value = "任务表-取消任务", operateType = 1) |
380 | @ApiOperation(value = "任务表-取消任务", notes = "任务表-取消任务") | 380 | @ApiOperation(value = "任务表-取消任务", notes = "任务表-取消任务") |
381 | @PostMapping("/cancelTask") | 381 | @PostMapping("/cancelTask") |
382 | - @ResponseBody | ||
383 | @RequiresPermissions("taskHeader:cancelTask") | 382 | @RequiresPermissions("taskHeader:cancelTask") |
384 | public Result cancelTask(@RequestParam(name = "ids", required = true) String ids) { | 383 | public Result cancelTask(@RequestParam(name = "ids", required = true) String ids) { |
385 | if (StringUtils.isEmpty(ids)) { | 384 | if (StringUtils.isEmpty(ids)) { |
@@ -408,10 +407,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -408,10 +407,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
408 | /** | 407 | /** |
409 | * 任务切换 | 408 | * 任务切换 |
410 | */ | 409 | */ |
411 | - @AutoLog(value = "任务表-任务切换") | 410 | + @AutoLog(value = "任务表-任务切换", operateType = 3) |
412 | @ApiOperation(value = "任务表-任务切换", notes = "任务表-任务切换") | 411 | @ApiOperation(value = "任务表-任务切换", notes = "任务表-任务切换") |
413 | @PostMapping("/switchTask") | 412 | @PostMapping("/switchTask") |
414 | - @ResponseBody | ||
415 | @RequiresPermissions("taskHeader:switchTask") | 413 | @RequiresPermissions("taskHeader:switchTask") |
416 | public Result switchTask(@RequestParam(name = "ids", required = true) String ids) { | 414 | public Result switchTask(@RequestParam(name = "ids", required = true) String ids) { |
417 | if (StringUtils.isEmpty(ids)) { | 415 | if (StringUtils.isEmpty(ids)) { |
@@ -433,7 +431,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -433,7 +431,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
433 | /** | 431 | /** |
434 | * 执行任务 | 432 | * 执行任务 |
435 | */ | 433 | */ |
436 | - @AutoLog(value = "任务表-执行任务") | 434 | + @AutoLog(value = "任务表-执行任务", operateType = 3) |
437 | @ApiOperation(value = "任务表-执行任务", notes = "任务表-执行任务") | 435 | @ApiOperation(value = "任务表-执行任务", notes = "任务表-执行任务") |
438 | @PostMapping("/execute") | 436 | @PostMapping("/execute") |
439 | @RequiresPermissions("taskHeader:executeTask") | 437 | @RequiresPermissions("taskHeader:executeTask") |
@@ -448,7 +446,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -448,7 +446,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
448 | /** | 446 | /** |
449 | * 创建空托入库任务 | 447 | * 创建空托入库任务 |
450 | */ | 448 | */ |
451 | - @AutoLog(value = "任务表-创建空托入库任务") | 449 | + @AutoLog(value = "任务表-创建空托入库任务", operateType = 2) |
452 | @ApiOperation(value = "任务表-创建空托入库任务", notes = "任务表-创建空托入库任务") | 450 | @ApiOperation(value = "任务表-创建空托入库任务", notes = "任务表-创建空托入库任务") |
453 | @PostMapping("/createEmptyIn") | 451 | @PostMapping("/createEmptyIn") |
454 | @RequiresPermissions("taskHeader:emptyIn") | 452 | @RequiresPermissions("taskHeader:emptyIn") |
@@ -470,7 +468,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -470,7 +468,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
470 | /** | 468 | /** |
471 | * 创建空托出库任务 | 469 | * 创建空托出库任务 |
472 | */ | 470 | */ |
473 | - @AutoLog(value = "任务表-创建空托出库任务") | 471 | + @AutoLog(value = "任务表-创建空托出库任务", operateType = 2) |
474 | @ApiOperation(value = "任务表-创建空托出库任务", notes = "任务表-创建空托出库任务") | 472 | @ApiOperation(value = "任务表-创建空托出库任务", notes = "任务表-创建空托出库任务") |
475 | @RequiresPermissions("taskHeader:emptyOut") | 473 | @RequiresPermissions("taskHeader:emptyOut") |
476 | @PostMapping("/createEmptyOut") | 474 | @PostMapping("/createEmptyOut") |
@@ -491,7 +489,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -491,7 +489,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
491 | /** | 489 | /** |
492 | * 创建空托出库任务 | 490 | * 创建空托出库任务 |
493 | */ | 491 | */ |
494 | - @AutoLog(value = "任务表-创建空托出库任务") | 492 | + @AutoLog(value = "任务表-创建空托出库任务", operateType = 1) |
495 | @ApiOperation(value = "任务表-创建空托出库任务", notes = "任务表-创建空托出库任务") | 493 | @ApiOperation(value = "任务表-创建空托出库任务", notes = "任务表-创建空托出库任务") |
496 | @RequiresPermissions("taskHeader:emptyOut") | 494 | @RequiresPermissions("taskHeader:emptyOut") |
497 | @PostMapping("/batchCreateEmptyOut") | 495 | @PostMapping("/batchCreateEmptyOut") |
@@ -513,7 +511,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -513,7 +511,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
513 | /** | 511 | /** |
514 | * 创建移库任务 | 512 | * 创建移库任务 |
515 | */ | 513 | */ |
516 | - @AutoLog(value = "任务表-创建移库任务") | 514 | + @AutoLog(value = "任务表-创建移库任务",operateType = 2) |
517 | @ApiOperation(value = "任务表-创建移库任务", notes = "任务表-创建移库任务") | 515 | @ApiOperation(value = "任务表-创建移库任务", notes = "任务表-创建移库任务") |
518 | @RequiresPermissions("taskHeader:transfer") | 516 | @RequiresPermissions("taskHeader:transfer") |
519 | @PostMapping("/createTransferTask") | 517 | @PostMapping("/createTransferTask") |
@@ -534,7 +532,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -534,7 +532,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
534 | /** | 532 | /** |
535 | * 创建出库查看任务 | 533 | * 创建出库查看任务 |
536 | */ | 534 | */ |
537 | - @AutoLog(value = "任务表-创建出库查看任务") | 535 | + @AutoLog(value = "任务表-创建出库查看任务", operateType = 2) |
538 | @ApiOperation(value = "任务表-创建出库查看任务", notes = "任务表-创建出库查看任务") | 536 | @ApiOperation(value = "任务表-创建出库查看任务", notes = "任务表-创建出库查看任务") |
539 | @PostMapping("/batchCreateCheckOut") | 537 | @PostMapping("/batchCreateCheckOut") |
540 | @RequiresPermissions("taskHeader:checkOut") | 538 | @RequiresPermissions("taskHeader:checkOut") |
@@ -558,7 +556,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -558,7 +556,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
558 | /** | 556 | /** |
559 | * 创建出库查看任务 | 557 | * 创建出库查看任务 |
560 | */ | 558 | */ |
561 | - @AutoLog(value = "任务表-创建出库查看任务") | 559 | + @AutoLog(value = "任务表-创建出库查看任务", operateType = 1) |
562 | @ApiOperation(value = "任务表-创建出库查看任务", notes = "任务表-创建出库查看任务") | 560 | @ApiOperation(value = "任务表-创建出库查看任务", notes = "任务表-创建出库查看任务") |
563 | @PostMapping("/createCheckOutTask") | 561 | @PostMapping("/createCheckOutTask") |
564 | @RequiresPermissions("taskHeader:checkOut") | 562 | @RequiresPermissions("taskHeader:checkOut") |
@@ -579,7 +577,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -579,7 +577,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
579 | /** | 577 | /** |
580 | * 创建跨站任务 | 578 | * 创建跨站任务 |
581 | */ | 579 | */ |
582 | - @AutoLog(value = "任务表-创建跨站任务") | 580 | + @AutoLog(value = "任务表-创建跨站任务", operateType = 1) |
583 | @ApiOperation(value = "任务表-创建跨站任务", notes = "任务表-创建跨站任务") | 581 | @ApiOperation(value = "任务表-创建跨站任务", notes = "任务表-创建跨站任务") |
584 | @RequiresPermissions("taskHeader:overStation") | 582 | @RequiresPermissions("taskHeader:overStation") |
585 | @PostMapping("/createOverStationTask") | 583 | @PostMapping("/createOverStationTask") |
@@ -601,7 +599,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -601,7 +599,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
601 | /** | 599 | /** |
602 | * 创建空托盘组入库 | 600 | * 创建空托盘组入库 |
603 | */ | 601 | */ |
604 | - @AutoLog(value = "任务表-创建空托盘组入库") | 602 | + @AutoLog(value = "任务表-创建空托盘组入库", operateType = 1) |
605 | @ApiOperation(value = "任务表-创建空托盘组入库", notes = "任务表-创建空托盘组入库") | 603 | @ApiOperation(value = "任务表-创建空托盘组入库", notes = "任务表-创建空托盘组入库") |
606 | @PostMapping("/createManyEmptyIn") | 604 | @PostMapping("/createManyEmptyIn") |
607 | @RequiresPermissions("taskHeader:manyEmptyIn") | 605 | @RequiresPermissions("taskHeader:manyEmptyIn") |
@@ -622,7 +620,7 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -622,7 +620,7 @@ public class TaskHeaderController extends HuahengBaseController { | ||
622 | /** | 620 | /** |
623 | * 创建空托盘组出库 | 621 | * 创建空托盘组出库 |
624 | */ | 622 | */ |
625 | - @AutoLog(value = "任务表-创建空托盘组出库") | 623 | + @AutoLog(value = "任务表-创建空托盘组出库", operateType = 1) |
626 | @ApiOperation(value = "任务表-创建空托盘组出库", notes = "任务表-创建空托盘组出库") | 624 | @ApiOperation(value = "任务表-创建空托盘组出库", notes = "任务表-创建空托盘组出库") |
627 | @RequiresPermissions("taskHeader:manyEmptyOut") | 625 | @RequiresPermissions("taskHeader:manyEmptyOut") |
628 | @PostMapping("/createManyEmptyOut") | 626 | @PostMapping("/createManyEmptyOut") |
@@ -646,7 +644,6 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -646,7 +644,6 @@ public class TaskHeaderController extends HuahengBaseController { | ||
646 | */ | 644 | */ |
647 | @ApiOperation(value = "任务表-选择整出口", notes = "任务表-选择整出口") | 645 | @ApiOperation(value = "任务表-选择整出口", notes = "任务表-选择整出口") |
648 | @PostMapping("/selectOutPort") | 646 | @PostMapping("/selectOutPort") |
649 | - @ResponseBody | ||
650 | public Result selectOutPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 647 | public Result selectOutPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
651 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 648 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
652 | String containerCode = taskHeader.getContainerCode(); | 649 | String containerCode = taskHeader.getContainerCode(); |
@@ -688,7 +685,6 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -688,7 +685,6 @@ public class TaskHeaderController extends HuahengBaseController { | ||
688 | */ | 685 | */ |
689 | @ApiOperation(value = "任务表-选择整出口", notes = "任务表-选择整出口") | 686 | @ApiOperation(value = "任务表-选择整出口", notes = "任务表-选择整出口") |
690 | @PostMapping("/selectEmptyOutPort") | 687 | @PostMapping("/selectEmptyOutPort") |
691 | - @ResponseBody | ||
692 | public Result selectEmptyOutPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 688 | public Result selectEmptyOutPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
693 | String zoneCode = taskHeader.getZoneCode(); | 689 | String zoneCode = taskHeader.getZoneCode(); |
694 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 690 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
@@ -713,7 +709,6 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -713,7 +709,6 @@ public class TaskHeaderController extends HuahengBaseController { | ||
713 | */ | 709 | */ |
714 | @ApiOperation(value = "任务表-选择空托盘组出库整出口", notes = "任务表-选择空托盘组出库整出口") | 710 | @ApiOperation(value = "任务表-选择空托盘组出库整出口", notes = "任务表-选择空托盘组出库整出口") |
715 | @PostMapping("/selectManyEmptyOutPort") | 711 | @PostMapping("/selectManyEmptyOutPort") |
716 | - @ResponseBody | ||
717 | public Result selectManyEmptyOutPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 712 | public Result selectManyEmptyOutPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
718 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 713 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
719 | String containerCode = taskHeader.getContainerCode(); | 714 | String containerCode = taskHeader.getContainerCode(); |
@@ -755,7 +750,6 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -755,7 +750,6 @@ public class TaskHeaderController extends HuahengBaseController { | ||
755 | */ | 750 | */ |
756 | @ApiOperation(value = "任务表-选择分拣口", notes = "任务表-选择分拣口") | 751 | @ApiOperation(value = "任务表-选择分拣口", notes = "任务表-选择分拣口") |
757 | @PostMapping("/selectPickPort") | 752 | @PostMapping("/selectPickPort") |
758 | - @ResponseBody | ||
759 | public Result selectPickPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 753 | public Result selectPickPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
760 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 754 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
761 | String containerCode = taskHeader.getContainerCode(); | 755 | String containerCode = taskHeader.getContainerCode(); |
@@ -797,7 +791,6 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -797,7 +791,6 @@ public class TaskHeaderController extends HuahengBaseController { | ||
797 | */ | 791 | */ |
798 | @ApiOperation(value = "任务表-选择站台", notes = "任务表-选择站台") | 792 | @ApiOperation(value = "任务表-选择站台", notes = "任务表-选择站台") |
799 | @PostMapping("/selectPort") | 793 | @PostMapping("/selectPort") |
800 | - @ResponseBody | ||
801 | public Result selectPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 794 | public Result selectPort(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
802 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 795 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
803 | String containerCode = taskHeader.getContainerCode(); | 796 | String containerCode = taskHeader.getContainerCode(); |
@@ -821,10 +814,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -821,10 +814,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
821 | * 修复空出的数据 | 814 | * 修复空出的数据 |
822 | * @return | 815 | * @return |
823 | */ | 816 | */ |
824 | - @AutoLog(value = "修复空出的数据") | 817 | + @AutoLog(value = "修复空出的数据", operateType = 3) |
825 | @PostMapping("/handleEmptyOut") | 818 | @PostMapping("/handleEmptyOut") |
826 | @ApiOperation("修复空出的数据") | 819 | @ApiOperation("修复空出的数据") |
827 | - @ResponseBody | ||
828 | @ApiLogger(apiName = "修复空出的数据", from = "WMS") | 820 | @ApiLogger(apiName = "修复空出的数据", from = "WMS") |
829 | public Result handleEmptyOut(@RequestParam(name = "id", required = true) String id) { | 821 | public Result handleEmptyOut(@RequestParam(name = "id", required = true) String id) { |
830 | Result result = handleMultiProcess("handleEmptyOut", new MultiProcessListener() { | 822 | Result result = handleMultiProcess("handleEmptyOut", new MultiProcessListener() { |
@@ -841,10 +833,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -841,10 +833,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
841 | * 修复重入的数据 | 833 | * 修复重入的数据 |
842 | * @return | 834 | * @return |
843 | */ | 835 | */ |
844 | - @AutoLog(value = "修复重入的数据") | 836 | + @AutoLog(value = "修复重入的数据", operateType = 3) |
845 | @PostMapping("/handleDoubleIn") | 837 | @PostMapping("/handleDoubleIn") |
846 | @ApiOperation("修复重入的数据") | 838 | @ApiOperation("修复重入的数据") |
847 | - @ResponseBody | ||
848 | @ApiLogger(apiName = "修复重入的数据", from = "WMS") | 839 | @ApiLogger(apiName = "修复重入的数据", from = "WMS") |
849 | public Result handleDoubleIn(@RequestParam(name = "id", required = true) String id) { | 840 | public Result handleDoubleIn(@RequestParam(name = "id", required = true) String id) { |
850 | Result result = handleMultiProcess("handleDoubleIn", new MultiProcessListener() { | 841 | Result result = handleMultiProcess("handleDoubleIn", new MultiProcessListener() { |
@@ -861,10 +852,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -861,10 +852,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
861 | * 修复取货错的数据 | 852 | * 修复取货错的数据 |
862 | * @return | 853 | * @return |
863 | */ | 854 | */ |
864 | - @AutoLog(value = "修复取货错的数据") | 855 | + @AutoLog(value = "修复取货错的数据", operateType = 3) |
865 | @PostMapping("handlePickupError") | 856 | @PostMapping("handlePickupError") |
866 | @ApiOperation("修复取货错的数据") | 857 | @ApiOperation("修复取货错的数据") |
867 | - @ResponseBody | ||
868 | @ApiLogger(apiName = "修复取货错的数据", from = "WMS") | 858 | @ApiLogger(apiName = "修复取货错的数据", from = "WMS") |
869 | public Result handlePickupError(@RequestParam(name = "id", required = true) String id) { | 859 | public Result handlePickupError(@RequestParam(name = "id", required = true) String id) { |
870 | Result result = handleMultiProcess("handlePickupError", new MultiProcessListener() { | 860 | Result result = handleMultiProcess("handlePickupError", new MultiProcessListener() { |
@@ -881,10 +871,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -881,10 +871,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
881 | * 快速入库 | 871 | * 快速入库 |
882 | * @return | 872 | * @return |
883 | */ | 873 | */ |
884 | - @AutoLog(value = "快速入库") | 874 | + @AutoLog(value = "快速入库", operateType = 2) |
885 | @PostMapping("quickReceipt") | 875 | @PostMapping("quickReceipt") |
886 | @ApiOperation("快速入库") | 876 | @ApiOperation("快速入库") |
887 | - @ResponseBody | ||
888 | public Result quickReceipt(@RequestBody QucikReceiptEntity qucikReceiptEntity, HttpServletRequest req) { | 877 | public Result quickReceipt(@RequestBody QucikReceiptEntity qucikReceiptEntity, HttpServletRequest req) { |
889 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 878 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
890 | qucikReceiptEntity.setWarehouseCode(warehouseCode); | 879 | qucikReceiptEntity.setWarehouseCode(warehouseCode); |
@@ -902,10 +891,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -902,10 +891,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
902 | * 快速出库 | 891 | * 快速出库 |
903 | * @return | 892 | * @return |
904 | */ | 893 | */ |
905 | - @AutoLog(value = "快速出库") | 894 | + @AutoLog(value = "快速出库", operateType = 3) |
906 | @PostMapping("quickShipment") | 895 | @PostMapping("quickShipment") |
907 | @ApiOperation("快速出库") | 896 | @ApiOperation("快速出库") |
908 | - @ResponseBody | ||
909 | public Result quickShipment(@RequestBody QucikReceiptEntity qucikReceiptEntity, HttpServletRequest req) { | 897 | public Result quickShipment(@RequestBody QucikReceiptEntity qucikReceiptEntity, HttpServletRequest req) { |
910 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | 898 | String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); |
911 | qucikReceiptEntity.setWarehouseCode(warehouseCode); | 899 | qucikReceiptEntity.setWarehouseCode(warehouseCode); |
@@ -923,10 +911,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -923,10 +911,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
923 | * 质检登记 | 911 | * 质检登记 |
924 | * @return | 912 | * @return |
925 | */ | 913 | */ |
926 | - @AutoLog(value = "质检登记") | 914 | + @AutoLog(value = "质检登记", operateType = 3) |
927 | @PostMapping("qualityRegister") | 915 | @PostMapping("qualityRegister") |
928 | @ApiOperation("质检登记") | 916 | @ApiOperation("质检登记") |
929 | - @ResponseBody | ||
930 | public Result qualityRegister(@RequestBody TaskDetail taskDetail, HttpServletRequest req) { | 917 | public Result qualityRegister(@RequestBody TaskDetail taskDetail, HttpServletRequest req) { |
931 | int id = taskDetail.getId(); | 918 | int id = taskDetail.getId(); |
932 | BigDecimal qualityfiedQty = taskDetail.getQualityfiedQty(); | 919 | BigDecimal qualityfiedQty = taskDetail.getQualityfiedQty(); |
@@ -946,10 +933,9 @@ public class TaskHeaderController extends HuahengBaseController { | @@ -946,10 +933,9 @@ public class TaskHeaderController extends HuahengBaseController { | ||
946 | * 修改优先级 | 933 | * 修改优先级 |
947 | * @return | 934 | * @return |
948 | */ | 935 | */ |
949 | - @AutoLog(value = "修改优先级") | 936 | + @AutoLog(value = "修改优先级", operateType = 3) |
950 | @PostMapping("updatePriority") | 937 | @PostMapping("updatePriority") |
951 | @ApiOperation("修改优先级") | 938 | @ApiOperation("修改优先级") |
952 | - @ResponseBody | ||
953 | public Result updatePriority(@RequestBody @RequestParam(name = "id") String id, @RequestParam(name = "priority") String priority, HttpServletRequest req) { | 939 | public Result updatePriority(@RequestBody @RequestParam(name = "id") String id, @RequestParam(name = "priority") String priority, HttpServletRequest req) { |
954 | Result result = handleMultiProcess("updatePriority", new MultiProcessListener() { | 940 | Result result = handleMultiProcess("updatePriority", new MultiProcessListener() { |
955 | @Override | 941 | @Override |