|
|
|
@ -227,14 +227,29 @@ public class CouponValidateServiceImpl implements CouponValidateService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject getHalloweenOrderInfo(String customerId, String transactionDate) {
|
|
|
|
|
|
|
|
|
|
// 获取万圣节活动当天支付成功的订单
|
|
|
|
|
List<JSONObject> orderList = new ArrayList<>();
|
|
|
|
|
JSONObject relation = customerMapper.findCustomerBykangaId(customerId);
|
|
|
|
|
if (relation.containsKey("wechat_openid")) {
|
|
|
|
|
JSONObject param = new JSONObject();
|
|
|
|
|
param.put("customer_id", customerId);
|
|
|
|
|
param.put("customer_id", relation.getString("wechat_openid"));
|
|
|
|
|
param.put("transaction_date", transactionDate);
|
|
|
|
|
param.put("status", 5);
|
|
|
|
|
List<JSONObject> orderList = orderMapper.listHalloweenActOrder(param);
|
|
|
|
|
|
|
|
|
|
List<JSONObject> orderListWechat = orderMapper.listHalloweenActOrder(param);
|
|
|
|
|
if(orderListWechat!=null){
|
|
|
|
|
orderList.addAll(orderListWechat);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (relation.containsKey("globalpay_openid")) {
|
|
|
|
|
JSONObject param = new JSONObject();
|
|
|
|
|
param.put("customer_id", relation.getString("globalpay_openid"));
|
|
|
|
|
param.put("transaction_date", transactionDate);
|
|
|
|
|
param.put("status", 5);
|
|
|
|
|
List<JSONObject> orderListGlobal = orderMapper.listHalloweenActOrder(param);
|
|
|
|
|
if(orderListGlobal!=null){
|
|
|
|
|
orderList.addAll(orderListGlobal);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 获取万圣节活动当天支付成功的订单
|
|
|
|
|
JSONObject result = null;
|
|
|
|
|
if (orderList != null && orderList.size() > 0) {
|
|
|
|
|
result = new JSONObject();
|
|
|
|
|