修复已知问题

dev-discount
199901012 4 years ago
parent b957b6594e
commit 4f22d46caf
  1. 23
      hai-bweb/src/main/java/com/bweb/controller/HighMerchantController.java

@ -124,7 +124,6 @@ public class HighMerchantController {
|| StringUtils.isBlank(highMerchant.getMerchantName()) || StringUtils.isBlank(highMerchant.getMerchantName())
|| StringUtils.isBlank(highMerchant.getTelephone()) || StringUtils.isBlank(highMerchant.getTelephone())
|| StringUtils.isBlank(highMerchant.getAddress()) || StringUtils.isBlank(highMerchant.getAddress())
|| StringUtils.isBlank(highMerchant.getTelephone())
) { ) {
log.error("HighMerchantController -> updateMerchant() error!","参数错误"); log.error("HighMerchantController -> updateMerchant() error!","参数错误");
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
@ -156,13 +155,21 @@ public class HighMerchantController {
throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_EXISTED, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_EXISTED, "");
} }
highMerchant.setUpdateTime(new Date()); merchant.setMerchantName(highMerchant.getMerchantName());
highMerchant.setOperatorId(userInfoModel.getSecUser().getId()); merchant.setTelephone(highMerchant.getTelephone());
highMerchant.setOperatorName(userInfoModel.getSecUser().getUserName()); merchant.setAddress(highMerchant.getAddress());
highMerchant.setCompanyId(userInfoModel.getBsCompany().getId()); merchant.setBankName(highMerchant.getBankName());
highMerchantService.updateMerchant(highMerchant); merchant.setBankHolder(highMerchant.getBankHolder());
merchant.setBankAccount(highMerchant.getBankAccount());
return ResponseMsgUtil.success(highMerchant); merchant.setMerchantLogo(highMerchant.getMerchantLogo());
merchant.setMerchantDesc(highMerchant.getMerchantDesc());
merchant.setUpdateTime(new Date());
merchant.setOperatorId(userInfoModel.getSecUser().getId());
merchant.setOperatorName(userInfoModel.getSecUser().getUserName());
merchant.setCompanyId(userInfoModel.getBsCompany().getId());
highMerchantService.updateMerchant(merchant);
return ResponseMsgUtil.success(merchant);
} catch (Exception e) { } catch (Exception e) {
log.error("HighMerchantController -> updateMerchant() error!",e); log.error("HighMerchantController -> updateMerchant() error!",e);
return ResponseMsgUtil.exception(e); return ResponseMsgUtil.exception(e);

Loading…
Cancel
Save