Merge remote-tracking branch 'origin/master'
commit
e85f2e75a7
|
@ -1320,8 +1320,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
|
||||||
});
|
});
|
||||||
phoneRecordMapper.insertBatch(recordDOS);
|
phoneRecordMapper.insertBatch(recordDOS);
|
||||||
try {
|
try {
|
||||||
// 用于支付测试 TODO
|
phoneRecordService.insertPhone(phoneRecordAdds);
|
||||||
// phoneRecordService.insertPhone(phoneRecordAdds);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.info("调取提报新增报错{}", e);
|
log.info("调取提报新增报错{}", e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,28 +47,28 @@ public class WxPayStrategy implements IPayStrategy{
|
||||||
Long requiredTenantId = TenantContextHolder.getRequiredTenantId();
|
Long requiredTenantId = TenantContextHolder.getRequiredTenantId();
|
||||||
TenantDTO tenant = tenantApi.getTenant(requiredTenantId);
|
TenantDTO tenant = tenantApi.getTenant(requiredTenantId);
|
||||||
InitOrderResponse response = new InitOrderResponse();
|
InitOrderResponse response = new InitOrderResponse();
|
||||||
// WxPayService wxPayService = wxPayOneAutoConfiguration.wxPayOneService();
|
WxPayService wxPayService = wxPayOneAutoConfiguration.wxPayOneService();
|
||||||
// Assert.notNull(wxPayService, "获取微信支付配置失败!");
|
Assert.notNull(wxPayService, "获取微信支付配置失败!");
|
||||||
// WxPayUnifiedOrderV3Request wxPayRequest = new WxPayUnifiedOrderV3Request();
|
WxPayUnifiedOrderV3Request wxPayRequest = new WxPayUnifiedOrderV3Request();
|
||||||
// int sum = orderDO.getPayPrice().multiply(new BigDecimal("100")).intValue();
|
int sum = orderDO.getPayPrice().multiply(new BigDecimal("100")).intValue();
|
||||||
// wxPayRequest.setAmount(new WxPayUnifiedOrderV3Request.Amount().setTotal(sum));
|
wxPayRequest.setAmount(new WxPayUnifiedOrderV3Request.Amount().setTotal(sum));
|
||||||
// wxPayRequest.setDescription(tenant.getName());
|
wxPayRequest.setDescription(tenant.getName());
|
||||||
// wxPayRequest.setOutTradeNo(orderDO.getOrderId());
|
wxPayRequest.setOutTradeNo(orderDO.getOrderId());
|
||||||
// wxPayRequest.setNotifyUrl(payProperties.getNotifyUrl());
|
wxPayRequest.setNotifyUrl(payProperties.getNotifyUrl());
|
||||||
// wxPayRequest.setPayer(new WxPayUnifiedOrderV3Request.Payer().setOpenid(openid));
|
wxPayRequest.setPayer(new WxPayUnifiedOrderV3Request.Payer().setOpenid(openid));
|
||||||
// wxPayRequest.setSceneInfo(new WxPayUnifiedOrderV3Request.SceneInfo().setPayerClientIp(ServletUtils.getClientIP(servletRequest)));
|
wxPayRequest.setSceneInfo(new WxPayUnifiedOrderV3Request.SceneInfo().setPayerClientIp(ServletUtils.getClientIP(servletRequest)));
|
||||||
// wxPayRequest.setAppid(payProperties.getAppId());
|
wxPayRequest.setAppid(payProperties.getAppId());
|
||||||
// wxPayRequest.setMchid(payProperties.getMchId());
|
wxPayRequest.setMchid(payProperties.getMchId());
|
||||||
// try {
|
try {
|
||||||
// WxPayUnifiedOrderV3Result wxPayUnifiedOrderV3Result = wxPayService.unifiedOrderV3(TradeTypeEnum.JSAPI, wxPayRequest);
|
WxPayUnifiedOrderV3Result wxPayUnifiedOrderV3Result = wxPayService.unifiedOrderV3(TradeTypeEnum.JSAPI, wxPayRequest);
|
||||||
// WxPayUnifiedOrderV3Result.JsapiResult jsapiResult = wxPayUnifiedOrderV3Result.getPayInfo(TradeTypeEnum.JSAPI, payProperties.getAppId(), payProperties.getMchId(), wxPayService.getConfig().getPrivateKey());
|
WxPayUnifiedOrderV3Result.JsapiResult jsapiResult = wxPayUnifiedOrderV3Result.getPayInfo(TradeTypeEnum.JSAPI, payProperties.getAppId(), payProperties.getMchId(), wxPayService.getConfig().getPrivateKey());
|
||||||
// InitOrderResponse.JsapiResult jsapiResultNew = new InitOrderResponse.JsapiResult();
|
InitOrderResponse.JsapiResult jsapiResultNew = new InitOrderResponse.JsapiResult();
|
||||||
// BeanUtils.copyProperties(jsapiResult, jsapiResultNew);
|
BeanUtils.copyProperties(jsapiResult, jsapiResultNew);
|
||||||
// response.setJsapiResult(jsapiResultNew);
|
response.setJsapiResult(jsapiResultNew);
|
||||||
// BeanUtils.copyProperties(wxPayUnifiedOrderV3Result, response);
|
BeanUtils.copyProperties(wxPayUnifiedOrderV3Result, response);
|
||||||
// } catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// log.error(e.getMessage());
|
log.error(e.getMessage());
|
||||||
// }
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
`cy_recharge_order_info` info
|
`cy_recharge_order_info` info
|
||||||
LEFT JOIN cy_recharge_order ord ON info.recharge_order_id = ord.id
|
LEFT JOIN cy_recharge_order ord ON info.recharge_order_id = ord.id
|
||||||
WHERE
|
WHERE
|
||||||
ord.paid = 1
|
ord.paid != 0
|
||||||
<if test="null != startTime">
|
<if test="null != startTime">
|
||||||
and info.create_time >= #{startTime}
|
and info.create_time >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
@ -252,7 +252,7 @@
|
||||||
and b.nickname like CONCAT('%',#{data.nickname},'%')
|
and b.nickname like CONCAT('%',#{data.nickname},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="data.realName !=null and data.realName!=''">
|
<if test="data.realName !=null and data.realName!=''">
|
||||||
and x.real_name like CONCAT('%',#{data.realName},'%')
|
and x.nickname like CONCAT('%',#{data.realName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="data.userPhone !=null and data.userPhone!=''">
|
<if test="data.userPhone !=null and data.userPhone!=''">
|
||||||
and a.user_phone like CONCAT('%',#{data.userPhone},'%')
|
and a.user_phone like CONCAT('%',#{data.userPhone},'%')
|
||||||
|
|
Loading…
Reference in New Issue