|
|
|
@@ -55,7 +55,7 @@ public class WxMerchantController extends BaseController { |
|
|
|
public ResultData addAccount(@RequestBody WxMerchant wxMerchant) { |
|
|
|
log.debug("[" + getIpAddr() + "] merchantProfitSharingReceiver::addAccount"); |
|
|
|
if (!hasPermission()) { |
|
|
|
return new ResultData(ErrorCode.USER_NO_PERMISSION); |
|
|
|
return new ResultData(ErrorCode.USER_NO_PERMISSION.getCode(),"当前微信绑定的手机号不是商户的联系方式手机号,不能操作"); |
|
|
|
} |
|
|
|
if (wxMerchant.getId() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "商户ID不能为空"); |
|
|
|
@@ -82,7 +82,7 @@ public class WxMerchantController extends BaseController { |
|
|
|
public ResultData deleteByReceiverId(@ModelAttribute WxProfitSharingReceiver receiver) { |
|
|
|
log.debug("[" + getIpAddr() + "] WxMerchantController::deleteByReceiverId"); |
|
|
|
if (!hasPermission()) { |
|
|
|
return new ResultData(ErrorCode.USER_NO_PERMISSION); |
|
|
|
return new ResultData(ErrorCode.USER_NO_PERMISSION.getCode(),"当前微信绑定的手机号不是商户的联系方式手机号,不能操作"); |
|
|
|
} |
|
|
|
if (receiver.getId() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "商户分账账户ID不能为空"); |
|
|
|
|