Bladeren bron

更新巡检计划sql 加入关键字模糊查询

mrzcc 6 jaren geleden
bovenliggende
commit
bfd127e5a8

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

@@ -315,9 +315,6 @@
         <if test="startTime !=null and startTime != ''">
             and t.start_time= #{startTime}
         </if>
-        <if test="createUser !=null and createUser != ''">
-            and t.create_user= #{createUser}
-        </if>
         <if test="inspectionPlanId !=null and inspectionPlanId != ''">
             and t.inspection_plan_id= #{inspectionPlanId}
         </if>
@@ -333,6 +330,9 @@
         <if test="staffId !=null and staffId != ''">
             and t.staff_id= #{staffId}
         </if>
+        <if test="keyWord !=null and keyWord != ''">
+            and (t.inspection_plan_name like concat('%',#{keyWord},'%') or t.staff_name like concat('%',#{keyWord},'%'))
+        </if>
 
 
     </select>