|
|
|
@ -114,8 +114,8 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 可视化 查询仓库货区 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/storeCargo") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperation(value = "货位 可视化", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
@ApiOperation(value = "货位 查询仓库货区", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<List <WarehouseVisCargo>> storeCargo() { |
|
|
|
|
List <WarehouseVisCargo> pages = warehouseGoodsAllocationService.selectVisCargo(); |
|
|
|
|
return R.data(pages); |
|
|
|
@ -125,7 +125,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 查询包件 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/wrap") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 5) |
|
|
|
|
@ApiOperation(value = "货位上架 查询包件", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseVisualizationVO>> wrap(WarehouseVisualizationDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseVisualizationVO> pages = warehouseGoodsAllocationService.selectwrap(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -136,7 +136,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 查询订单 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/order") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
|
@ApiOperation(value = "货位上架 查询订单", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseStockArticleCopyVO>> order(WarehouseStockArticleCopyDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseStockArticleCopyVO> pages = warehouseGoodsAllocationService.selectorder(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -147,7 +147,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 查询服务号 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/servicenub") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 7) |
|
|
|
|
@ApiOperation(value = "货位上架 查询服务号", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseStockArticleCopyVO>> servicenub(WarehouseStockArticleCopyDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseStockArticleCopyVO> pages = warehouseGoodsAllocationService.selectservicenub(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -159,7 +159,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 查询托盘 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/tray") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
|
@ApiOperation(value = "货位上架 查询托盘", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseTrayVO>> tray(WarehouseTrayDTO warehouseTrayDTO, Query query) { |
|
|
|
|
IPage <WarehouseTrayVO> pages = warehouseGoodsAllocationService.selectTray(warehouseTrayDTO,Condition.getPage(query)); |
|
|
|
@ -170,7 +170,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 查询库存品 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/Inventory") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
|
@ApiOperation(value = "货位上架 查询库存品", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseStockListCopyVO>> Inventory(WarehouseStockListCopyDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseStockListCopyVO> pages = warehouseGoodsAllocationService.selectInventory(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -181,7 +181,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 查询零担 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/ZeroOrder") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
|
@ApiOperation(value = "货位上架 查询零担", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseStockArticleCopyVO>> ZeroOrder(WarehouseStockArticleCopyDTO warehouseStockArticleCopyDTO, Query query) { |
|
|
|
|
IPage <WarehouseStockArticleCopyVO> pages = warehouseGoodsAllocationService.selectZeroOrder(warehouseStockArticleCopyDTO,Condition.getPage(query)); |
|
|
|
@ -193,7 +193,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 订单上架 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/upOrder") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 11) |
|
|
|
|
@ApiOperation(value = "货位上架 订单上架", notes = "传入updownTypeDTO") |
|
|
|
|
public R uporder(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
List<UpShelfOrderDTO> upShelfOrderList = updownTypeDTO.getUpShelfOrderList(); |
|
|
|
@ -211,7 +211,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 服务号上架 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/upService") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
|
@ApiOperation(value = "货位上架 服务号上架", notes = "传入updownTypeDTO") |
|
|
|
|
public R upservice(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
//取出服务号
|
|
|
|
@ -232,7 +232,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 包条上架 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/upPackage") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
|
@ApiOperation(value = "货位上架 包条上架", notes = "传入updownTypeDTO") |
|
|
|
|
public R upPackage(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
//取出包条Id
|
|
|
|
@ -248,7 +248,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 托盘上架 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/upTray") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 14) |
|
|
|
|
@ApiOperation(value = "货位上架 托盘上架", notes = "传入updownTypeDTO") |
|
|
|
|
public R upTray(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
String trayCode = updownTypeDTO.getCode();//托盘码
|
|
|
|
@ -264,7 +264,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 库存品上架 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/upStock") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 15) |
|
|
|
|
@ApiOperation(value = "货位上架 库存品上架", notes = "传入updownTypeDTO") |
|
|
|
|
public R upStock(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
Long allocationId = updownTypeDTO.getAllocationId();//库位编码
|
|
|
|
@ -280,7 +280,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位上架 零担上架 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/upZeroOrder") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 16) |
|
|
|
|
@ApiOperation(value = "货位上架 零担上架", notes = "传入updownTypeDTO") |
|
|
|
|
public R upZeroOrder(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
Long allocationId = updownTypeDTO.getAllocationId();//库位编码
|
|
|
|
@ -295,7 +295,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 可视化查询 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/Visualization") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 17) |
|
|
|
|
@ApiOperation(value = "货位 可视化", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<List <List<WarehouseGoodsAllocationVO>>> Visualization(WarehouseGoodsAllocationVO warehouseGoodsAllocation) { |
|
|
|
|
// if (null !=bladeRedis.get(Url+"/Visualization")){
|
|
|
|
@ -310,22 +310,22 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 统计所有库位数量 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/locationsnub") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 18) |
|
|
|
|
@ApiOperation(value = "货位 统计所有库位数量") |
|
|
|
|
public R locationsnub() { |
|
|
|
|
if (null !=bladeRedis.get(Url+"/locationsnub)")){ |
|
|
|
|
log.info("缓存取值>>>>>>>>>>"); |
|
|
|
|
return R.data(bladeRedis.get(Url+"/locationsnub")); |
|
|
|
|
} |
|
|
|
|
// if (null !=bladeRedis.get(Url+"/locationsnub)")){
|
|
|
|
|
// log.info("缓存取值>>>>>>>>>>");
|
|
|
|
|
// return R.data(bladeRedis.get(Url+"/locationsnub"));
|
|
|
|
|
// }
|
|
|
|
|
locationsnubVO locationsnubVO = warehouseGoodsAllocationService.selectlocationsnub(); |
|
|
|
|
bladeRedis.setEx(Url+"/locationsnub",locationsnubVO,360L); |
|
|
|
|
//bladeRedis.setEx(Url+"/locationsnub",locationsnubVO,360L);
|
|
|
|
|
return R.data(locationsnubVO); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 货位 统计每个货区数量 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/cargoNub") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 19) |
|
|
|
|
@ApiOperation(value = "货位 统计每个货区数量") |
|
|
|
|
public R cargoNub() { |
|
|
|
|
if (null !=bladeRedis.get(Url+"/cargoNub")){ |
|
|
|
@ -340,7 +340,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 查询包件 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/selectWrap") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 20) |
|
|
|
|
@ApiOperation(value = "货位 查询包件", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseVisualizationVO>> selectWrap(WarehouseGoodsAllocationDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseVisualizationVO> pages = warehouseGoodsAllocationService.selectAllwrap(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -351,7 +351,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 查询库存品 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/selectInventory") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 21) |
|
|
|
|
@ApiOperation(value = "货位 查询库存品", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseStockListCopyVO>> selectInventory(WarehouseGoodsAllocationDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseStockListCopyVO> pages = warehouseGoodsAllocationService.selectAllInventory(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -362,7 +362,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 查询零担 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/selectZeroOrder") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 22) |
|
|
|
|
@ApiOperation(value = "货位 查询零担", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseStockArticleCopyVO>> selectZeroOrder(WarehouseStockArticleCopyDTO warehouseStockArticleCopyDTO, Query query) { |
|
|
|
|
IPage <WarehouseStockArticleCopyVO> pages = warehouseGoodsAllocationService.selectAllZeroOrder(warehouseStockArticleCopyDTO,Condition.getPage(query)); |
|
|
|
@ -373,7 +373,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 查询托盘 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/selectTray") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 23) |
|
|
|
|
@ApiOperation(value = "货位 查询托盘", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R<IPage <WarehouseTrayVO>> selectTray(WarehouseGoodsAllocationDTO warehouseGoodsAllocation, Query query) { |
|
|
|
|
IPage <WarehouseTrayVO> pages = warehouseGoodsAllocationService.selectAllTray(warehouseGoodsAllocation,Condition.getPage(query)); |
|
|
|
@ -385,7 +385,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 下架包件 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/downPackage") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 24) |
|
|
|
|
@ApiOperation(value = "货位 下架包件", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R downPackage(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
List<UpShelfPackageDTO> upShelfPackageList = updownTypeDTO.getUpShelfPackageList(); |
|
|
|
@ -399,7 +399,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 下架零担 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/downZeroOrder") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 25) |
|
|
|
|
@ApiOperation(value = "货位 下架零担", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R downZeroOrder(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
List<UpShelfZeroOrderDTO> upShelfZeroOrderList = updownTypeDTO.getUpShelfZeroOrderList(); |
|
|
|
@ -413,7 +413,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 下架库存品 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/downStock") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 26) |
|
|
|
|
@ApiOperation(value = "货位 下架库存品", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R downStock(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
List<UpShelfStockDTO> upShelfStockList = updownTypeDTO.getUpShelfStockList(); |
|
|
|
@ -428,7 +428,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 下架托盘 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/downTray") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperationSupport(order = 27) |
|
|
|
|
@ApiOperation(value = "货位 下架托盘", notes = "传入updownTypeDTO") |
|
|
|
|
public R downTray(@RequestBody UpdownTypeDTO updownTypeDTO) { |
|
|
|
|
List<String> trayCodes = updownTypeDTO.getTrayCodes(); |
|
|
|
@ -451,7 +451,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/downAllocation") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperationSupport(order = 28) |
|
|
|
|
@ApiOperation(value = "货位 下架货位", notes = "传入trayTypeDTO") |
|
|
|
|
public R downAllocation(@RequestParam String ids) { |
|
|
|
|
try{ |
|
|
|
@ -476,7 +476,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 新增 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/save") |
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
@ApiOperationSupport(order = 29) |
|
|
|
|
@ApiOperation(value = "新增", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R save(@Valid @RequestBody WarehouseGoodsAllocationEntity warehouseGoodsAllocation) { |
|
|
|
|
return R.status(warehouseGoodsAllocationService.save(warehouseGoodsAllocation)); |
|
|
|
@ -486,7 +486,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 修改 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/update") |
|
|
|
|
@ApiOperationSupport(order = 5) |
|
|
|
|
@ApiOperationSupport(order = 30) |
|
|
|
|
@ApiOperation(value = "修改", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R update(@Valid @RequestBody WarehouseGoodsAllocationEntity warehouseGoodsAllocation) { |
|
|
|
|
return R.status(warehouseGoodsAllocationService.updateById(warehouseGoodsAllocation)); |
|
|
|
@ -496,7 +496,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 新增或修改 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/submit") |
|
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
|
@ApiOperationSupport(order = 31) |
|
|
|
|
@ApiOperation(value = "新增或修改", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public R submit(@Valid @RequestBody WarehouseGoodsAllocationEntity warehouseGoodsAllocation) { |
|
|
|
|
return R.status(warehouseGoodsAllocationService.saveOrUpdate(warehouseGoodsAllocation)); |
|
|
|
@ -506,7 +506,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 货位 删除 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/remove") |
|
|
|
|
@ApiOperationSupport(order = 7) |
|
|
|
|
@ApiOperationSupport(order = 32) |
|
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
|
|
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
|
return R.status(warehouseGoodsAllocationService.deleteLogic(Func.toLongList(ids))); |
|
|
|
@ -517,7 +517,7 @@ public class WarehouseGoodsAllocationController extends BladeController {
|
|
|
|
|
* 导出数据 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/export-warehouseGoodsAllocation") |
|
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
|
@ApiOperationSupport(order = 33) |
|
|
|
|
@ApiOperation(value = "导出数据", notes = "传入warehouseGoodsAllocation") |
|
|
|
|
public void exportWarehouseGoodsAllocation(@ApiIgnore @RequestParam Map<String, Object> warehouseGoodsAllocation, BladeUser bladeUser, HttpServletResponse response) { |
|
|
|
|
QueryWrapper<WarehouseGoodsAllocationEntity> queryWrapper = Condition.getQueryWrapper(warehouseGoodsAllocation, WarehouseGoodsAllocationEntity.class); |
|
|
|
|