Procházet zdrojové kódy

添加公司名称查询

lyhzzz před 2 roky
rodič
revize
4f12c8a8a2

+ 1 - 0
src/main/java/com/fdkankan/sale/vo/request/RepairParam.java

@@ -10,6 +10,7 @@ public class RepairParam extends RequestBase {
     private Integer statusParam = 0;
     private String cameraSnCode;
     private String customerName;
+    private String companyName;
     private String trackingNum;
 
     private String repairId;

+ 9 - 0
src/main/resources/mapper/sale/RepairMapper.xml

@@ -27,6 +27,9 @@
         <if test="param.customerName != null and param.customerName != ''">
             and c.customer_name like  concat ('%',#{param.customerName},'%')
         </if>
+        <if test="param.companyName != null and param.companyName != ''">
+            and c.company_name like  concat ('%',#{param.companyName},'%')
+        </if>
         <if test="param.startTime != null and param.startTime != ''">
             and r.create_time BETWEEN #{param.startTime} and #{param.endTime}
         </if>
@@ -121,6 +124,9 @@
         <if test="param.customerName != null and param.customerName != ''">
             and c.customer_name like  concat ('%',#{param.customerName},'%')
         </if>
+        <if test="param.companyName != null and param.companyName != ''">
+            and c.company_name like  concat ('%',#{param.companyName},'%')
+        </if>
         order by r.create_time desc
     </select>
 
@@ -158,6 +164,9 @@
         <if test="param.customerName != null and param.customerName != ''">
             and c.customer_name like  concat ('%',#{param.customerName},'%')
         </if>
+        <if test="param.companyName != null and param.companyName != ''">
+            and c.company_name like  concat ('%',#{param.companyName},'%')
+        </if>
         <if test="param.saleId != null ">
             and o.sys_user_id = #{param.saleId}
         </if>