YL2767 2 달 전
부모
커밋
b9b32b6fa6

+ 4
- 2
src/main/java/com/th/demo/controller/ware/OutRecordController.java 파일 보기

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

+ 4
- 2
src/main/java/com/th/demo/mapping/ware/OutRecordMapper.java 파일 보기

22
     List<OutRecord>  select(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
22
     List<OutRecord>  select(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
23
                             String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
23
                             String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
24
     List<OutRecord>  selectExpt(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
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
     List<TotalRecord>  selectTotal(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
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
     int updateVerifyAccount(String id, String uuid);
31
     int updateVerifyAccount(String id, String uuid);
30
 
32
 

+ 9
- 0
src/main/java/com/th/demo/model/ware/InRecord.java 파일 보기

62
 
62
 
63
     private String fkComponyName;
63
     private String fkComponyName;
64
     private double invoicePrice;
64
     private double invoicePrice;
65
+    private String remark1;
65
 
66
 
66
     public double getInvoicePrice() {
67
     public double getInvoicePrice() {
67
         return invoicePrice;
68
         return invoicePrice;
331
     public void setReceiveAddress(String receiveAddress) {
332
     public void setReceiveAddress(String receiveAddress) {
332
         this.receiveAddress = receiveAddress == null ? null : receiveAddress.trim();
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 파일 보기

86
     private Double storeFee;
86
     private Double storeFee;
87
     private Integer inWareDays;
87
     private Integer inWareDays;
88
     private Double unitPrice;
88
     private Double unitPrice;
89
+    private String remark1; //垛位备注
89
 
90
 
90
     public Double getUnitPrice() {
91
     public Double getUnitPrice() {
91
         return unitPrice;
92
         return unitPrice;
437
     public void setProductionPlace(String productionPlace) {
438
     public void setProductionPlace(String productionPlace) {
438
         this.productionPlace = productionPlace;
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 파일 보기

488
         inRecord.setOrdNo(store.getOrdNo());
488
         inRecord.setOrdNo(store.getOrdNo());
489
         inRecord.setCarNo(store.getCarNo());
489
         inRecord.setCarNo(store.getCarNo());
490
         inRecord.setTallyPeople(store.getTallyPeople());
490
         inRecord.setTallyPeople(store.getTallyPeople());
491
+        inRecord.setRemark1(store.getRemark1());
491
 
492
 
492
         return inRecord;
493
         return inRecord;
493
     }
494
     }

+ 27
- 5
src/main/java/com/th/demo/service/impl/ware/OutRecordServiceImpl.java 파일 보기

20
 import org.springframework.stereotype.Service;
20
 import org.springframework.stereotype.Service;
21
 
21
 
22
 
22
 
23
+import java.util.ArrayList;
24
+import java.util.Arrays;
23
 import java.util.Date;
25
 import java.util.Date;
24
 import java.util.List;
26
 import java.util.List;
25
 
27
 
38
     int num = 0;
40
     int num = 0;
39
 
41
 
40
     public String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
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
         if(page == -1 && rows == -1){
54
         if(page == -1 && rows == -1){
43
             List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard,  customerName,
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
             result = JSONTools.toStringyyyyMMddHHmmss(list);
57
             result = JSONTools.toStringyyyyMMddHHmmss(list);
46
         }else{
58
         }else{
47
             PageHelper.startPage(page, rows);
59
             PageHelper.startPage(page, rows);
48
             List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard,  customerName,
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
             PageInfo<OutRecord> pageInfo = new PageInfo<>(list);
62
             PageInfo<OutRecord> pageInfo = new PageInfo<>(list);
51
 //        result = JSONTools.toString(pageInfo);
63
 //        result = JSONTools.toString(pageInfo);
52
             result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);
64
             result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);
55
         return result;
67
         return result;
56
     }
68
     }
57
     public String queryTotal(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
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
         List<TotalRecord> list=outRecordMapper.selectTotal(wareName,stackName,model,materialName,standard,  customerName,
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
         result = JSONTools.toString(list);
83
         result = JSONTools.toString(list);
62
         return result;
84
         return result;
63
     }
85
     }

+ 4
- 2
src/main/java/com/th/demo/service/ware/OutRecordService.java 파일 보기

5
 public interface OutRecordService {
5
 public interface OutRecordService {
6
 
6
 
7
     String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
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
     String queryTotal(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
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
     String saveVerifyAcc(String json, String accWgt, String accAmt, String invoiceAmt, String accDate, String accReminder, String userId, String belongId);
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 파일 보기

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
 jdbc.driverClass=com.mysql.jdbc.Driver
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
 jdbc.user=root
3
 jdbc.user=root
10
 jdbc.password=root
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
 #jdbc.driverClass=com.mysql.jdbc.Driver
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
 #jdbc.user=root
14
 #jdbc.user=root
15
 #jdbc.password=122403
15
 #jdbc.password=122403

+ 7
- 5
src/main/resource/mapper/ware/InRecordMapper.xml 파일 보기

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

+ 34
- 8
src/main/resource/mapper/ware/OutRecordMapper.xml 파일 보기

43
 
43
 
44
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
44
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
45
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
45
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
46
+    <result column="remark1" property="remark1" jdbcType="VARCHAR" />
46
 
47
 
47
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
48
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
48
     <association  column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
49
     <association  column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
97
   </resultMap>
98
   </resultMap>
98
   <sql id="Base_Column_List" >
99
   <sql id="Base_Column_List" >
99
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
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
     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
     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
   </sql>
103
   </sql>
103
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
104
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
122
       modify_id, modify_time, cancel_id, 
123
       modify_id, modify_time, cancel_id, 
123
       cancel_time, cancel_flag, belong_id, 
124
       cancel_time, cancel_flag, belong_id, 
124
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
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
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
128
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
127
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
129
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
128
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
130
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
132
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
134
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
133
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
135
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
134
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
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
   </insert>
139
   </insert>
137
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
140
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
138
     insert into t_ware_out_record
141
     insert into t_ware_out_record
370
           back_flag =  #{backFlag,jdbcType=VARCHAR},
373
           back_flag =  #{backFlag,jdbcType=VARCHAR},
371
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
374
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
372
       distribution_id =  #{distributionId,jdbcType=VARCHAR},
375
       distribution_id =  #{distributionId,jdbcType=VARCHAR},
373
-        unit_price =  #{unitPrice,jdbcType=DOUBLE}
376
+        unit_price =  #{unitPrice,jdbcType=DOUBLE},
377
+        remark1 =  #{remark1,jdbcType=VARCHAR}
374
     where id = #{id,jdbcType=VARCHAR}
378
     where id = #{id,jdbcType=VARCHAR}
375
   </update>
379
   </update>
376
 
380
 
434
     <if test="param6 != null and param6 != ''" >
438
     <if test="param6 != null and param6 != ''" >
435
       and t.customer_name = #{param6,jdbcType=VARCHAR}
439
       and t.customer_name = #{param6,jdbcType=VARCHAR}
436
     </if>
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
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
447
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
439
     and t.distribution_id = p.id
448
     and t.distribution_id = p.id
440
     and t.plate_no = c.plate_no
449
     and t.plate_no = c.plate_no
446
             and  a.user_id = #{param10,jdbcType=VARCHAR}  )
455
             and  a.user_id = #{param10,jdbcType=VARCHAR}  )
447
             )  or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
456
             )  or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
448
     and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
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
     and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
464
     and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
465
+    and ifnull(t.remark1,'*') like concat('%',#{param18,jdbcType=VARCHAR},'%')
451
     and ifnull(t.back_flag,0) &lt;> '1'
466
     and ifnull(t.back_flag,0) &lt;> '1'
452
     order by t.add_time desc
467
     order by t.add_time desc
453
   </select>
468
   </select>
468
     <if test="param6 != null and param6 != ''" >
483
     <if test="param6 != null and param6 != ''" >
469
       and t.customer_name  = #{param6,jdbcType=VARCHAR}
484
       and t.customer_name  = #{param6,jdbcType=VARCHAR}
470
     </if>
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
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
492
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
473
     and t.distribution_id = p.id
493
     and t.distribution_id = p.id
474
     and t.plate_no = c.plate_no
494
     and t.plate_no = c.plate_no
480
     and  a.user_id = #{param10,jdbcType=VARCHAR}  )
500
     and  a.user_id = #{param10,jdbcType=VARCHAR}  )
481
     )  or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
501
     )  or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
482
     and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
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
     and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
509
     and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
510
+    and ifnull(t.remark1,'*') like concat('%',#{param18,jdbcType=VARCHAR},'%')
485
     and ifnull(t.back_flag,0) &lt;> '1'
511
     and ifnull(t.back_flag,0) &lt;> '1'
486
     order by t.add_time desc
512
     order by t.add_time desc
487
   </select>
513
   </select>

Loading…
취소
저장