Commit 45c07f90 hc

fix:odn砍单回库新增获取、删除缓存列表接口

1 个父辈 306579c5
...@@ -236,8 +236,9 @@ public class DataInitManager { ...@@ -236,8 +236,9 @@ public class DataInitManager {
addNewFunctionMenu(5, wip, "transferInventory", "311转库", "transferInventory", "SemiFinishProducts/transferInventory/index", "transferInventory", functionMenuMap); addNewFunctionMenu(5, wip, "transferInventory", "311转库", "transferInventory", "SemiFinishProducts/transferInventory/index", "transferInventory", functionMenuMap);
addNewFunctionMenu(6, wip, "ngMaterial", "NG料出箱", "ngMaterial", "SemiFinishProducts/ngMaterial/index", "ngMaterial", functionMenuMap); addNewFunctionMenu(6, wip, "ngMaterial", "NG料出箱", "ngMaterial", "SemiFinishProducts/ngMaterial/index", "ngMaterial", functionMenuMap);
addNewFunctionMenu(6, wip, "handMovementOut", "手动出箱", "handMovementOut", "SemiFinishProducts/handMovement/out/index", "handMovementOut", functionMenuMap); addNewFunctionMenu(7, wip, "handMovementOut", "手动出箱", "handMovementOut", "SemiFinishProducts/handMovement/out/index", "handMovementOut", functionMenuMap);
addNewFunctionMenu(6, wip, "handMovementIn", "手动入箱", "handMovementIn", "SemiFinishProducts/handMovement/in/index", "handMovementIn", functionMenuMap); addNewFunctionMenu(8, wip, "handMovementIn", "手动入箱", "handMovementIn", "SemiFinishProducts/handMovement/in/index", "handMovementIn", functionMenuMap);
addNewFunctionMenu(9, wip, "cutOrders", "回单砍库", "cutOrders", "SemiFinishProducts/cutOrders/index", "cutOrders", functionMenuMap);
//MSD管理:MSD库存.MSD追溯性.MSD设置 //MSD管理:MSD库存.MSD追溯性.MSD设置
......
...@@ -111,29 +111,28 @@ public class CancelRestockController { ...@@ -111,29 +111,28 @@ public class CancelRestockController {
} }
@ApiOperation("获取砍单回库的料箱信息") @ApiOperation("删除砍单回库缓存")
@RequestMapping("/boxInfo") @RequestMapping("/delete")
@AnonymousAccess @AnonymousAccess
public ResultBean boxInfo() { public ResultBean deleteCache(String boxStr) {
Map<String, String> cacheMap = dataCache.getCache(CacheNameUtil.CHCHE_SHIPCANCELUPSHELF); Map<String, String> cacheMap = dataCache.getCache(CacheNameUtil.CHCHE_SHIPCANCELUPSHELF);
if (cacheMap == null) { if (cacheMap == null || !cacheMap.containsKey(boxStr)) {
cacheMap = new HashMap<>(); throw new ValidateException("smfcore.valueNotFind", "未找到{0}", new String[]{boxStr});
} }
return ResultBean.newOkResult(cacheMap.values()); cacheMap.remove(boxStr);
dataCache.updateCache(CacheNameUtil.CHCHE_SHIPCANCELUPSHELF,cacheMap);
return ResultBean.newOkResult("ok");
} }
@ApiOperation("获取回库缓列表")
@ApiOperation("移除砍单回库的料箱信息") @RequestMapping("/list")
@RequestMapping("/removeBoxInfo")
@AnonymousAccess @AnonymousAccess
public ResultBean removeBoxInfo(String boxStr) { public ResultBean list() {
Map<String, String> cacheMap = dataCache.getCache(CacheNameUtil.CHCHE_SHIPCANCELUPSHELF); Map<String, String> cacheMap = dataCache.getCache(CacheNameUtil.CHCHE_SHIPCANCELUPSHELF);
if (cacheMap == null) { if (cacheMap == null) {
cacheMap = new HashMap<>(); cacheMap = new HashMap<>();
} }
cacheMap.remove(boxStr); return ResultBean.newOkResult(cacheMap.keySet());
dataCache.updateCache(CacheNameUtil.CHCHE_SHIPCANCELUPSHELF,cacheMap);
return ResultBean.newOkResult("");
} }
} }
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!