创建店铺完善
This commit is contained in:
@@ -20,7 +20,7 @@ public class ShopInfoAddDTO {
|
||||
private String frontImg;
|
||||
@NotEmpty(message = "试用/正式不为空")
|
||||
private String profiles;
|
||||
@NotEmpty(message = "激活码不为空")
|
||||
// @NotEmpty(message = "激活码不为空")
|
||||
private String activateCode;
|
||||
@NotEmpty(message = "登录账号不为空")
|
||||
private String accountName;
|
||||
@@ -35,7 +35,6 @@ public class ShopInfoAddDTO {
|
||||
// @NotNull(message = "角色id不为空")
|
||||
// todo 默认为管理员角色,后期调整
|
||||
private Long roleId = 1L;
|
||||
private String address;
|
||||
private String phone;
|
||||
/**
|
||||
* 店铺注册类型
|
||||
@@ -43,4 +42,8 @@ public class ShopInfoAddDTO {
|
||||
* 后付 after
|
||||
*/
|
||||
private String registerType;
|
||||
private String cities;
|
||||
private String districts;
|
||||
private String provinces;
|
||||
private String address;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,9 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
||||
shopInfo.setStatus(1);
|
||||
shopInfo.setProfiles("release");
|
||||
save(shopInfo);
|
||||
activateShop(shopInfo, shopInfoAddDTO.getActivateCode());
|
||||
if (StrUtil.isNotBlank(shopInfoAddDTO.getActivateCode())) {
|
||||
activateShop(shopInfo, shopInfoAddDTO.getActivateCode());
|
||||
}
|
||||
return updateById(shopInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user