|
|
|
@ -62,7 +62,7 @@ public class HighMerchantController { |
|
|
|
|
@ApiOperation(value = "增加商户") |
|
|
|
|
public ResponseData insertMerchant(@RequestBody HighMerchantModel highMerchant, HttpServletRequest request) { |
|
|
|
|
try { |
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
SessionObject sessionObject = UserCenter.getSessionObject(request); |
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
if (userInfoModel.getBsCompany() == null) { |
|
|
|
|
log.error("HighMerchantController -> updateMerchant() error!","该主角色没有权限"); |
|
|
|
@ -113,7 +113,7 @@ public class HighMerchantController { |
|
|
|
|
@ApiOperation(value = "修改商户") |
|
|
|
|
public ResponseData updateMerchant(@RequestBody HighMerchantModel highMerchant, HttpServletRequest request) { |
|
|
|
|
try { |
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
SessionObject sessionObject = UserCenter.getSessionObject(request); |
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
if (userInfoModel.getBsCompany() == null) { |
|
|
|
|
log.error("HighMerchantController -> updateMerchant() error!","该主角色没有权限"); |
|
|
|
@ -144,7 +144,7 @@ public class HighMerchantController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 校验账户手机号
|
|
|
|
|
if (MemberValidateUtil.validatePhone(highMerchant.getSecUser().getTelephone())) { |
|
|
|
|
if (!MemberValidateUtil.validatePhone(highMerchant.getSecUser().getTelephone())) { |
|
|
|
|
log.error("BsStudentController --> updateMerchant() error!", "请输入正确的电话号码"); |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_IS_ERROR, ""); |
|
|
|
|
} |
|
|
|
@ -226,7 +226,7 @@ public class HighMerchantController { |
|
|
|
|
@RequestParam(name = "pageSize", required = true) Integer pageSize, |
|
|
|
|
HttpServletRequest request) { |
|
|
|
|
try { |
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
SessionObject sessionObject = UserCenter.getSessionObject(request); |
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
if (userInfoModel.getBsCompany() == null) { |
|
|
|
|
log.error("HighMerchantController -> getMerchantList() error!","权限不足"); |
|
|
|
|