Bladeren bron

查询条件

LiuCheng 3 maanden geleden
bovenliggende
commit
56bf623e99

+ 4
- 0
src/main/java/com/th/demo/controller/ware/StoreController.java Bestand weergeven

@@ -102,6 +102,8 @@ public class StoreController {
102 102
                               String plateNo,
103 103
                               String fromDate,
104 104
                               String toDate,
105
+                              String fkcustmerName,
106
+                              String ordNo,
105 107
                               HttpServletRequest request) {
106 108
 
107 109
         try {
@@ -117,6 +119,8 @@ public class StoreController {
117 119
                     plateNo,
118 120
                     fromDate,
119 121
                     toDate,
122
+                    fkcustmerName,
123
+                    ordNo,
120 124
                     userId,
121 125
                     belongId);
122 126
         } catch (Exception ex) {

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

@@ -31,7 +31,9 @@ public interface StoreMapper {
31 31
 
32 32
     Store selectByOutId(String id,String noUserParam,String userId, String belongId);
33 33
 
34
-    List<Store> selectStore(String wareName, String stackName, String model, String materialName, String standard,   String customerName, String fromDate,   String toDate, String userId,String belongId,String plateNo);
34
+    List<Store> selectStore(String wareName, String stackName, String model, String materialName, String standard,
35
+                            String customerName, String fromDate,   String toDate, String userId,
36
+                            String belongId,String plateNo,String fkcustmerName,String ordNo);
35 37
 
36 38
     int updateForUpDownByLayer(String wareName, String stackName, String userId, String belongId, int min, int max, int i);
37 39
 

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

@@ -436,6 +436,7 @@ public class InServiceImpl implements InService {
436 436
         inRecord.setOrdNo(store.getOrdNo());
437 437
         inRecord.setCarNo(store.getCarNo());
438 438
         inRecord.setTallyPeople(store.getTallyPeople());
439
+        inRecord.setContractNo(store.getContractNo());
439 440
 
440 441
         return inRecord;
441 442
     }

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

@@ -310,7 +310,7 @@ public class OutServiceImpl implements OutService {
310 310
             outRecord.setInvoicePrice(price.getOrdPrice());
311 311
             outRecord.setUnitPrice(price.getOrdPrice());
312 312
         }
313
-
313
+        outRecord.setContractNo(store.getContractNo());
314 314
 
315 315
 
316 316
         return outRecord;

+ 15
- 4
src/main/java/com/th/demo/service/impl/ware/StoreServiceImpl.java Bestand weergeven

@@ -82,12 +82,23 @@ public class StoreServiceImpl implements StoreService {
82 82
                              String plateNo,
83 83
                              String fromDate,
84 84
                              String toDate,
85
+                             String fkcustmerName,
86
+                             String ordNo,
85 87
                              String userId,
86 88
                              String belongId) {
87
-        PageHelper.startPage(page, rows);
88
-        List<Store> list=storeMapper.selectStore(wareName,stackName,model,materialName,standard,    customerName,fromDate, toDate,  userId,belongId, plateNo);
89
-        PageInfo<Store> pageInfo = new PageInfo<>(list);
90
-        result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);
89
+        if(page == -1 && rows == -1){
90
+            List<Store> list=storeMapper.selectStore(wareName,stackName,model,materialName,standard,
91
+                    customerName,fromDate, toDate,  userId,belongId, plateNo,fkcustmerName,ordNo);
92
+            result = JSONTools.toStringyyyyMMddHHmmss(list);
93
+        }else {
94
+            PageHelper.startPage(page, rows);
95
+
96
+            List<Store> list=storeMapper.selectStore(wareName,stackName,model,materialName,standard,
97
+                    customerName,fromDate, toDate,  userId,belongId, plateNo,fkcustmerName,ordNo);
98
+            PageInfo<Store> pageInfo = new PageInfo<>(list);
99
+            result = JSONTools.toStringyyyyMMddHHmmss(pageInfo);
100
+        }
101
+
91 102
         return result;
92 103
     }
93 104
 

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

@@ -11,7 +11,10 @@ public interface StoreService {
11 11
     
12 12
     String modify(String json, String userId, String belongId);
13 13
 
14
-    String queryStore(int page,int rows,String wareName,String stackName,String model,String materialName,String standard, String customerName, String plateNo,String fromDate,  String toDate, String userId,String belongId);
14
+    String queryStore(int page,int rows,String wareName,String stackName,String model,String materialName,
15
+                      String standard, String customerName, String plateNo,String fromDate,
16
+                      String toDate, String fkcustmerName,String ordNo,
17
+                      String userId,String belongId);
15 18
 
16 19
     String modifyCustomer(String id,String customerNameOld,String customerNameNew);
17 20
 

+ 2
- 2
src/main/resource/localhost/db.properties Bestand weergeven

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

+ 4
- 1
src/main/resource/mapper/ware/StoreMapper.xml Bestand weergeven

@@ -427,11 +427,12 @@ update t_ware_store t set t.layer =   #{param7,jdbcType=INTEGER}
427 427
 
428 428
 
429 429
   <select id="selectStore" resultMap="BaseResultMap" >
430
-    select t.* from t_ware_store t, t_maint_ware a, t_maint_stack b, t_maint_material c,t_maint_customer d
430
+    select e.name as fk_compony_id,t.* from t_ware_store t, t_maint_ware a, t_maint_stack b, t_maint_material c,t_maint_customer d,t_maint_customer e
431 431
     where t.ware_id = a.id
432 432
     and t.stack_id = b.id
433 433
     and t.material_id  = c.id
434 434
     and t.customer_id = d.id
435
+    and t.fk_compony_id = e.id
435 436
     and  a.name like concat('%',#{param1,jdbcType=VARCHAR},'%')
436 437
     and  b.name like concat('%',#{param2,jdbcType=VARCHAR},'%')
437 438
     and  t.model like concat('%',#{param3,jdbcType=VARCHAR},'%')
@@ -440,6 +441,8 @@ update t_ware_store t set t.layer =   #{param7,jdbcType=INTEGER}
440 441
     and  d.name like concat('%',#{param6,jdbcType=VARCHAR},'%')
441 442
     and t.belong_id = #{param10,jdbcType=VARCHAR}
442 443
     and t.plate_no like concat('%',#{param11,jdbcType=VARCHAR},'%')
444
+    and e.name like concat('%',#{param12,jdbcType=VARCHAR},'%')
445
+    and t.ord_no like concat('%',#{param13,jdbcType=VARCHAR},'%')
443 446
     and t.cancel_flag = '0'
444 447
     and t.out_flag = '0'
445 448
       <if test="param7 != null and param7 != '' and param8 != null and param8 != ''">

Laden…
Annuleren
Opslaan