Bladeren bron

费用模糊搜索

lazhaoqian 4 jaren geleden
bovenliggende
commit
34bfec358b

+ 6 - 6
blade-service/blade-client/src/main/java/org/springblade/client/fees/mapper/FeesDescMapper.xml

@@ -33,22 +33,22 @@
             and id = #{FeesDesc.id}
         </if>
         <if test="FeesDesc.code!=null and FeesDesc.code != ''">
-            and code = #{FeesDesc.code}
+            and code like CONCAT(CONCAT('%', #{FeesDesc.code}), '%')
         </if>
         <if test="FeesDesc.cname!=null and FeesDesc.cname != ''">
-            and cname = #{FeesDesc.cname}
+            and cname like CONCAT(CONCAT('%', #{FeesDesc.cname}), '%')
         </if>
         <if test="FeesDesc.fcyno!=null and FeesDesc.fcyno != ''">
-            and fcyno = #{FeesDesc.fcyno}
+            and fcyno like CONCAT(CONCAT('%', #{FeesDesc.fcyno}), '%')
         </if>
         <if test="FeesDesc.unitno!=null and FeesDesc.unitno != ''">
-            and unitno = #{FeesDesc.unitno}
+            and unitno like CONCAT(CONCAT('%', #{FeesDesc.unitno}), '%')
         </if>
         <if test="FeesDesc.dc!=null and FeesDesc.dc != ''">
-            and dc = #{FeesDesc.dc}
+            and dc like CONCAT(CONCAT('%', #{FeesDesc.dc}), '%')
         </if>
         <if test="FeesDesc.remarks!=null and FeesDesc.remarks != ''">
-            and remarks = #{FeesDesc.remarks}
+            and remarks like CONCAT(CONCAT('%', #{FeesDesc.remarks}), '%')
         </if>
         <if test="FeesDesc.version!=null and FeesDesc.version != ''">
             and version = #{FeesDesc.version}