Эх сурвалжийг харах

feat(StoreApply):新增备注字段记录备注信息

Hu Jie 7 жил өмнө
parent
commit
da4a2766fc

+ 6 - 0
db/ddl.sql

@@ -5,4 +5,10 @@
 -- author: suntg
 -- content: 内容备注xxx
 
+-- date: 2019-01-07 14:51
+-- author: huj
+-- content: 店铺申请新增备注字段
+alter table `store$apply`
+  add column apply_remark varchar(255)  comment '备注';
+
 

+ 2 - 0
src/main/java/com/uas/platform/b2c/prod/store/facade/impl/StoreApplyFacadeImpl.java

@@ -118,6 +118,7 @@ public class StoreApplyFacadeImpl implements StoreApplyFacade {
 		storeApply.setEnType(apply.getEnType());
 		storeApply.setEnQualification(apply.getEnQualification());
 		storeApply.setBrands(apply.getBrands());
+		storeApply.setRemark(apply.getRemark());
 		// 不通过保存申请信息,通过则进行自动确认开通店铺操作
 		if (StoreApply.ApplyStatus.UNPASS == status) {
 			storeApplyService.handlerApply(storeApply);
@@ -177,6 +178,7 @@ public class StoreApplyFacadeImpl implements StoreApplyFacade {
 		storeApply.setBrands(apply.getBrands());
 		storeApply.setBannerUrl("http://dfs.ubtob.com/group1/M00/19/BF/CgpkyFlSBRmAcascAANK5vkByag940.jpg");
 		storeApply.setLogoUrl("https://mall.usoftchina.com/static/img/store/common/default.png");
+		storeApply.setRemark(apply.getRemark());
 		StoreApply savedApply = storeApplyService.handlerApply(storeApply);
 		return ResultMap.success(savedApply.getUuid());
 	}

+ 14 - 0
src/main/java/com/uas/platform/b2c/prod/store/model/StoreApply.java

@@ -184,6 +184,12 @@ public class StoreApply {
 	@Column(name = "apply_ip_address")
 	private String ipAddress;
 
+	/**
+	 * 备注
+	 */
+	@Column(name = "apply_remark")
+	private String remark;
+
 	/**
 	 * 资质信息列表
 	 */
@@ -449,4 +455,12 @@ public class StoreApply {
 	public void setBrands(List<StoreBrandInfo> brands) {
 		this.brands = brands;
 	}
+
+	public String getRemark() {
+		return remark;
+	}
+
+	public void setRemark(String remark) {
+		this.remark = remark;
+	}
 }