|
|
@ -32,6 +32,7 @@ import com.yxt.common.core.vo.PagerVo; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbill.*; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbill.flowable.*; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.*; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app.HandleBean; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app.WmsInventoryCheckbillGoodsDto; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app.WmsInventoryCheckbillPageQuery; |
|
|
|
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.app.WmsInventoryCheckbillPageVo; |
|
|
@ -64,145 +65,152 @@ import java.util.List; |
|
|
|
@RequestMapping("v1/wmsinventorycheckbill") |
|
|
|
public class WmsInventoryCheckbillRest { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WmsInventoryCheckbillService wmsInventoryCheckbillService; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillVo>> listPage(@RequestBody PagerQuery<WmsInventoryCheckbillQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillVo> pv = wmsInventoryCheckbillService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新建盘点单") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody WmsInventoryCheckbillDto dto){ |
|
|
|
return wmsInventoryCheckbillService.saveOrUpdateDto(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("生成盘点报告") |
|
|
|
@PostMapping("/createReport") |
|
|
|
public ResultBean createReport(@RequestParam("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
wmsInventoryCheckbillService.createReport(sid); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查看盘点报告") |
|
|
|
@PostMapping("/viewReport") |
|
|
|
public ResultBean<WmsInventoryCheckbillReportDetailsVo> viewReport(@RequestParam("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
WmsInventoryCheckbillReportDetailsVo wmsInventoryCheckbillReportDetailsVo = wmsInventoryCheckbillService.viewReport(sid); |
|
|
|
return rb.success().success().setData(wmsInventoryCheckbillReportDetailsVo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("生成盘点报告PDF") |
|
|
|
@PostMapping("/createPdf") |
|
|
|
public ResultBean<String> createPdf(@RequestParam("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String url = wmsInventoryCheckbillService.createPdf(sid); |
|
|
|
return rb.success().success().setData(url); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据sid批量删除") |
|
|
|
@Autowired |
|
|
|
private WmsInventoryCheckbillService wmsInventoryCheckbillService; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillVo>> listPage(@RequestBody PagerQuery<WmsInventoryCheckbillQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillVo> pv = wmsInventoryCheckbillService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新建盘点单") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody WmsInventoryCheckbillDto dto) { |
|
|
|
return wmsInventoryCheckbillService.saveOrUpdateDto(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("生成盘点报告") |
|
|
|
@PostMapping("/createReport") |
|
|
|
public ResultBean createReport(@RequestParam("sid") String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
wmsInventoryCheckbillService.createReport(sid); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查看盘点报告") |
|
|
|
@PostMapping("/viewReport") |
|
|
|
public ResultBean<WmsInventoryCheckbillReportDetailsVo> viewReport(@RequestParam("sid") String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
WmsInventoryCheckbillReportDetailsVo wmsInventoryCheckbillReportDetailsVo = wmsInventoryCheckbillService.viewReport(sid); |
|
|
|
return rb.success().success().setData(wmsInventoryCheckbillReportDetailsVo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("生成盘点报告PDF") |
|
|
|
@PostMapping("/createPdf") |
|
|
|
public ResultBean<String> createPdf(@RequestParam("sid") String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String url = wmsInventoryCheckbillService.createPdf(sid); |
|
|
|
return rb.success().success().setData(url); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据sid批量删除") |
|
|
|
@DeleteMapping("/delBySids") |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids){ |
|
|
|
return wmsInventoryCheckbillService.delAll(sids); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("盘点-查看库位盘点列表") |
|
|
|
@PostMapping("/detailRackPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillDetailRackPageListVo>> detailRackPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailRackPageListQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillDetailRackPageListVo> pv = wmsInventoryCheckbillService.detailRackPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("盘点-查看商品盘点列表") |
|
|
|
@PostMapping("/detailGoodPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillDetailGoodPageListVo>> detailGoodPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailGoodPageListQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillDetailGoodPageListVo> pv = wmsInventoryCheckbillService.detailGoodPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查看库位商品盘点列表") |
|
|
|
@PostMapping("/detailRackGoodPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillDetailRackGoodPageListVo>> detailRackGoodPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailRackGoodPageListQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillDetailRackGoodPageListVo> pv = wmsInventoryCheckbillService.detailRackGoodPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
/*********************************************************移动端************************************************************/ |
|
|
|
|
|
|
|
@ApiOperation("app-盘点-查看库位盘点列表") |
|
|
|
@PostMapping("/appDetailRackPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillPageVo>> appDetailRackPageList(@RequestBody PagerQuery<WmsInventoryCheckbillPageQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillPageVo> pv = wmsInventoryCheckbillService.appDetailRackPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("办理/扫码保存") |
|
|
|
@PostMapping("/saveInventoryInfo") |
|
|
|
@ResponseBody |
|
|
|
ResultBean saveInventoryInfo(@RequestBody WmsInventoryCheckbillGoodsDto dto){ |
|
|
|
return wmsInventoryCheckbillService.saveInventoryInfo(dto); |
|
|
|
}; |
|
|
|
|
|
|
|
/*********************************************************流程************************************************************/ |
|
|
|
|
|
|
|
@ApiOperation("提交") |
|
|
|
@PostMapping("/submitApply") |
|
|
|
public ResultBean submitApply(@Valid @RequestBody SubmitInventoryCheckDto dto) { |
|
|
|
return wmsInventoryCheckbillService.submitApply(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "办理(同意)") |
|
|
|
@PostMapping("/complete") |
|
|
|
public ResultBean complete(@Valid @RequestBody CompleteInventoryCheckDto query) { |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
bv.setModelId(""); |
|
|
|
return wmsInventoryCheckbillService.complete(bv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取上一个环节") |
|
|
|
@GetMapping(value = "/getPreviousNodesForReject") |
|
|
|
ResultBean<List<InventoryCheckNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap InventoryCheckNodeQuery query) { |
|
|
|
return wmsInventoryCheckbillService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取下一个环节") |
|
|
|
@GetMapping(value = "/getNextNodesForSubmit") |
|
|
|
ResultBean<List<InventoryCheckNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap InventoryCheckNodeQuery query) { |
|
|
|
return wmsInventoryCheckbillService.getNextNodesForSubmit(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "驳回任务") |
|
|
|
@PostMapping(value = "/reject") |
|
|
|
public ResultBean taskReject(@Valid @RequestBody InventoryCheckTaskQuery query) { |
|
|
|
return wmsInventoryCheckbillService.taskReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "撤回流程") |
|
|
|
@PostMapping(value = "/revokeProcess") |
|
|
|
public ResultBean revokeProcess(@Valid @RequestBody InventoryCheckTaskQuery query) { |
|
|
|
return wmsInventoryCheckbillService.revokeProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终止任务") |
|
|
|
@PostMapping(value = "/breakProcess") |
|
|
|
public ResultBean breakProcess(@Valid @RequestBody InventoryCheckTaskQuery query) { |
|
|
|
return wmsInventoryCheckbillService.breakProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "加签") |
|
|
|
@PostMapping(value = "/delegate") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean delegate(@RequestBody InventoryCheckDelegateQuery query) { |
|
|
|
return wmsInventoryCheckbillService.delegate(query); |
|
|
|
} |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids) { |
|
|
|
return wmsInventoryCheckbillService.delAll(sids); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("盘点-查看库位盘点列表") |
|
|
|
@PostMapping("/detailRackPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillDetailRackPageListVo>> detailRackPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailRackPageListQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillDetailRackPageListVo> pv = wmsInventoryCheckbillService.detailRackPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("盘点-查看商品盘点列表") |
|
|
|
@PostMapping("/detailGoodPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillDetailGoodPageListVo>> detailGoodPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailGoodPageListQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillDetailGoodPageListVo> pv = wmsInventoryCheckbillService.detailGoodPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查看库位商品盘点列表") |
|
|
|
@PostMapping("/detailRackGoodPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillDetailRackGoodPageListVo>> detailRackGoodPageList(@RequestBody PagerQuery<WmsInventoryCheckbillDetailRackGoodPageListQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillDetailRackGoodPageListVo> pv = wmsInventoryCheckbillService.detailRackGoodPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
/*********************************************************移动端************************************************************/ |
|
|
|
|
|
|
|
@ApiOperation("app-盘点-查看库位盘点列表") |
|
|
|
@PostMapping("/appDetailRackPageList") |
|
|
|
public ResultBean<PagerVo<WmsInventoryCheckbillPageVo>> appDetailRackPageList(@RequestBody PagerQuery<WmsInventoryCheckbillPageQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<WmsInventoryCheckbillPageVo> pv = wmsInventoryCheckbillService.appDetailRackPageList(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("办理/扫码保存") |
|
|
|
@PostMapping("/saveInventoryInfo") |
|
|
|
@ResponseBody |
|
|
|
ResultBean saveInventoryInfo(@RequestBody WmsInventoryCheckbillGoodsDto dto) { |
|
|
|
return wmsInventoryCheckbillService.saveInventoryInfo(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("扫描商品码") |
|
|
|
@GetMapping("/scan") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean<HandleBean> scan(@RequestParam("sid") String sid, @RequestParam("content") String content, @RequestParam("houseSid") String houseSid) { |
|
|
|
return wmsInventoryCheckbillService.scan(sid, content, houseSid); |
|
|
|
} |
|
|
|
|
|
|
|
/*********************************************************流程************************************************************/ |
|
|
|
|
|
|
|
@ApiOperation("提交") |
|
|
|
@PostMapping("/submitApply") |
|
|
|
public ResultBean submitApply(@Valid @RequestBody SubmitInventoryCheckDto dto) { |
|
|
|
return wmsInventoryCheckbillService.submitApply(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "办理(同意)") |
|
|
|
@PostMapping("/complete") |
|
|
|
public ResultBean complete(@Valid @RequestBody CompleteInventoryCheckDto query) { |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
bv.setModelId(""); |
|
|
|
return wmsInventoryCheckbillService.complete(bv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取上一个环节") |
|
|
|
@GetMapping(value = "/getPreviousNodesForReject") |
|
|
|
ResultBean<List<InventoryCheckNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap InventoryCheckNodeQuery query) { |
|
|
|
return wmsInventoryCheckbillService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取下一个环节") |
|
|
|
@GetMapping(value = "/getNextNodesForSubmit") |
|
|
|
ResultBean<List<InventoryCheckNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap InventoryCheckNodeQuery query) { |
|
|
|
return wmsInventoryCheckbillService.getNextNodesForSubmit(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "驳回任务") |
|
|
|
@PostMapping(value = "/reject") |
|
|
|
public ResultBean taskReject(@Valid @RequestBody InventoryCheckTaskQuery query) { |
|
|
|
return wmsInventoryCheckbillService.taskReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "撤回流程") |
|
|
|
@PostMapping(value = "/revokeProcess") |
|
|
|
public ResultBean revokeProcess(@Valid @RequestBody InventoryCheckTaskQuery query) { |
|
|
|
return wmsInventoryCheckbillService.revokeProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终止任务") |
|
|
|
@PostMapping(value = "/breakProcess") |
|
|
|
public ResultBean breakProcess(@Valid @RequestBody InventoryCheckTaskQuery query) { |
|
|
|
return wmsInventoryCheckbillService.breakProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "加签") |
|
|
|
@PostMapping(value = "/delegate") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean delegate(@RequestBody InventoryCheckDelegateQuery query) { |
|
|
|
return wmsInventoryCheckbillService.delegate(query); |
|
|
|
} |
|
|
|
} |
|
|
|