Browse Source

清空id信息。

suntg 7 năm trước cách đây
mục cha
commit
4448f29469

+ 2 - 0
src/main/java/com/uas/platform/b2c/logistics/model/Invoice.java

@@ -782,6 +782,7 @@ public class Invoice extends Document implements Serializable {
         this.jsonSpAddress = fPurchase.getJsonSpAddress();
         this.jsonSdAddress = fPurchase.getJsonSdAddress();
         this.logistics = fPurchase.getLogistics();
+        this.logistics.setId(null);
         this.createtime = fPurchase.getCreattime();
         this.status = fPurchase.getStatus();
         this.currency = fPurchase.getCurrencyName();
@@ -815,6 +816,7 @@ public class Invoice extends Document implements Serializable {
         this.jsonSpAddress = iOrder.getJsonSpAddress();
         this.jsonSdAddress = iOrder.getJsonSdAddress();
         this.logistics = iOrder.getLogistics();
+		this.logistics.setId(null);
         this.createtime = iOrder.getCreattime();
         this.status = iOrder.getStatus();
         this.currency = iOrder.getCurrency();

+ 1 - 1
src/main/webapp/resources/js/admin/controllers/trade/InvoicefromOrderCtrl.js

@@ -52,7 +52,7 @@ define([ 'app/app' ], function(app) {
 			page : 1,
 			count : 5,
 			sorting : {
-				creattime: 'DESC'
+                createtime: 'DESC'
 			}
 		}, {
 			total : 0,