yang před 4 roky
rodič
revize
ae6c30500a

+ 2 - 2
lift-common/src/main/java/cn/com/ty/lift/common/constants/SqlConstants.java

@@ -95,8 +95,8 @@ public interface SqlConstants {
             "select     mr.id id,l.device_position devicePosition, has_evaluate hasEvaluate" +
                     "    from maintenance_record mr" +
                     "        left join lift l on mr.lift_id = l.id" +
-                    "    where DATE_FORMAT(mr.recovery_date, '%Y%m%d')  = DATE_FORMAT(CURDATE(), '%Y%m%d')" +
-                    "      and project_id in (select project_id from project_user where user_id = #{userId})";
+                    "        where has_evaluate =0 and status = 2 " +
+                    "        and project_id in (select project_id from project_user where user_id = #{userId})";
 
     //物管。根据用户Id查询加入的项目列表
     String QUERY_JOIN_PROJECT_LIST =