Преглед на файлове

修改部分查询条件改为模糊查询

阿伏兔 преди 4 години
родител
ревизия
e0e2228429

+ 2 - 2
ruoyi-warehouse/src/main/resources/mapper/basicData/TCorpsMapper.xml

@@ -49,11 +49,11 @@
         <include refid="selectTCorpsVo"/>
         <where>
             <if test="fTypeid != null  and fTypeid != ''">and f_typeid = #{fTypeid}</if>
-            <if test="fNo != null  and fNo != ''">and f_no = #{fNo}</if>
+            <if test="fNo != null  and fNo != ''">and f_no like concat('%', #{fNo}, '%')</if>
             <if test="fName != null  and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
             <if test="fCname != null  and fCname != ''">and f_cname like concat('%', #{fCname}, '%')</if>
             <if test="fEname != null  and fEname != ''">and f_ename like concat('%', #{fEname}, '%')</if>
-            <if test="fTel != null  and fTel != ''">and f_tel = #{fTel}</if>
+            <if test="fTel != null  and fTel != ''">and f_tel like concat('%', #{fTel}, '%')</if>
             <if test="fFax != null  and fFax != ''">and f_fax = #{fFax}</if>
             <if test="fEmail != null  and fEmail != ''">and f_email = #{fEmail}</if>
             <if test="fManage != null  and fManage != ''">and f_manage = #{fManage}</if>

+ 2 - 2
ruoyi-warehouse/src/main/resources/mapper/basicData/TFeesMapper.xml

@@ -27,11 +27,11 @@
     <select id="selectTFeesList" parameterType="TFees" resultMap="TFeesResult">
         <include refid="selectTFeesVo"/>
         <where>
-            <if test="fNo != null  and fNo != ''">and f_no = #{fNo}</if>
+            <if test="fNo != null  and fNo != ''">and f_no like concat('%', #{fNo}, '%')</if>
             <if test="fName != null  and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
             <if test="fFeetype != null  and fFeetype != ''">and f_feetype = #{fFeetype}</if>
             <if test="fFeeunitid != null ">and f_feeunitid = #{fFeeunitid}</if>
-            <if test="fCurrency != null  and fCurrency != ''">and f_currency = #{fCurrency}</if>
+            <if test="fCurrency != null  and fCurrency != ''">and f_currency like concat('%', #{fCurrency}, '%')</if>
             <if test="fStatus != null  and fStatus != ''">and f_status = #{fStatus}</if>
         </where>
     </select>

+ 6 - 6
ruoyi-warehouse/src/main/resources/mapper/basicData/TGoodsMapper.xml

@@ -32,13 +32,13 @@
         <include refid="selectTGoodsVo"/>
         <where>
             <if test="fTypeid != null  and fTypeid != ''">and f_typeid = #{fTypeid}</if>
-            <if test="fNo != null  and fNo != ''">and f_no = #{fNo}</if>
+            <if test="fNo != null  and fNo != ''">and f_no like concat('%', #{fNo}, '%')</if>
             <if test="fName != null  and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
-            <if test="fEnam != null  and fEnam != ''">and f_enam = #{fEnam}</if>
-            <if test="fSpecs != null  and fSpecs != ''">and f_specs = #{fSpecs}</if>
-            <if test="fPackagespecs != null ">and f_packagespecs = #{fPackagespecs}</if>
-            <if test="fColor != null  and fColor != ''">and f_color = #{fColor}</if>
-            <if test="fHscode != null  and fHscode != ''">and f_hscode = #{fHscode}</if>
+            <if test="fEnam != null  and fEnam != ''">and f_enam like concat('%', #{fEnam}, '%')</if>
+            <if test="fSpecs != null  and fSpecs != ''">and f_specs like concat('%', #{fSpecs}, '%')</if>
+            <if test="fPackagespecs != null ">and f_packagespecs like concat('%', #{fPackagespecs}, '%')</if>
+            <if test="fColor != null  and fColor != ''">and f_color like concat('%', #{fColor}, '%')</if>
+            <if test="fHscode != null  and fHscode != ''">and f_hscode like concat('%', #{fHscode}, '%')</if>
             <if test="fPackageid != null ">and f_packageid = #{fPackageid}</if>
             <if test="fStatus != null  and fStatus != ''">and f_status = #{fStatus}</if>
         </where>

+ 3 - 3
ruoyi-warehouse/src/main/resources/mapper/basicData/TWarehouseMapper.xml

@@ -26,10 +26,10 @@
     <select id="selectTWarehouseList" parameterType="TWarehouse" resultMap="TWarehouseResult">
         <include refid="selectTWarehouseVo"/>
         <where>
-            <if test="fNo != null  and fNo != ''"> and f_no = #{fNo}</if>
+            <if test="fNo != null  and fNo != ''"> and f_no like concat('%', #{fNo}, '%')</if>
             <if test="fName != null  and fName != ''"> and f_name like concat('%', #{fName}, '%')</if>
-            <if test="fAddr != null  and fAddr != ''"> and f_addr = #{fAddr}</if>
-            <if test="fTotalgross != null "> and f_totalgross = #{fTotalgross}</if>
+            <if test="fAddr != null  and fAddr != ''"> and f_addr like concat('%', #{fAddr}, '%')</if>
+            <if test="fTotalgross != null "> and f_totalgross like concat('%', #{fTotalgross}, '%')</if>
             <if test="fStatus != null  and fStatus != ''"> and f_status = #{fStatus}</if>
         </where>
     </select>