YL2767 2 meses atrás
pai
commit
b9b32b6fa6

+ 4
- 2
src/main/java/com/th/demo/controller/ware/OutRecordController.java Ver arquivo

@@ -33,6 +33,7 @@ public class OutRecordController {
33 33
                            String tallyPeople,
34 34
                            String ordNo,
35 35
                            String fkComponyName,
36
+                           String remark1,
36 37
                            HttpServletRequest request) {
37 38
 
38 39
         try {
@@ -42,7 +43,7 @@ public class OutRecordController {
42 43
             Date toDate = DateTools.StrToDate(pToDate, "yyyy-MM-dd HH:mm:ss");
43 44
 
44 45
             result = outRecordService.query(page, rows, wareName, stackName, model, materialName, standard, customerName,
45
-                    plateNo,fromDate,toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName);
46
+                    plateNo,fromDate,toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName,remark1);
46 47
         } catch (Exception ex) {
47 48
             ex.printStackTrace();
48 49
             result = JSONTools.toString(ResponseCodeMsg.CODE_EX, ex.getMessage());
@@ -64,6 +65,7 @@ public class OutRecordController {
64 65
                         String tallyPeople,
65 66
                         String ordNo,
66 67
                         String fkComponyName,
68
+                        String remark1,
67 69
                         HttpServletRequest request) {
68 70
 
69 71
         try {
@@ -72,7 +74,7 @@ public class OutRecordController {
72 74
             Date fromDate = DateTools.StrToDate(pFromDate, "yyyy-MM-dd HH:mm:ss");
73 75
             Date toDate = DateTools.StrToDate(pToDate, "yyyy-MM-dd HH:mm:ss");
74 76
             result = outRecordService.queryTotal(page, rows, wareName, stackName, model, materialName, standard, customerName,
75
-                    plateNo,fromDate,toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName);
77
+                    plateNo,fromDate,toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName,remark1);
76 78
         } catch (Exception ex) {
77 79
             ex.printStackTrace();
78 80
             result = JSONTools.toString(ResponseCodeMsg.CODE_EX, ex.getMessage());

+ 4
- 2
src/main/java/com/th/demo/mapping/ware/OutRecordMapper.java Ver arquivo

@@ -22,9 +22,11 @@ public interface OutRecordMapper {
22 22
     List<OutRecord>  select(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
23 23
                             String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
24 24
     List<OutRecord>  selectExpt(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
25
-                            String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
25
+                            String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople,
26
+                             String ordNo, String fkComponyName,List<String> plateNos,List<String> ordNos,String remark1);
26 27
     List<TotalRecord>  selectTotal(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
27
-                                   String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
28
+                                   String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo,
29
+                                   String tallyPeople, String ordNo, String fkComponyName,List<String> plateNos,List<String> ordNos,String remark1);
28 30
 
29 31
     int updateVerifyAccount(String id, String uuid);
30 32
 

+ 9
- 0
src/main/java/com/th/demo/model/ware/InRecord.java Ver arquivo

@@ -62,6 +62,7 @@ public class InRecord {
62 62
 
63 63
     private String fkComponyName;
64 64
     private double invoicePrice;
65
+    private String remark1;
65 66
 
66 67
     public double getInvoicePrice() {
67 68
         return invoicePrice;
@@ -331,4 +332,12 @@ public class InRecord {
331 332
     public void setReceiveAddress(String receiveAddress) {
332 333
         this.receiveAddress = receiveAddress == null ? null : receiveAddress.trim();
333 334
     }
335
+
336
+    public String getRemark1() {
337
+        return remark1;
338
+    }
339
+
340
+    public void setRemark1(String remark1) {
341
+        this.remark1 = remark1;
342
+    }
334 343
 }

+ 9
- 0
src/main/java/com/th/demo/model/ware/OutRecord.java Ver arquivo

@@ -86,6 +86,7 @@ public class OutRecord {
86 86
     private Double storeFee;
87 87
     private Integer inWareDays;
88 88
     private Double unitPrice;
89
+    private String remark1; //垛位备注
89 90
 
90 91
     public Double getUnitPrice() {
91 92
         return unitPrice;
@@ -437,4 +438,12 @@ public class OutRecord {
437 438
     public void setProductionPlace(String productionPlace) {
438 439
         this.productionPlace = productionPlace;
439 440
     }
441
+
442
+    public String getRemark1() {
443
+        return remark1;
444
+    }
445
+
446
+    public void setRemark1(String remark1) {
447
+        this.remark1 = remark1;
448
+    }
440 449
 }

+ 1
- 0
src/main/java/com/th/demo/service/impl/ware/InServiceImpl.java Ver arquivo

@@ -488,6 +488,7 @@ public class InServiceImpl implements InService {
488 488
         inRecord.setOrdNo(store.getOrdNo());
489 489
         inRecord.setCarNo(store.getCarNo());
490 490
         inRecord.setTallyPeople(store.getTallyPeople());
491
+        inRecord.setRemark1(store.getRemark1());
491 492
 
492 493
         return inRecord;
493 494
     }

+ 27
- 5
src/main/java/com/th/demo/service/impl/ware/OutRecordServiceImpl.java Ver arquivo

@@ -20,6 +20,8 @@ import org.springframework.beans.factory.annotation.Autowired;
20 20
 import org.springframework.stereotype.Service;
21 21
 
22 22
 
23
+import java.util.ArrayList;
24
+import java.util.Arrays;
23 25
 import java.util.Date;
24 26
 import java.util.List;
25 27
 
@@ -38,15 +40,25 @@ public class OutRecordServiceImpl implements OutRecordService {
38 40
     int num = 0;
39 41
 
40 42
     public String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
41
-                        String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName) {
43
+                        String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo,
44
+                        String tallyPeople, String ordNo, String fkComponyName,String remark1) {
45
+        List<String> pltNos =new ArrayList<>() ;
46
+        List<String> ordNos =new ArrayList<>() ;
47
+        if (plateNo.indexOf(",") != -1){
48
+            pltNos = Arrays.asList(plateNo.split(","));
49
+        }
50
+        if (ordNo.indexOf(",") != -1){
51
+            ordNos = Arrays.asList(ordNo.split(","));
52
+        }
53
+
42 54
         if(page == -1 && rows == -1){
43 55
             List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard,  customerName,
44
-                    plateNo, fromDate,  toDate,   userId, belongId,carNo, tallyPeople,ordNo,fkComponyName);
56
+                    plateNo, fromDate,  toDate,   userId, belongId,carNo, tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1);
45 57
             result = JSONTools.toStringyyyyMMddHHmmss(list);
46 58
         }else{
47 59
             PageHelper.startPage(page, rows);
48 60
             List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard,  customerName,
49
-                    plateNo, fromDate,  toDate,   userId, belongId,carNo,tallyPeople,ordNo,fkComponyName);
61
+                    plateNo, fromDate,  toDate,   userId, belongId,carNo,tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1);
50 62
             PageInfo<OutRecord> pageInfo = new PageInfo<>(list);
51 63
 //        result = JSONTools.toString(pageInfo);
52 64
             result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);
@@ -55,9 +67,19 @@ public class OutRecordServiceImpl implements OutRecordService {
55 67
         return result;
56 68
     }
57 69
     public String queryTotal(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
58
-                             String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName) {
70
+                             String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo,
71
+                             String tallyPeople, String ordNo, String fkComponyName,String remark1) {
72
+        List<String> pltNos =new ArrayList<>() ;
73
+        List<String> ordNos =new ArrayList<>() ;
74
+        if (plateNo.indexOf(",") != -1){
75
+            pltNos = Arrays.asList(plateNo.split(","));
76
+        }
77
+        if (ordNo.indexOf(",") != -1){
78
+            ordNos = Arrays.asList(ordNo.split(","));
79
+        }
80
+
59 81
         List<TotalRecord> list=outRecordMapper.selectTotal(wareName,stackName,model,materialName,standard,  customerName,
60
-                plateNo,fromDate,toDate,   userId, belongId,carNo,tallyPeople,ordNo,fkComponyName);
82
+                plateNo,fromDate,toDate,   userId, belongId,carNo,tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1);
61 83
         result = JSONTools.toString(list);
62 84
         return result;
63 85
     }

+ 4
- 2
src/main/java/com/th/demo/service/ware/OutRecordService.java Ver arquivo

@@ -5,9 +5,11 @@ import java.util.Date;
5 5
 public interface OutRecordService {
6 6
 
7 7
     String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
8
-                 String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
8
+                 String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople,
9
+                 String ordNo, String fkComponyName,String remark1);
9 10
     String queryTotal(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
10
-                      String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
11
+                      String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople,
12
+                      String ordNo, String fkComponyName,String remark1);
11 13
 
12 14
     String saveVerifyAcc(String json, String accWgt, String accAmt, String invoiceAmt, String accDate, String accReminder, String userId, String belongId);
13 15
 

+ 8
- 8
src/main/resource/localhost/db.properties Ver arquivo

@@ -1,15 +1,15 @@
1
-#jdbc.driverClass=com.mysql.jdbc.Driver
2
-#jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware_mj?useUnicode=true&characterEncoding=utf8
3
-#jdbc.user=root
4
-#jdbc.password=root
5
-
6
-#???????????????????????????????
7 1
 jdbc.driverClass=com.mysql.jdbc.Driver
8
-jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ware_mj?characterEncoding=utf8
2
+jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware_mj?useUnicode=true&characterEncoding=utf8
9 3
 jdbc.user=root
10 4
 jdbc.password=root
11 5
 
6
+#???????????????????????????????
7
+#jdbc.driverClass=com.mysql.jdbc.Driver
8
+#jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ware_mj?characterEncoding=utf8
9
+#jdbc.user=root
10
+#jdbc.password=root
11
+
12 12
 #jdbc.driverClass=com.mysql.jdbc.Driver
13
-#jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/thware?useUnicode=true&characterEncoding=utf8
13
+#jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware_mj?useUnicode=true&characterEncoding=utf8
14 14
 #jdbc.user=root
15 15
 #jdbc.password=122403

+ 7
- 5
src/main/resource/mapper/ware/InRecordMapper.xml Ver arquivo

@@ -33,6 +33,7 @@
33 33
     <result column="ord_no" property="ordNo" jdbcType="VARCHAR" />
34 34
     <result column="tally_people" property="tallyPeople" jdbcType="VARCHAR" />
35 35
     <result column="fk_compony_name" property="fkComponyName" jdbcType="VARCHAR" />
36
+    <result column="remark1" property="remark1" jdbcType="VARCHAR" />
36 37
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
37 38
 
38 39
   </resultMap>
@@ -42,7 +43,7 @@
42 43
   </resultMap>
43 44
   <sql id="Base_Column_List" >
44 45
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
45
-    customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, 
46
+    customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, remark1,
46 47
     cancel_time, cancel_flag, belong_id, plate_no,record_type,receive_address ,wgt_dcn_mtc_cd,edge_ty,production_place
47 48
   </sql>
48 49
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
@@ -69,7 +70,7 @@
69 70
       modify_id, modify_time, cancel_id, 
70 71
       cancel_time, cancel_flag, belong_id, 
71 72
       plate_no,record_type,receive_address
72
-    ,wgt_dcn_mtc_cd,edge_ty,production_place,car_no,ord_no,tally_people,fk_compony_name)
73
+    ,wgt_dcn_mtc_cd,edge_ty,production_place,car_no,ord_no,tally_people,fk_compony_name,reamrk1)
73 74
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
74 75
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
75 76
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
@@ -79,7 +80,7 @@
79 80
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
80 81
     #{plateNo,jdbcType=VARCHAR},#{recordType,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}
81 82
     ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{carNo,jdbcType=VARCHAR}
82
-    ,#{ordNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR})
83
+    ,#{ordNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR},#{remark1,jdbcType=VARCHAR}
83 84
   </insert>
84 85
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.InRecord" >
85 86
     insert into t_ware_in_record
@@ -312,8 +313,9 @@
312 313
       cancel_flag = #{cancelFlag,jdbcType=VARCHAR},
313 314
       belong_id = #{belongId,jdbcType=VARCHAR},
314 315
       plate_no = #{plateNo,jdbcType=VARCHAR},
315
-         record_type = #{recordType,jdbcType=VARCHAR},
316
-    receive_address = #{receiveAddress,jdbcType=VARCHAR}
316
+      record_type = #{recordType,jdbcType=VARCHAR},
317
+      receive_address = #{receiveAddress,jdbcType=VARCHAR},
318
+      remark1 = #{remark1,jdbcType=VARCHAR}
317 319
     where id = #{id,jdbcType=VARCHAR}
318 320
   </update>
319 321
 

+ 34
- 8
src/main/resource/mapper/ware/OutRecordMapper.xml Ver arquivo

@@ -43,6 +43,7 @@
43 43
 
44 44
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
45 45
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
46
+    <result column="remark1" property="remark1" jdbcType="VARCHAR" />
46 47
 
47 48
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
48 49
     <association  column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
@@ -97,7 +98,7 @@
97 98
   </resultMap>
98 99
   <sql id="Base_Column_List" >
99 100
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
100
-    customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, 
101
+    customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, remark1,
101 102
     cancel_time, cancel_flag, belong_id, plate_no,in_id, record_type,back_flag,receive_address,distribution_id,wgt_dcn_mtc_cd,edge_ty,production_place,verify_account_id,unit_price
102 103
   </sql>
103 104
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
@@ -122,7 +123,8 @@
122 123
       modify_id, modify_time, cancel_id, 
123 124
       cancel_time, cancel_flag, belong_id, 
124 125
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
125
-    ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price)
126
+    ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price
127
+    ,remark1)
126 128
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
127 129
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
128 130
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
@@ -132,7 +134,8 @@
132 134
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
133 135
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
134 136
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
135
-    ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE})
137
+    ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE}
138
+    ,#{remark1,jdbcType=VARCHAR})
136 139
   </insert>
137 140
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
138 141
     insert into t_ware_out_record
@@ -370,7 +373,8 @@
370 373
           back_flag =  #{backFlag,jdbcType=VARCHAR},
371 374
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
372 375
       distribution_id =  #{distributionId,jdbcType=VARCHAR},
373
-        unit_price =  #{unitPrice,jdbcType=DOUBLE}
376
+        unit_price =  #{unitPrice,jdbcType=DOUBLE},
377
+        remark1 =  #{remark1,jdbcType=VARCHAR}
374 378
     where id = #{id,jdbcType=VARCHAR}
375 379
   </update>
376 380
 
@@ -434,7 +438,12 @@
434 438
     <if test="param6 != null and param6 != ''" >
435 439
       and t.customer_name = #{param6,jdbcType=VARCHAR}
436 440
     </if>
437
-    and t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
441
+    and (t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
442
+    <if test="param16 != null and param16.size() !=0" >
443
+      OR t.plate_no IN <foreach  item="item" collection="param16" index="index"  open="(" separator="," close=")">
444
+      #{item,jdbcType=VARCHAR}  </foreach>
445
+    </if>
446
+    )
438 447
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
439 448
     and t.distribution_id = p.id
440 449
     and t.plate_no = c.plate_no
@@ -446,8 +455,14 @@
446 455
             and  a.user_id = #{param10,jdbcType=VARCHAR}  )
447 456
             )  or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
448 457
     and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
449
-    and ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
458
+    and (ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
459
+    <if test="param17 != null and param17.size() !=0" >
460
+      OR ifnull(c.ord_no,'*') IN <foreach  item="item" collection="param17" index="index"  open="(" separator="," close=")">
461
+      #{item,jdbcType=VARCHAR}  </foreach>
462
+    </if>
463
+    )
450 464
     and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
465
+    and ifnull(t.remark1,'*') like concat('%',#{param18,jdbcType=VARCHAR},'%')
451 466
     and ifnull(t.back_flag,0) &lt;> '1'
452 467
     order by t.add_time desc
453 468
   </select>
@@ -468,7 +483,12 @@
468 483
     <if test="param6 != null and param6 != ''" >
469 484
       and t.customer_name  = #{param6,jdbcType=VARCHAR}
470 485
     </if>
471
-    and t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
486
+    and (t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
487
+        <if test="param16 != null and param16.size() !=0" >
488
+         OR t.plate_no IN <foreach  item="item" collection="param16" index="index"  open="(" separator="," close=")">
489
+         #{item,jdbcType=VARCHAR}  </foreach>
490
+        </if>
491
+        )
472 492
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
473 493
     and t.distribution_id = p.id
474 494
     and t.plate_no = c.plate_no
@@ -480,8 +500,14 @@
480 500
     and  a.user_id = #{param10,jdbcType=VARCHAR}  )
481 501
     )  or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
482 502
     and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
483
-    and ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
503
+    and (ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
504
+        <if test="param17 != null and param17.size() !=0" >
505
+        OR ifnull(c.ord_no,'*') IN <foreach  item="item" collection="param17" index="index"  open="(" separator="," close=")">
506
+        #{item,jdbcType=VARCHAR}  </foreach>
507
+        </if>
508
+        )
484 509
     and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
510
+    and ifnull(t.remark1,'*') like concat('%',#{param18,jdbcType=VARCHAR},'%')
485 511
     and ifnull(t.back_flag,0) &lt;> '1'
486 512
     order by t.add_time desc
487 513
   </select>

Carregando…
Cancelar
Salvar