|
|
@@ -1,5 +1,6 @@
|
|
|
package com.uas.platform.b2c.prod.commodity.model;
|
|
|
|
|
|
+import com.uas.platform.b2c.common.account.model.Enterprise;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.logistics.model.Logistics;
|
|
|
import com.uas.platform.b2c.prod.commodity.type.InOutBoundType;
|
|
|
@@ -313,8 +314,11 @@ public class CommodityInOutbound implements Serializable {
|
|
|
this.type = InOutBoundType.OUTBOUND;
|
|
|
}
|
|
|
}
|
|
|
- this.enuu = SystemSession.getUser().getEnterprise().getUu();
|
|
|
- this.enName = SystemSession.getUser().getEnterprise().getEnName();
|
|
|
+ Enterprise enterprise = SystemSession.getUser().getEnterprise();
|
|
|
+ if (enterprise != null) {
|
|
|
+ this.enuu = enterprise.getUu();
|
|
|
+ this.enName = enterprise.getEnName();
|
|
|
+ }
|
|
|
this.createTime = new Date();
|
|
|
this.operaterUseruu = SystemSession.getUser().getUserUU();
|
|
|
this.operaterUserName = SystemSession.getUser().getUserName();
|