Explorar el Código

优化二维码巡检只巡检当天的

java110 hace 4 años
padre
commit
051ac646dc

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/inspectionPlan/InspectionTaskDetailDto.java

@@ -63,6 +63,8 @@ public class InspectionTaskDetailDto extends PageDto implements Serializable {
 
     //当前日期
     private String nowTime;
+    //二维码巡检时 的时间
+    private String qrCodeTime;
 
     private String statusCd = "0";
     private String itemId;
@@ -370,4 +372,12 @@ public class InspectionTaskDetailDto extends PageDto implements Serializable {
     public void setPlanUserId(String planUserId) {
         this.planUserId = planUserId;
     }
+
+    public String getQrCodeTime() {
+        return qrCodeTime;
+    }
+
+    public void setQrCodeTime(String qrCodeTime) {
+        this.qrCodeTime = qrCodeTime;
+    }
 }

+ 3 - 0
java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml

@@ -210,6 +210,9 @@
         <if test="nowTime != null">
             and t.create_time &lt; #{nowTime}
         </if>
+        <if test="qrCodeTime != null">
+            and t.create_time &gt; #{qrCodeTime}
+        </if>
         <if test="inspectionStartTime !=null and inspectionStartTime != ''">
             and t.inspection_time &gt;= #{inspectionStartTime}
         </if>