fanxw 1 年之前
父節點
當前提交
a5250d8009

+ 17 - 12
src/main/java/com/chinaitop/depot/business/model/BusinessContractReceive.java

@@ -3,6 +3,8 @@ package com.chinaitop.depot.business.model;
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+
6 8
 public class BusinessContractReceive {
7 9
     private Integer id;
8 10
 
@@ -40,6 +42,7 @@ public class BusinessContractReceive {
40 42
 
41 43
     private Integer lycd;
42 44
 
45
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
43 46
     private Date rksj;
44 47
 
45 48
     private Integer khid;
@@ -48,8 +51,10 @@ public class BusinessContractReceive {
48 51
 
49 52
     private String tyxydm;
50 53
 
54
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
51 55
     private Date inputTime;
52 56
 
57
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
53 58
     private Date updateTime;
54 59
 
55 60
     private String dataType;
@@ -120,7 +125,7 @@ public class BusinessContractReceive {
120 125
 
121 126
     /**
122 127
      * 合同类型
123
-     * @return htlx 合同类型
128
+     * @return htlx 合同类型(0:采购,1:销售)
124 129
      */
125 130
     public String getHtlx() {
126 131
         return htlx;
@@ -128,22 +133,22 @@ public class BusinessContractReceive {
128 133
 
129 134
     /**
130 135
      * 合同类型
131
-     * @param htlx 合同类型
136
+     * @param htlx 合同类型(0:采购,1:销售)
132 137
      */
133 138
     public void setHtlx(String htlx) {
134 139
         this.htlx = htlx == null ? null : htlx.trim();
135 140
     }
136 141
 
137 142
     /**
138
-     * 合同总数量
139
-     * @return htzsl 合同总数量
143
+     * 合同总数量(吨)
144
+     * @return htzsl 合同总数量(吨)
140 145
      */
141 146
     public BigDecimal getHtzsl() {
142 147
         return htzsl;
143 148
     }
144 149
 
145 150
     /**
146
-     * 合同总数量
151
+     * 合同总数量(吨)
147 152
      * @param htzsl 合同总数量
148 153
      */
149 154
     public void setHtzsl(BigDecimal htzsl) {
@@ -151,24 +156,24 @@ public class BusinessContractReceive {
151 156
     }
152 157
 
153 158
     /**
154
-     * 合同单价
155
-     * @return htdj 合同单价
159
+     * 合同单价(元/吨)
160
+     * @return htdj 合同单价(元/吨)
156 161
      */
157 162
     public BigDecimal getHtdj() {
158 163
         return htdj;
159 164
     }
160 165
 
161 166
     /**
162
-     * 合同单价
163
-     * @param htdj 合同单价
167
+     * 合同单价(元/吨)
168
+     * @param htdj 合同单价(元/吨)
164 169
      */
165 170
     public void setHtdj(BigDecimal htdj) {
166 171
         this.htdj = htdj;
167 172
     }
168 173
 
169 174
     /**
170
-     * 合同总价
171
-     * @return htzj 合同总价
175
+     * 合同总价(元)
176
+     * @return htzj 合同总价(元)
172 177
      */
173 178
     public BigDecimal getHtzj() {
174 179
         return htzj;
@@ -176,7 +181,7 @@ public class BusinessContractReceive {
176 181
 
177 182
     /**
178 183
      * 合同总价
179
-     * @param htzj 合同总价
184
+     * @param htzj 合同总价(元)
180 185
      */
181 186
     public void setHtzj(BigDecimal htzj) {
182 187
         this.htzj = htzj;

+ 1 - 0
src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractReceiveServiceImpl.java

@@ -283,6 +283,7 @@ public class BusinessContractReceiveServiceImpl implements BusinessContractRecei
283 283
 			businessContractReceiveMapper.insert(businessContractReceive);
284 284
 		} else {
285 285
 			businessContractReceive.setId(list.get(0).getId());
286
+			businessContractReceive.setUpdateTime(new Date());
286 287
 			businessContractReceiveMapper.updateByExample(businessContractReceive, example);
287 288
 		}
288 289
 	}