YL2767 1 vecka sedan
förälder
incheckning
cf9c23a8d2

+ 2
- 0
src/main/java/com/th/demo/mapping/ware/StoreMapper.java Visa fil

57
     void updateByOutId(String id, String noUserParam, String userId, String belongId);
57
     void updateByOutId(String id, String noUserParam, String userId, String belongId);
58
 
58
 
59
     int updateFKByPKey(Store store);
59
     int updateFKByPKey(Store store);
60
+
61
+    int updateOutBoundByPrimaryKey(Store record);
60
 }
62
 }

+ 10
- 0
src/main/java/com/th/demo/model/ware/Store.java Visa fil

102
 
102
 
103
     private String payWay;
103
     private String payWay;
104
 
104
 
105
+    private String OutBound;
106
+
105
 
107
 
106
     public Double getInvoicePrice() {
108
     public Double getInvoicePrice() {
107
         return invoicePrice;
109
         return invoicePrice;
576
         this.changeCount = changeCount;
578
         this.changeCount = changeCount;
577
     }
579
     }
578
 
580
 
581
+    public String getOutBound() {
582
+        return OutBound;
583
+    }
584
+
585
+    public void setOutBound(String outBound) {
586
+        OutBound = outBound;
587
+    }
588
+
579
     @Override
589
     @Override
580
     public int compareTo(Store o) {
590
     public int compareTo(Store o) {
581
         if (this.layer > o.getLayer()) {
591
         if (this.layer > o.getLayer()) {

+ 4
- 0
src/main/java/com/th/demo/service/ware/StoreService.java Visa fil

32
 
32
 
33
     String changeStack(String json,String newWare,String newStack,String newRemark1,
33
     String changeStack(String json,String newWare,String newStack,String newRemark1,
34
                        String newRemark, String userId,String belongId);
34
                        String newRemark, String userId,String belongId);
35
+
36
+    String lockAndUnlock(String json,String lockFlag,String userId,String belongId);
37
+
38
+    String Outbound(String json,String outbound,String userId,String belongId);
35
 }
39
 }

+ 4
- 4
src/main/resource/localhost/db.properties Visa fil

8
 #jdbc.user=root
8
 #jdbc.user=root
9
 #jdbc.password=root
9
 #jdbc.password=root
10
 
10
 
11
-jdbc.driverClass=com.mysql.jdbc.Driver
12
-jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware_zg?useUnicode=true&characterEncoding=utf8
13
-jdbc.user=root
14
-jdbc.password=122403
11
+#jdbc.driverClass=com.mysql.jdbc.Driver
12
+#jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware_zg?useUnicode=true&characterEncoding=utf8
13
+#jdbc.user=root
14
+#jdbc.password=122403

+ 7
- 0
src/main/resource/mapper/ware/StoreMapper.xml Visa fil

55
 
55
 
56
     <result column="change_count" property="changeCount" jdbcType="DOUBLE" />
56
     <result column="change_count" property="changeCount" jdbcType="DOUBLE" />
57
 
57
 
58
+    <result column="out_bound" property="outBound" jdbcType="VARCHAR" />
59
+
58
 
60
 
59
     <association  column="ware_id" property="ware" select="com.th.demo.mapping.maint.WareMapper.selectByPrimaryKey" />
61
     <association  column="ware_id" property="ware" select="com.th.demo.mapping.maint.WareMapper.selectByPrimaryKey" />
60
     <association  column="stack_id" property="stack" select="com.th.demo.mapping.maint.StackMapper.selectByPrimaryKey" />
62
     <association  column="stack_id" property="stack" select="com.th.demo.mapping.maint.StackMapper.selectByPrimaryKey" />
616
       and t.plate_no = #{param1,jdbcType=VARCHAR};
618
       and t.plate_no = #{param1,jdbcType=VARCHAR};
617
 
619
 
618
   </select>
620
   </select>
621
+
622
+  <update id="updateOutBoundByPrimaryKey" parameterType="com.th.demo.model.ware.Store" >
623
+    update  t_ware_store t
624
+    set t.out_bound = #{outBound,jdbcType=VARCHAR} where t.id = #{id,jdbcType=VARCHAR}
625
+  </update>
619
 </mapper>
626
 </mapper>

Loading…
Avbryt
Spara