|
|
|
@@ -10,6 +10,10 @@ import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -30,6 +34,10 @@ public class WxCashOutController extends BaseController { |
|
|
|
private WxCashOutService wxCashOutService; |
|
|
|
@Autowired |
|
|
|
WxCUserService wxCUserService; |
|
|
|
@Autowired |
|
|
|
WxMerchantService wxMerchantService; |
|
|
|
@Autowired |
|
|
|
WxMallService wxMallService; |
|
|
|
|
|
|
|
@ApiOperation("分页列表接口") |
|
|
|
@GetMapping("list") |
|
|
|
@@ -44,6 +52,20 @@ public class WxCashOutController extends BaseController { |
|
|
|
final PageInfo<WxCashOut> page = wxCashOutService.listAsPage(wxCashOut, pageNum, pageSize); |
|
|
|
return new ResultData(page); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("查询当前提现信息") |
|
|
|
@GetMapping("getCurrentCashOutData") |
|
|
|
public ResultData getCurrentCashOutData() { |
|
|
|
WxMerchantBUser buser = getLoginBUser(); |
|
|
|
WxMerchant merchant = wxMerchantService.getById(buser.getMerchantId()); |
|
|
|
WxMall mall = wxMallService.getByTenantId(buser.getTenantId()); |
|
|
|
Map<String,Object> resultMap = new HashMap<String,Object>(); |
|
|
|
resultMap.put("cashOutCount", merchant.getCashOutCount()); |
|
|
|
resultMap.put("cashOutNumber", merchant.getCashOutNumber()); |
|
|
|
resultMap.put("cashOutSupport", mall.getCashOutSupport()); |
|
|
|
resultMap.put("cashOutLimit", mall.getCashOutLimit()); |
|
|
|
return new ResultData(resultMap); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("微信B端提现") |
|
|
|
@PostMapping("cashout") |
|
|
|
|