|
|
@ -48,109 +48,109 @@ import java.util.List; |
|
|
|
@RequestMapping("v1/wmsinventorysurplus") |
|
|
|
public class WmsInventoryProfitinRest { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WmsInventoryProfitinService wmsInventoryProfitinService; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<WmsInventoryProfitinVo>> listPage(@RequestBody PagerQuery<WmsInventoryProfitinQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryProfitinVo> pv = wmsInventoryProfitinService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新增或修改") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody WmsInventoryProfitinDto dto){ |
|
|
|
return wmsInventoryProfitinService.saveOrUpdateDto(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("删除盘盈入库") |
|
|
|
@Autowired |
|
|
|
private WmsInventoryProfitinService wmsInventoryProfitinService; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<WmsInventoryProfitinVo>> listPage(@RequestBody PagerQuery<WmsInventoryProfitinQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryProfitinVo> pv = wmsInventoryProfitinService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新增或修改") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody WmsInventoryProfitinDto dto) { |
|
|
|
return wmsInventoryProfitinService.saveOrUpdateDto(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("删除盘盈入库") |
|
|
|
@DeleteMapping("/delBySids") |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids){ |
|
|
|
return wmsInventoryProfitinService.delAll(sids); |
|
|
|
} |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids) { |
|
|
|
return wmsInventoryProfitinService.delAll(sids); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("编辑回显盘盈入库") |
|
|
|
@ApiOperation("编辑回显盘盈入库") |
|
|
|
@GetMapping("/fetchDetailsBySid/{sid}") |
|
|
|
public ResultBean<WmsInventoryProfitinDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
WmsInventoryProfitinDetailsVo vo = wmsInventoryProfitinService.fetchDetailsVoBySid(sid); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据部门sid获取盘盈盘点单号") |
|
|
|
@PostMapping("/getSourceBillNoBySid") |
|
|
|
public ResultBean<List<InventoryBillVo>> getSourceBillNoBySid(@RequestParam("deptSid") String deptSid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<InventoryBillVo> voList = wmsInventoryProfitinService.getSourceBillNoBySid(deptSid); |
|
|
|
return rb.success().setData(voList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据盘点单sid获取盘盈商品列表") |
|
|
|
@GetMapping("/sourceBillBySid/{sid}") |
|
|
|
public ResultBean<List<WmsInventoryProfitinDetailDto>> sourceBillBySid(@PathVariable("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<WmsInventoryProfitinDetailDto> voList = wmsInventoryProfitinService.sourceBillBySid(sid); |
|
|
|
return rb.success().setData(voList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("提交") |
|
|
|
@PostMapping("/submitApply") |
|
|
|
public ResultBean submitApply(@Valid @RequestBody SubmitInventoryProfitinDto dto) { |
|
|
|
return wmsInventoryProfitinService.submitApply(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "办理(同意)") |
|
|
|
@PostMapping("/complete") |
|
|
|
public ResultBean complete(@Valid @RequestBody CompleteInventoryProfitinDto query) { |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
bv.setModelId(""); |
|
|
|
return wmsInventoryProfitinService.complete(bv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取上一个环节") |
|
|
|
@GetMapping(value = "/getPreviousNodesForReject") |
|
|
|
ResultBean<List<InventoryProfitinNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap InventoryProfitinNodeQuery query) { |
|
|
|
return wmsInventoryProfitinService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取下一个环节") |
|
|
|
@GetMapping(value = "/getNextNodesForSubmit") |
|
|
|
ResultBean<List<InventoryProfitinNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap InventoryProfitinNodeQuery query) { |
|
|
|
return wmsInventoryProfitinService.getNextNodesForSubmit(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "驳回任务") |
|
|
|
@PostMapping(value = "/reject") |
|
|
|
public ResultBean taskReject(@Valid @RequestBody InventoryProfitinTaskQuery query) { |
|
|
|
return wmsInventoryProfitinService.taskReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "撤回流程") |
|
|
|
@PostMapping(value = "/revokeProcess") |
|
|
|
public ResultBean revokeProcess(@Valid @RequestBody InventoryProfitinTaskQuery query) { |
|
|
|
return wmsInventoryProfitinService.revokeProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终止任务") |
|
|
|
@PostMapping(value = "/breakProcess") |
|
|
|
public ResultBean breakProcess(@Valid @RequestBody InventoryProfitinTaskQuery query) { |
|
|
|
return wmsInventoryProfitinService.breakProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "加签") |
|
|
|
@PostMapping(value = "/delegate") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean delegate(@RequestBody InventoryProfitinDelegateQuery query) { |
|
|
|
return wmsInventoryProfitinService.delegate(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "转办") |
|
|
|
@PutMapping(value = "/assignTask") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean assignTask(@RequestBody InventoryProfitinDelegateQuery query){ |
|
|
|
return wmsInventoryProfitinService.assignTask(query); |
|
|
|
} |
|
|
|
public ResultBean<WmsInventoryProfitinDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
WmsInventoryProfitinDetailsVo vo = wmsInventoryProfitinService.fetchDetailsVoBySid(sid); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据部门sid获取盘盈盘点单号") |
|
|
|
@PostMapping("/getSourceBillNoBySid") |
|
|
|
public ResultBean<List<InventoryBillVo>> getSourceBillNoBySid(@RequestParam("deptSid") String deptSid, @RequestParam("warehouseTypeKey") String warehouseTypeKey) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<InventoryBillVo> voList = wmsInventoryProfitinService.getSourceBillNoBySid(deptSid, warehouseTypeKey); |
|
|
|
return rb.success().setData(voList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据盘点单sid获取盘盈商品列表") |
|
|
|
@GetMapping("/sourceBillBySid/{sid}") |
|
|
|
public ResultBean<List<WmsInventoryProfitinDetailDto>> sourceBillBySid(@PathVariable("sid") String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<WmsInventoryProfitinDetailDto> voList = wmsInventoryProfitinService.sourceBillBySid(sid); |
|
|
|
return rb.success().setData(voList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("提交") |
|
|
|
@PostMapping("/submitApply") |
|
|
|
public ResultBean submitApply(@Valid @RequestBody SubmitInventoryProfitinDto dto) { |
|
|
|
return wmsInventoryProfitinService.submitApply(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "办理(同意)") |
|
|
|
@PostMapping("/complete") |
|
|
|
public ResultBean complete(@Valid @RequestBody CompleteInventoryProfitinDto query) { |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
bv.setModelId(""); |
|
|
|
return wmsInventoryProfitinService.complete(bv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取上一个环节") |
|
|
|
@GetMapping(value = "/getPreviousNodesForReject") |
|
|
|
ResultBean<List<InventoryProfitinNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap InventoryProfitinNodeQuery query) { |
|
|
|
return wmsInventoryProfitinService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取下一个环节") |
|
|
|
@GetMapping(value = "/getNextNodesForSubmit") |
|
|
|
ResultBean<List<InventoryProfitinNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap InventoryProfitinNodeQuery query) { |
|
|
|
return wmsInventoryProfitinService.getNextNodesForSubmit(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "驳回任务") |
|
|
|
@PostMapping(value = "/reject") |
|
|
|
public ResultBean taskReject(@Valid @RequestBody InventoryProfitinTaskQuery query) { |
|
|
|
return wmsInventoryProfitinService.taskReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "撤回流程") |
|
|
|
@PostMapping(value = "/revokeProcess") |
|
|
|
public ResultBean revokeProcess(@Valid @RequestBody InventoryProfitinTaskQuery query) { |
|
|
|
return wmsInventoryProfitinService.revokeProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终止任务") |
|
|
|
@PostMapping(value = "/breakProcess") |
|
|
|
public ResultBean breakProcess(@Valid @RequestBody InventoryProfitinTaskQuery query) { |
|
|
|
return wmsInventoryProfitinService.breakProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "加签") |
|
|
|
@PostMapping(value = "/delegate") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean delegate(@RequestBody InventoryProfitinDelegateQuery query) { |
|
|
|
return wmsInventoryProfitinService.delegate(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "转办") |
|
|
|
@PutMapping(value = "/assignTask") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean assignTask(@RequestBody InventoryProfitinDelegateQuery query) { |
|
|
|
return wmsInventoryProfitinService.assignTask(query); |
|
|
|
} |
|
|
|
} |
|
|
|