|
@@ -48,14 +48,10 @@ public class PayController {
|
|
|
@Resource
|
|
|
private CustomerPointsRecordService customerPointsRecordService;
|
|
|
@Resource
|
|
|
- private RedisCacheUtil redisCacheUtil;
|
|
|
- @Resource
|
|
|
private WxPushUtil wxPushUtil;
|
|
|
@Resource
|
|
|
private GzhNewsTemplateService gzhNewsTemplateService;
|
|
|
@Resource
|
|
|
- private ElectronicMembershipCardService electronicMembershipCardService;
|
|
|
- @Resource
|
|
|
private CustomerManagerService customerManagerService;
|
|
|
@Value("${yijia.path.global-prefix}")
|
|
|
private String globalPrefix;
|
|
@@ -183,7 +179,7 @@ public class PayController {
|
|
|
//reqData.put("amt", "0.01");
|
|
|
//reqData.put("discountAmt", ""); //参与优惠金额
|
|
|
//reqData.put("unDiscountAmt", ""); //不参与优惠金额
|
|
|
- reqData.put("payType", "WECHAT"); //支付渠道 WECHAT:微信;ALIPAY:支付宝;UNIONPAY:银联
|
|
|
+ //reqData.put("payType", "WECHAT"); //支付渠道 WECHAT:微信;ALIPAY:支付宝;UNIONPAY:银联
|
|
|
Map<String, String> stationAppIdAndAppSecret = stationService.getStationAppIdAndAppSecret(Integer.valueOf(payInfoRequest.getStationId()));
|
|
|
if(stationAppIdAndAppSecret !=null && stationAppIdAndAppSecret.containsKey("appId") && stationAppIdAndAppSecret.containsKey("mno")){
|
|
|
if(userType.equals("1")){
|
|
@@ -201,6 +197,7 @@ public class PayController {
|
|
|
reqData.put("payWay", "03"); //支付方式 02 公众号/服 务窗/js支付 03 小程序
|
|
|
reqData.put("userId", appUserInfoList.get(0).getMinaOpenid()); //用户号 微信:openid; 支付宝:userid;银联:userid;微信&支付宝必传,银联js为非必传
|
|
|
}else if(userType.equals("2")){
|
|
|
+ //2 是支付宝
|
|
|
reqData.put("payWay", "03"); //支付方式 02 公众号/服 务窗/js支付 03 小程序
|
|
|
reqData.put("userId", appUserInfoList.get(0).getALiId()); //用户号 微信:openid; 支付宝:userid;银联:userid;微信&支付宝必传,银联js为非必传
|
|
|
}
|
|
@@ -538,7 +535,7 @@ public class PayController {
|
|
|
if (RSASignature.doCheck(resultStr, sign, SXFPaySign.sxfPublic)) {
|
|
|
logger.info("验签成功");
|
|
|
req.put("code","success");
|
|
|
- req.put("msg","成功");
|
|
|
+ req.put("msg","修改订单状态成功");
|
|
|
logger.info("返回随行付参数信息:"+req.toString());
|
|
|
//验签成功,修改订单状态
|
|
|
List<PayOrder> list = payOrderService.getPayOrderList(ordNo);
|
|
@@ -573,6 +570,7 @@ public class PayController {
|
|
|
int integral =0;
|
|
|
if(stationInfos !=null && stationInfos.getIntegralFlag().equals("1")){ //是否启用积分功能
|
|
|
CalculateIntegral calculateIntegral = new CalculateIntegral();
|
|
|
+ calculateIntegral.setOrderNo(ordNo);
|
|
|
calculateIntegral.setGroupId(Integer.valueOf(infoMap.get("groupId").toString())); //集团ID
|
|
|
calculateIntegral.setCustomerGrade(customerManage.getGrade()); //客户等级
|
|
|
calculateIntegral.setIntegralRuleFlag(stationInfos.getIntegralRuleFlag()); //是否共享积分规则
|
|
@@ -1300,6 +1298,7 @@ public class PayController {
|
|
|
customerPointsRecord.setRecordType("+");
|
|
|
customerPointsRecord.setUnionId(customerPointsInfo.getUnionId());
|
|
|
customerPointsRecord.setIntegral(calculateIntegral.getIntegral());
|
|
|
+ customerPointsRecord.setOrderNo(calculateIntegral.getOrderNo());
|
|
|
//插入客户记录表
|
|
|
customerPointsRecordService.insertCustomerPointsRecordInfo(customerPointsRecord);
|
|
|
|
|
@@ -1324,6 +1323,7 @@ public class PayController {
|
|
|
customerPointsRecord.setRecordType("+");
|
|
|
customerPointsRecord.setUnionId(calculateIntegral.getUnionId());
|
|
|
customerPointsRecord.setIntegral(calculateIntegral.getIntegral());
|
|
|
+ customerPointsRecord.setOrderNo(calculateIntegral.getOrderNo());
|
|
|
customerPointsRecordService.insertCustomerPointsRecordInfo(customerPointsRecord);
|
|
|
|
|
|
customerPoints.setUnionId(calculateIntegral.getUnionId());
|