|
|
|
@@ -5,6 +5,7 @@ import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.enums.EnumMsgSend; |
|
|
|
import com.iformall.enums.EnumPayWay; |
|
|
|
import com.iformall.enums.EnumProfitSharingType; |
|
|
|
import com.iformall.service.WxCUserService; |
|
|
|
import com.iformall.service.WxMerchantService; |
|
|
|
import com.iformall.service.WxProfitSharingReceiverService; |
|
|
|
@@ -47,7 +48,19 @@ public class WxMerchantController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "商户ID不能为空"); |
|
|
|
} |
|
|
|
wxMerchant.updateTenantInfo(getTenantInfo()); |
|
|
|
return new ResultData(wxProfitSharingReceiverService.findReceiver(wxMerchant)); |
|
|
|
return new ResultData(wxProfitSharingReceiverService.findReceiver(wxMerchant, EnumProfitSharingType.PROFIT_SHARING_TYPE_WECHAT)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查询账户信息") |
|
|
|
@GetMapping("/findTtAccountById") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
public ResultData findTtAccountById(@ModelAttribute WxMerchant wxMerchant) { |
|
|
|
log.debug("[" + getIpAddr() + "] WxMerchantController::findTtAccountById"); |
|
|
|
if (wxMerchant.getId() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "商户ID不能为空"); |
|
|
|
} |
|
|
|
wxMerchant.updateTenantInfo(getTenantInfo()); |
|
|
|
return new ResultData(wxProfitSharingReceiverService.findReceiver(wxMerchant,EnumProfitSharingType.PROFIT_SHARING_TYPE_DOUYIN)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("更新收款账户信息:必填项 id(商户ID) name(商户名称) accountId(账号ID) accountTypeValue(账号类型) accountName(账号名称)") |
|
|
|
|