Authored by mali

Merge branch 'master' into test6.9.10

@@ -23,6 +23,10 @@ public class SignForPackage implements Serializable { @@ -23,6 +23,10 @@ public class SignForPackage implements Serializable {
23 23
24 private Integer isNormal; 24 private Integer isNormal;
25 25
  26 + private Integer operateUid;
  27 +
  28 + private String userName;
  29 +
26 public Integer getId() { 30 public Integer getId() {
27 return id; 31 return id;
28 } 32 }
@@ -71,6 +75,22 @@ public class SignForPackage implements Serializable { @@ -71,6 +75,22 @@ public class SignForPackage implements Serializable {
71 this.isNormal = isNormal; 75 this.isNormal = isNormal;
72 } 76 }
73 77
  78 + public Integer getOperateUid() {
  79 + return operateUid;
  80 + }
  81 +
  82 + public void setOperateUid(Integer operateUid) {
  83 + this.operateUid = operateUid;
  84 + }
  85 +
  86 + public String getUserName() {
  87 + return userName;
  88 + }
  89 +
  90 + public void setUserName(String userName) {
  91 + this.userName = userName;
  92 + }
  93 +
74 @Override 94 @Override
75 public String toString() { 95 public String toString() {
76 return "SignForPackage{" + 96 return "SignForPackage{" +
@@ -80,6 +100,8 @@ public class SignForPackage implements Serializable { @@ -80,6 +100,8 @@ public class SignForPackage implements Serializable {
80 ", depotNo='" + depotNo + '\'' + 100 ", depotNo='" + depotNo + '\'' +
81 ", signTime='" + signTime + '\'' + 101 ", signTime='" + signTime + '\'' +
82 ", isNormal='" + isNormal + '\'' + 102 ", isNormal='" + isNormal + '\'' +
  103 + ", operateUid='" + operateUid + '\'' +
  104 + ", userName='" + userName + '\'' +
83 '}'; 105 '}';
84 } 106 }
85 } 107 }
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 </sql> 15 </sql>
16 16
17 <insert id="insert" parameterType="com.yoho.order.model.SignForPackage"> 17 <insert id="insert" parameterType="com.yoho.order.model.SignForPackage">
18 - insert into sign_for_package (date, seller_waybillCode, depot_no, sign_time, is_normal) values (#{date}, #{sellerWaybillCode}, #{depotNo},  
19 - #{signTime}, #{isNormal}) 18 + insert into sign_for_package (date, seller_waybillCode, depot_no, sign_time, is_normal, operate_uid, user_name) values (#{date}, #{sellerWaybillCode}, #{depotNo},
  19 + #{signTime}, #{isNormal}, #{operateUid}, #{userName})
20 </insert> 20 </insert>
21 21
22 <select id="selectCountByDate" resultType="java.lang.Integer"> 22 <select id="selectCountByDate" resultType="java.lang.Integer">
@@ -2725,6 +2725,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon @@ -2725,6 +2725,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
2725 pkg.setDepotNo(depotNo); 2725 pkg.setDepotNo(depotNo);
2726 pkg.setSignTime(DateUtil.getCurrentTimeSeconds()); 2726 pkg.setSignTime(DateUtil.getCurrentTimeSeconds());
2727 pkg.setIsNormal(isNormal); 2727 pkg.setIsNormal(isNormal);
  2728 + pkg.setOperateUid(new UserHelper().getUserId());
  2729 + pkg.setUserName(new UserHelper().getUserName());
2728 2730
2729 signForPackageMapper.insert(pkg); 2731 signForPackageMapper.insert(pkg);
2730 } 2732 }