自动化立体仓库 - WMS系统
Junjie
2023-06-07 d75c82842dac6d9f891e2e3d2aade153a8999619
src/main/java/com/zy/asrs/controller/MapController.java
@@ -11,6 +11,7 @@
import com.zy.asrs.service.LocDetlService;
import com.zy.asrs.service.LocMastService;
import com.zy.asrs.utils.Utils;
import com.zy.common.utils.RedisUtil;
import com.zy.common.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -29,6 +30,8 @@
    private LocDetlService locDetlService;
    @Autowired
    private BasMapService basMapService;
    @Autowired
    private RedisUtil redisUtil;
    private static final List<String> DISABLE_LOC_NO = new ArrayList<String>() {{
//        add("0200101");
@@ -220,4 +223,16 @@
        return JSONObject.toJSONString(arrayLists);
    }
    @GetMapping("/map/resetMap/{lev}/auth")
    @ManagerAuth
    public R resetMap(@PathVariable("lev") Integer lev) {
        Object o = redisUtil.get("realtimeBasMap_" + lev);
        if (o == null) {
            return R.error();
        }
        redisUtil.del("realtimeBasMap_" + lev);
        basMapService.deleteByLev(lev);
        return R.ok();
    }
}