Prechádzať zdrojové kódy

设备预测保养定时任务加上启用状态过滤

huangpeng 9 mesiacov pred
rodič
commit
2d06ebb85b

+ 1 - 1
cx-equipment/cx-equipment-common/src/main/java/com/rongwei/bscommon/sys/dao/EquMaintenancePredictivePlanDao.java

@@ -14,5 +14,5 @@ public interface EquMaintenancePredictivePlanDao extends BaseMapper<EquMaintenan
 
     List<EquMaintenancePredictivePlanVo> queryDateByids(@Param("ids") List<String> ids);
 
-    void getDetail(List<String> ids);
+
 }

+ 1 - 1
cx-equipment/cx-equipment-common/src/main/resources/mybatis/business/EquMaintenancePredictivePlanDao.xml

@@ -18,7 +18,7 @@
         <where>
             a.DELETED ='0'
             and  DATEDIFF(DATE_ADD(a.LASTMAINTENANCEDATE, INTERVAL a.FREQUENCY DAY), CURDATE()) &lt; 30
-            and b.NEXTTASKID is null
+            and b.NEXTTASKID is null and a.ISOUTOFSERVICE='启用'
             <if test="ids != null and ids.size()>0">
                 AND a.ID in
                 <foreach collection="ids" item="id" open="(" close=")" separator=",">