| | |
| | | planBoQueryWrapper.eq("mp.status", DictConstants.SYS_NORMAL_DISABLE_DETAIL.NORMAL); |
| | | planBoQueryWrapper .eq("equ.status", DictConstants.EIMS_EQU_STATUS_DETAIL.SHIYONG); |
| | | // 过滤下次运行时间等于当天时间的 |
| | | planBoQueryWrapper.eq("mp.maint_next_time", DateUtils.getDate()); |
| | | // planBoQueryWrapper.eq("mp.maint_next_time", DateUtils.getDate()); |
| | | // 过滤没有保养周期的数据 |
| | | planBoQueryWrapper.isNotNull("mp.maint_cycle"); |
| | | planBoQueryWrapper.isNotNull("mp.maint_cycle_unit"); |
| | |
| | | Date oldNext = planVo.getMaintNextTime(); |
| | | int day = DateUtils.differentDays(today, oldNext); |
| | | // 如果计划生成工单日期大于今天则不生成工单 |
| | | if (day >= 1) { |
| | | if (today.before(oldNext)) { |
| | | continue; |
| | | } |
| | | |