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