Browse Source

店铺信息保存问题

yangc 7 years ago
parent
commit
5fc9114867
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/java/com/uas/platform/b2c/prod/store/model/StoreIn.java

+ 3 - 1
src/main/java/com/uas/platform/b2c/prod/store/model/StoreIn.java

@@ -306,7 +306,9 @@ public class StoreIn implements Serializable {
 	public EnterpriseSimple getEnterprise() {
 		try {
 			this.enterprise = StringUtils.hasText(this.enterpriseJson) ? JacksonUtils.fromJson(this.enterpriseJson, EnterpriseSimple.class) : null;
-			this.enterprise.setDescription(this.enterpriseInfo.getDescription());
+			if (!StringUtils.isEmpty(this.enterpriseInfo)) {
+				this.enterprise.setDescription(this.enterpriseInfo.getDescription());
+			}
 			return this.enterprise;
 		} catch (Exception e) {
 			e.printStackTrace();