| @@ -0,0 +1,63 @@ | |||||
| package com.iformall.controller.market; | |||||
| import com.github.pagehelper.PageInfo; | |||||
| import com.iformall.annotation.SystemControllerLog; | |||||
| import com.iformall.annotation.TenantIgnore; | |||||
| import com.iformall.annotation.UserDataRuleAnnotation; | |||||
| import com.iformall.common.ErrorCode; | |||||
| import com.iformall.common.Result; | |||||
| import com.iformall.common.ResultData; | |||||
| import com.iformall.controller.base.BaseController; | |||||
| import com.iformall.domain.po.*; | |||||
| import com.iformall.domain.po.base.BaseEntity; | |||||
| import com.iformall.domain.vo.WxMerchantTradeDetailVo; | |||||
| import com.iformall.domain.vo.WxMerchantTradeVo; | |||||
| import com.iformall.domain.vo.WxMerchantVo; | |||||
| import com.iformall.douyin.pay.enums.AppAddSubMerchantUrlType; | |||||
| import com.iformall.enums.*; | |||||
| import com.iformall.service.*; | |||||
| import com.iformall.utils.Constant; | |||||
| import io.swagger.annotations.ApiImplicitParam; | |||||
| import io.swagger.annotations.ApiImplicitParams; | |||||
| import io.swagger.annotations.ApiOperation; | |||||
| import org.apache.commons.lang3.StringUtils; | |||||
| import org.slf4j.Logger; | |||||
| import org.slf4j.LoggerFactory; | |||||
| import org.springframework.beans.factory.annotation.Autowired; | |||||
| import org.springframework.web.bind.annotation.*; | |||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.util.HashMap; | |||||
| import java.util.List; | |||||
| import java.util.Map; | |||||
| /** | |||||
| * @author gongbiao | |||||
| */ | |||||
| @RestController | |||||
| @RequestMapping("wxProfitPayment") | |||||
| public class WxProfitPaymentControllerController extends BaseController { | |||||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |||||
| @Autowired | |||||
| private WxMerchantService wxMerchantService; | |||||
| @Autowired | |||||
| private WxProfitPaymentReceiverService wxProfitPaymentReceiverService; | |||||
| @ApiOperation("(微信)商户手填收款账号信息") | |||||
| @GetMapping("getMerchantAccount") | |||||
| @ApiImplicitParam(name = "mid", value = "mid", dataType = "Long", paramType = "query", required = true) | |||||
| public ResultData getMerchantAccount(Long mid) { | |||||
| WxProfitPaymentReceiver receiver = wxProfitPaymentReceiverService.findReceiver(getTenantInfo(), mid, EnumAppPlat.WX); | |||||
| if (null != receiver) { | |||||
| Map retMap = new HashMap(); | |||||
| retMap.put("account", receiver.getReceiverAccount()); | |||||
| retMap.put("isIsv", receiver.getReceiverParamValue(Constant.paymentReceiverParamIsv)); | |||||
| retMap.put("apiKey", receiver.getReceiverParamValue(Constant.paymentReceicerParamApiKey)); | |||||
| return new ResultData(retMap); | |||||
| } | |||||
| return new ResultData(); | |||||
| } | |||||
| } | |||||