提交代码

yy_dev
胡锐 2 years ago
commit fade043f67
  1. 15
      cweb/src/main/java/com/cweb/controller/BsStoreDiscountActivityPartakeUserController.java
  2. 6
      service/src/main/java/com/hfkj/service/BsTradeOrderService.java

@ -65,20 +65,19 @@ public class BsStoreDiscountActivityPartakeUserController {
@RequestParam(value = "type" , required = true) Integer type,
@RequestParam(value = "systemType" , required = true) Integer systemType) {
try {
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNoOrPlatformTradeNo(outTradeNo);
if (tradeNo == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单");
}
System.out.println("outTradeNo="+tradeNo.getOutTradeNo()+"&qrCodeSn="+"&type="+type+"&systemType="+systemType);
System.out.println("outTradeNo="+outTradeNo+"&qrCodeSn="+"&type="+type+"&systemType="+systemType);
JSONObject response = HttpsUtils.doGet(CommonSysConst.getSysConfig().getHsg_domain_name() + "/v1/wxMsg/getWxToken");
if (StringUtils.isBlank(response.getString("return_data"))) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取token失败");
}
BsTradeOrder tradeNo = tradeOrderService.getOrderByOutTradeNoOrPlatformTradeNo(outTradeNo);
if (tradeNo == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单");
}
String param = tradeNo.getOutTradeNo();
String fileUrl = "/share/" + System.currentTimeMillis() + ".png";
String param = outTradeNo;
String fileUrl = "/share/" + System.currentTimeMillis() + ".png";
// type 生成类型
// 1:支付交易成功后
// 2:分享关注公众号

@ -48,8 +48,12 @@ public interface BsTradeOrderService {
*/
BsTradeOrder getOrderByOutTradeNo(String tradeNo);
/**
* 查询交易订单
* @param tradeNo 交易流水或渠道平台交易流水
* @return
*/
BsTradeOrder getOrderByOutTradeNoOrPlatformTradeNo(String tradeNo);
/**
* 根据交易订单id查询
* @param tradeOrderId

Loading…
Cancel
Save