Compare commits
2 Commits
e9ef1b0fac
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b3fb08036 | |||
| 484ffb07e5 |
@@ -1,53 +0,0 @@
|
|||||||
package com.czg.controller;
|
|
||||||
|
|
||||||
import com.czg.annotation.Debounce;
|
|
||||||
import com.czg.order.dto.MkDistributionPayDTO;
|
|
||||||
import com.czg.resp.CzgResult;
|
|
||||||
import com.czg.service.order.service.DistributionPayService;
|
|
||||||
import com.czg.utils.AssertUtil;
|
|
||||||
import com.czg.utils.ServletUtil;
|
|
||||||
import jakarta.annotation.Resource;
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分销员开通
|
|
||||||
*
|
|
||||||
* @author ww
|
|
||||||
* @description
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/pay/distribution")
|
|
||||||
public class DistributionPayController {
|
|
||||||
@Resource
|
|
||||||
private DistributionPayService payService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 小程序支付
|
|
||||||
* payType 必填 支付方式,aliPay 支付宝,wechatPay 微信
|
|
||||||
* openId 必填
|
|
||||||
*/
|
|
||||||
@PostMapping("/ltPayOrder")
|
|
||||||
@Debounce(value = "#payParam.userId")
|
|
||||||
public CzgResult<Map<String, Object>> ltPayOrder( HttpServletRequest request, @Validated @RequestBody MkDistributionPayDTO payParam) {
|
|
||||||
return payService.ltPayOrder(ServletUtil.getClientIP(request), payParam);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 运营端小程序余额充值
|
|
||||||
* payType 必填 支付方式,aliPay 支付宝,wechatPay 微信
|
|
||||||
*/
|
|
||||||
@PostMapping("/mchRecharge")
|
|
||||||
@Debounce(value = "#payParam.userId")
|
|
||||||
public CzgResult<Map<String, String>> mchRecharge(@Validated @RequestBody MkDistributionPayDTO payParam) {
|
|
||||||
AssertUtil.isBlank(payParam.getCode(), "微信code不为空");
|
|
||||||
return CzgResult.success(payService.mchRecharge(payParam));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -261,7 +261,7 @@ public interface PrinterImpl {
|
|||||||
// data.append("<OUT:15>");
|
// data.append("<OUT:15>");
|
||||||
// data.append("<BR>");
|
// data.append("<BR>");
|
||||||
// 18个空格 12
|
// 18个空格 12
|
||||||
data.append(getFormatLabel("品名 数量 小计 ", signLabelInfo.s))
|
data.append(getFormatLabel("品名 数量 单价 ", signLabelInfo.s))
|
||||||
.append(signLabelInfo.br);
|
.append(signLabelInfo.br);
|
||||||
// data.append("<S>品名 数量 小计</S><BR>");
|
// data.append("<S>品名 数量 小计</S><BR>");
|
||||||
data.append(getFormatLabel("--------------------------------", signLabelInfo.s))
|
data.append(getFormatLabel("--------------------------------", signLabelInfo.s))
|
||||||
|
|||||||
Reference in New Issue
Block a user