Explorar el Código

【CHG】检测表筛选操作人模糊查询

xczzmn hace 4 años
padre
commit
a443f6cf84

+ 0 - 1
railway-business/src/main/java/com/railway/business/catenary/domain/BusJceb.java

@@ -56,7 +56,6 @@ public class BusJceb extends BaseEntity{
     private LocalDate operationDate;
 
     @ApiModelProperty(value = "检测人")
-    @Length(min = 1, max = 255, message = "【检测人】长度必须介于 {min} 和 {max} 之间")
     private String operator;
 
     @ApiModelProperty(value = "提交状态 0未提交 1已提交 2已退回 9已确认")

+ 8 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbBlqMapper.xml

@@ -533,11 +533,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 
@@ -559,11 +562,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 

+ 8 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbDmcgyqMapper.xml

@@ -479,11 +479,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 
@@ -505,11 +508,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 

+ 8 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbFdfxjyqMapper.xml

@@ -696,11 +696,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 
@@ -722,11 +725,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 

+ 8 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbGlkgMapper.xml

@@ -952,11 +952,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 
@@ -978,11 +981,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 

+ 8 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbJcxcMapper.xml

@@ -656,11 +656,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 
@@ -682,11 +685,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 

+ 8 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbWjcxcMapper.xml

@@ -585,11 +585,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 
@@ -611,11 +614,14 @@
         and t.pillar_code=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.check_user=#{operator}
+        and t.check_user like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="operationDate!=null">
+        and t.check_date=#{operationDate}
+      </if>
     </where>
   </select>
 

+ 3 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebGjsfxMapper.xml

@@ -331,7 +331,7 @@
         and t.xmzjcxcztyyggjcctg=#{xmzjcxcztyyggjcctg}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="remark!=null and remark!=''">
         and t.remark=#{remark}
@@ -390,7 +390,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
@@ -416,7 +416,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}

+ 3 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebJddzMapper.xml

@@ -246,7 +246,7 @@
         and t.sfhg=#{sfhg}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="remark!=null and remark!=''">
         and t.remark=#{remark}
@@ -308,7 +308,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
@@ -334,7 +334,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}

+ 3 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebJyzqsjlMapper.xml

@@ -218,7 +218,7 @@
         and t.operation_date=#{operationDate}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="remark!=null and remark!=''">
         and t.remark=#{remark}
@@ -277,7 +277,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
@@ -303,7 +303,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}

+ 3 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebLbjghjlMapper.xml

@@ -255,7 +255,7 @@
         and t.operation_date=#{operationDate}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="remark!=null and remark!=''">
         and t.remark=#{remark}
@@ -314,7 +314,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
@@ -340,7 +340,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}

+ 3 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebQmjcjlMapper.xml

@@ -286,7 +286,7 @@
         and t.sbzt=#{sbzt}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="gzldr!=null and gzldr!=''">
         and t.gzldr=#{gzldr}
@@ -354,7 +354,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
@@ -380,7 +380,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}

+ 3 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebXsjcjlMapper.xml

@@ -261,7 +261,7 @@
         and t.yqwcsj=#{yqwcsj}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="clcs!=null and clcs!=''">
         and t.clcs=#{clcs}
@@ -338,7 +338,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
@@ -364,7 +364,7 @@
         and t.pillar_start=#{pillarCode}
       </if>
       <if test="operator!=null and operator!=''">
-        and t.operator=#{operator}
+        and t.operator like concat('%', #{operator}, '%')
       </if>
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}