| | |
| | | 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", "当前项目存在未完成的灌溉计划"); |
| | |
| | | return map; |
| | | } |
| | | |
| | | if(irrigatePlanMapper.hasPlan_CurrentProject(planId) == 0) { |
| | | if(irrigatePlanMapper.hasPlan_CurrentProject(planId) > 0) { |
| | | Map map = new HashMap<>(); |
| | | map.put("success", false); |
| | | map.put("msg", "待发布计划的轮灌组在其他项目的灌溉计划中,且该计划尚未完成"); |