zuoxiao
5 天以前 d20d38e22b06559d758c568769017e2acf632583
pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigatePlan/IrrigatePlanSv.java
@@ -136,7 +136,7 @@
        Long operatorId = planSimple.getOperatorId();
        Byte operateType = 1;
        if(irrigatePlanMapper.hasPlan_CurrentProject(planId) == 0) {
        if(irrigatePlanMapper.hasPlan_CurrentProject(planId) > 0) {
            Map map = new HashMap<>();
            map.put("success", false);
            map.put("msg", "当前项目存在未完成的灌溉计划");
@@ -144,7 +144,7 @@
            return map;
        }
        if(irrigatePlanMapper.hasPlan_CurrentProject(planId) == 0) {
        if(irrigatePlanMapper.hasPlan_OtherProject(planId) > 0) {
            Map map = new HashMap<>();
            map.put("success", false);
            map.put("msg", "待发布计划的轮灌组在其他项目的灌溉计划中,且该计划尚未完成");
@@ -205,6 +205,7 @@
            // 计算下一组的开始时间
            LocalDateTime LocalscheduleStartTime = scheduleStartTime.toInstant().atZone(ZoneId.systemDefault()) .toLocalDateTime();
            LocalscheduleStartTime = LocalscheduleStartTime.plusMinutes(schedule.getDuration());
            LocalscheduleStartTime = LocalscheduleStartTime.minusMinutes(2);
            scheduleStartTime = Date.from(LocalscheduleStartTime.atZone(ZoneId.systemDefault()).toInstant());
        }