自动化立体仓库 - WMS系统
#
fyxc
2025-04-09 66f7630551557e8ecf789ae315eaa4bd9a4dbc80
#
4个文件已修改
18 ■■■■ 已修改文件
src/main/java/com/zy/asrs/task/LocMoveAllScheduler.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/timer/LedWebsocket.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/utils/Utils.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/task/LocMoveAllScheduler.java
@@ -92,7 +92,7 @@
                if (!Utils.isShallowLoc(slaveProperties, locMastStart.getLocNo())){
                    String shallowLocNo = Utils.getShallowLoc(slaveProperties, locMastStart.getLocNo());
                    LocMast locNo = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", shallowLocNo));
                    if (!locNo.getLocSts().equals("O")){
                    if (locNo != null && !locNo.getLocSts().equals("O")) {
                        locMastStart = locNo;
                    }
                }
@@ -100,7 +100,7 @@
                        .eq("loc_sts","O")
                        .eq("crn_no",basCrnp.getCrnNo())
                        .eq("loc_type1",locMastStart.getLocType1())
                        .ne("modi_user",66)
                        .ne("modi_user", 77)
                        .orderBy("row1",true));//目标
                if (Cools.isEmpty(locMastEnd)){
                    continue;
@@ -108,10 +108,10 @@
                if (!Utils.isShallowLoc(slaveProperties, locMastEnd.getLocNo())){
                    String shallowLocNo = Utils.getShallowLoc(slaveProperties, locMastEnd.getLocNo());
                    LocMast locNo = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", shallowLocNo));
                    if (locNo.getLocSts().equals("O")){
                    if (locNo != null && locNo.getLocSts().equals("O")) {
                    }else {
                        locMastEnd.setModiUser(66L);
                        locMastEnd.setModiUser(77L);
                        locMastService.updateById(locMastEnd);
                        continue;
                    }
src/main/java/com/zy/asrs/timer/LedWebsocket.java
@@ -35,7 +35,7 @@
    @Autowired
    private LocDetlService locDetlService;
    @Scheduled(cron = "0/2 * * * * ? ")
//    @Scheduled(cron = "0/2 * * * * ? ")
    private void send() {
        //饼图
@@ -139,7 +139,7 @@
        webSocketServer.onMessage(JSONObject.toJSONString(map),null,"all");
    }
    @Scheduled(cron = "0/2 * * * * ? ")
//    @Scheduled(cron = "0/2 * * * * ? ")
    private void errorSend(){
        Map<String,Object> map=new HashMap<String, Object>();
//        for (LedSlave slave : slaveProperties.getLed()) {
@@ -153,7 +153,7 @@
//        }
    }
    @Scheduled(cron = "0/2 * * * * ? ")
//    @Scheduled(cron = "0/2 * * * * ? ")
    private void TaskSend(){
        Map<String,Object> map=new HashMap<String, Object>();
//        List<LedCommand> commandList = null;
src/main/java/com/zy/asrs/utils/Utils.java
@@ -146,7 +146,7 @@
    public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) {
        int row = getRow(deepLoc);
        int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount());
        int shallowRow = remainder == 1 ? (row + 1) : (row - 1);
        int shallowRow = remainder == 1 ? (row - 1) : (row + 1);
        return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2);
    }
src/main/resources/application.yml
@@ -109,7 +109,7 @@
loc-move:
  enable: true
  crn1: false
  crn1: true
  crn2: false
  crn3: false
  crn4: false