ソースを参照

巡检任务时间查询优化

shane 3 年 前
コミット
6366e4fb8b

+ 8 - 1
java110-db/src/main/resources/mapper/community/InspectionPlanServiceDaoImplMapper.xml

@@ -13,6 +13,12 @@
             inspection_plan_period,
             remark,
             end_time,
+            start_date,
+            end_date,
+            inspection_month,
+            inspection_day,
+            inspection_workday,
+            can_reexamine,
             operate,
             sign_type,
             start_time,
@@ -23,7 +29,8 @@
             create_user_id,
             create_user_name)
         values (#{inspectionPlanName},#{inspectionRouteId},#{inspectionPlanPeriod},#{remark},
-                #{endTime},#{operate},#{signType},#{startTime},
+                #{endTime},#{startDate},#{endDate},#{inspectionMonth},#{inspectionDay},#{inspectionWorkday},#{canReexamine},
+                #{operate},#{signType},#{startTime},
                 #{inspectionPlanId},#{state},#{communityId},#{bId},#{createUserId},
                 #{createUserName})
        </insert>

+ 2 - 2
java110-db/src/main/resources/mapper/community/InspectionTaskServiceDaoImplMapper.xml

@@ -148,7 +148,7 @@
             and t.act_ins_time &lt;= #{endTime}
         </if>
         <if test="planInsTime !=null ">
-            and t.plan_ins_time= #{planInsTime}
+            and DATE_FORMAT(t.plan_ins_time,'%Y-%m-%d')= #{planInsTime}
         </if>
         <if test="planEndTime !=null ">
             and t.plan_end_time= #{planEndTime}
@@ -292,7 +292,7 @@
             and t.act_ins_time &lt;= #{endTime}
         </if>
         <if test="planInsTime !=null ">
-            and t.plan_ins_time= #{planInsTime}
+            and DATE_FORMAT(t.plan_ins_time,'%Y-%m-%d')= #{planInsTime}
         </if>
         <if test="planEndTime !=null ">
             and t.plan_end_time= #{planEndTime}