Bladeren bron

1.入库明细表单新增查询条件"合约号"

2.出库明细表单新增查询条件"合约号"
dw 3 maanden geleden
bovenliggende
commit
adb134f4c2

+ 2
- 1
src/main/java/com/th/demo/controller/ware/InRecordController.java Bestand weergeven

@@ -36,6 +36,7 @@ public class InRecordController {
36 36
                         String tallyPeople,
37 37
                         String fkComponyName,
38 38
                         String remark1,
39
+                        String contractNo,
39 40
                         HttpServletRequest request) {
40 41
 
41 42
         try {
@@ -44,7 +45,7 @@ public class InRecordController {
44 45
             Date fromDate2 = DateTools.StrToDate(fromDate, "yyyy-MM-dd HH:mm:ss");
45 46
             Date toDate2 = DateTools.StrToDate(toDate, "yyyy-MM-dd HH:mm:ss");
46 47
             result = inRecordService.query(page, rows, wareName, stackName, model, materialName, standard, customerName,
47
-                    plateNo,fromDate2,toDate2,userId, belongId,ordNo,carNo,tallyPeople,fkComponyName,remark1);
48
+                    plateNo,fromDate2,toDate2,userId, belongId,ordNo,carNo,tallyPeople,fkComponyName,remark1,contractNo);
48 49
         } catch (Exception ex) {
49 50
             ex.printStackTrace();
50 51
             result = JSONTools.toString(ResponseCodeMsg.CODE_EX, ex.getMessage());

+ 2
- 1
src/main/java/com/th/demo/controller/ware/OutRecordController.java Bestand weergeven

@@ -34,6 +34,7 @@ public class OutRecordController {
34 34
                            String ordNo,
35 35
                            String fkComponyName,
36 36
                            String remark1,
37
+                           String contractNo,
37 38
                            HttpServletRequest request) {
38 39
 
39 40
         try {
@@ -43,7 +44,7 @@ public class OutRecordController {
43 44
             Date toDate = DateTools.StrToDate(pToDate, "yyyy-MM-dd HH:mm:ss");
44 45
 
45 46
             result = outRecordService.query(page, rows, wareName, stackName, model, materialName, standard, customerName,
46
-                    plateNo,fromDate,toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName,remark1);
47
+                    plateNo,fromDate,toDate, userId, belongId,carNo,tallyPeople,ordNo,fkComponyName,remark1,contractNo);
47 48
         } catch (Exception ex) {
48 49
             ex.printStackTrace();
49 50
             result = JSONTools.toString(ResponseCodeMsg.CODE_EX, ex.getMessage());

+ 1
- 1
src/main/java/com/th/demo/mapping/ware/InRecordMapper.java Bestand weergeven

@@ -25,7 +25,7 @@ public interface InRecordMapper {
25 25
     List<InRecord> select(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
26 26
                           String plateNo, Date fromDate,
27 27
                           Date toDate, String userId, String belongId, String ordNo, String carNo, String tallyPeople, String fkComponyName
28
-                            ,List<String> plateNos,List<String> ordNos,String remark1);
28
+                            ,List<String> plateNos,List<String> ordNos,String remark1,String contractNo,List<String> contractNos);
29 29
 
30 30
     int updateIn(InRecord inRecord);
31 31
 

+ 5
- 2
src/main/java/com/th/demo/mapping/ware/OutRecordMapper.java Bestand weergeven

@@ -2,6 +2,7 @@ package com.th.demo.mapping.ware;
2 2
 
3 3
 import com.th.demo.model.ware.OutRecord;
4 4
 import com.th.demo.model.ware.TotalRecord;
5
+import org.apache.ibatis.annotations.Param;
5 6
 
6 7
 import java.util.Date;
7 8
 import java.util.List;
@@ -21,9 +22,11 @@ public interface OutRecordMapper {
21 22
 
22 23
     List<OutRecord>  select(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
23 24
                             String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople, String ordNo, String fkComponyName);
25
+
24 26
     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,
26
-                             String ordNo, String fkComponyName,List<String> plateNos,List<String> ordNos,String remark1);
27
+                                String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople,
28
+                                String ordNo, String fkComponyName, List<String> plateNos, List<String> ordNos, String remark1,String contractNo,List<String> contractNos);
29
+
27 30
     List<TotalRecord>  selectTotal(String wareName, String stackName, String layer, String materialName, String standard, String customerName,
28 31
                                    String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo,
29 32
                                    String tallyPeople, String ordNo, String fkComponyName,List<String> plateNos,List<String> ordNos,String remark1);

+ 7
- 3
src/main/java/com/th/demo/service/impl/ware/InRecordServiceImpl.java Bestand weergeven

@@ -35,25 +35,29 @@ public class InRecordServiceImpl implements InRecordService {
35 35
     public String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
36 36
                         String plateNo, Date fromDate,
37 37
                         Date toDate, String userId, String belongId,
38
-                        String ordNo, String carNo, String tallyPeople, String fkComponyName,String remark1) {
38
+                        String ordNo, String carNo, String tallyPeople, String fkComponyName,String remark1,String contractNo) {
39 39
         List<String> pltNos =new ArrayList<>() ;
40 40
         List<String> ordNos =new ArrayList<>() ;
41
+        List<String> contractNos =new ArrayList<>() ;
41 42
         if (plateNo.indexOf(",") != -1){
42 43
             pltNos = Arrays.asList(plateNo.split(","));
43 44
         }
45
+        if (contractNo.indexOf(",") != -1){
46
+            contractNos = Arrays.asList(contractNo.split(","));
47
+        }
44 48
         if (ordNo.indexOf(",") != -1){
45 49
             ordNos = Arrays.asList(ordNo.split(","));
46 50
         }
47 51
 
48 52
         if(page == -1 && rows == -1){
49 53
             List<InRecord> list=inRecordMapper.select(wareName,stackName,model,materialName,standard,    customerName,
50
-                    plateNo, fromDate,toDate , userId, belongId,ordNo,carNo,tallyPeople,fkComponyName, pltNos,ordNos,remark1);
54
+                    plateNo, fromDate,toDate , userId, belongId,ordNo,carNo,tallyPeople,fkComponyName, pltNos,ordNos,remark1,contractNo,contractNos);
51 55
             result = JSONTools.toStringyyyyMMddHHmmss(list);
52 56
         }else{
53 57
             PageHelper.startPage(page, rows);
54 58
 
55 59
             List<InRecord> list=inRecordMapper.select(wareName,stackName,model,materialName,standard,    customerName,
56
-                    plateNo, fromDate,toDate , userId, belongId, ordNo, carNo,tallyPeople,fkComponyName, pltNos,ordNos,remark1);
60
+                    plateNo, fromDate,toDate , userId, belongId, ordNo, carNo,tallyPeople,fkComponyName, pltNos,ordNos,remark1,contractNo,contractNos);
57 61
 
58 62
             PageInfo<InRecord> pageInfo = new PageInfo<>(list);
59 63
             result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);

+ 7
- 3
src/main/java/com/th/demo/service/impl/ware/OutRecordServiceImpl.java Bestand weergeven

@@ -45,24 +45,28 @@ public class OutRecordServiceImpl implements OutRecordService {
45 45
 
46 46
     public String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
47 47
                         String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo,
48
-                        String tallyPeople, String ordNo, String fkComponyName,String remark1) {
48
+                        String tallyPeople, String ordNo, String fkComponyName,String remark1,String contractNo) {
49 49
         List<String> pltNos =new ArrayList<>() ;
50 50
         List<String> ordNos =new ArrayList<>() ;
51
+        List<String> contractNos =new ArrayList<>() ;
51 52
         if (plateNo.indexOf(",") != -1){
52 53
             pltNos = Arrays.asList(plateNo.split(","));
53 54
         }
55
+        if (contractNo.indexOf(",") != -1){
56
+            contractNos = Arrays.asList(contractNo.split(","));
57
+        }
54 58
         if (ordNo.indexOf(",") != -1){
55 59
             ordNos = Arrays.asList(ordNo.split(","));
56 60
         }
57 61
 
58 62
         if(page == -1 && rows == -1){
59 63
             List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard,  customerName,
60
-                    plateNo, fromDate,  toDate,   userId, belongId,carNo, tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1);
64
+                    plateNo, fromDate,  toDate,   userId, belongId,carNo, tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1,contractNo,contractNos);
61 65
             result = JSONTools.toStringyyyyMMddHHmmss(list);
62 66
         }else{
63 67
             PageHelper.startPage(page, rows);
64 68
             List<OutRecord> list=outRecordMapper.selectExpt(wareName,stackName,model,materialName,standard,  customerName,
65
-                    plateNo, fromDate,  toDate,   userId, belongId,carNo,tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1);
69
+                    plateNo, fromDate,  toDate,   userId, belongId,carNo,tallyPeople,ordNo,fkComponyName, pltNos,ordNos,remark1,contractNo,contractNos);
66 70
             PageInfo<OutRecord> pageInfo = new PageInfo<>(list);
67 71
 //        result = JSONTools.toString(pageInfo);
68 72
             result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);

+ 1
- 1
src/main/java/com/th/demo/service/ware/InRecordService.java Bestand weergeven

@@ -5,7 +5,7 @@ import java.util.Date;
5 5
 public interface InRecordService {
6 6
     String query(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
7 7
                  String plateNo, Date fromDate,
8
-                 Date toDate, String userId, String belongId, String ordNo, String carNo, String tallyPeople, String fkComponyName,String remark1);
8
+                 Date toDate, String userId, String belongId, String ordNo, String carNo, String tallyPeople, String fkComponyName,String remark1,String contractNo);
9 9
 
10 10
     String updateIn(String json, String userId, String belongId);
11 11
 

+ 1
- 1
src/main/java/com/th/demo/service/ware/OutRecordService.java Bestand weergeven

@@ -6,7 +6,7 @@ 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 8
                  String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople,
9
-                 String ordNo, String fkComponyName,String remark1);
9
+                 String ordNo, String fkComponyName,String remark1,String contractNo);
10 10
     String queryTotal(int page, int rows, String wareName, String stackName, String model, String materialName, String standard, String customerName,
11 11
                       String plateNo, Date fromDate, Date toDate, String userId, String belongId, String carNo, String tallyPeople,
12 12
                       String ordNo, String fkComponyName,String remark1);

+ 6
- 0
src/main/resource/mapper/ware/InRecordMapper.xml Bestand weergeven

@@ -346,6 +346,12 @@
346 346
             #{item,jdbcType=VARCHAR}  </foreach>
347 347
             </if>
348 348
           )
349
+      and (t.contract_no like concat('%',#{param19,jdbcType=VARCHAR},'%')
350
+      <if test="param20 != null and param20.size() !=0" >
351
+          OR t.contract_no IN <foreach  item="item" collection="param20" index="index"  open="(" separator="," close=")">
352
+          #{item,jdbcType=VARCHAR}  </foreach>
353
+      </if>
354
+      )
349 355
       and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
350 356
     and t.cancel_flag = '0'
351 357
     and (ifnull(t.ord_no,'*') like concat('%',#{param12,jdbcType=VARCHAR},'%')

+ 6
- 0
src/main/resource/mapper/ware/OutRecordMapper.xml Bestand weergeven

@@ -490,6 +490,12 @@
490 490
          #{item,jdbcType=VARCHAR}  </foreach>
491 491
         </if>
492 492
         )
493
+      and (t.contract_no like concat('%',#{param19,jdbcType=VARCHAR},'%')
494
+      <if test="param20 != null and param20.size() !=0" >
495
+          OR t.contract_no IN <foreach  item="item" collection="param20" index="index"  open="(" separator="," close=")">
496
+          #{item,jdbcType=VARCHAR}  </foreach>
497
+      </if>
498
+      )
493 499
     and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
494 500
     and t.distribution_id = p.id
495 501
     and t.plate_no = c.plate_no

Laden…
Annuleren
Opslaan