合并代码

dev-discount
袁野 3 years ago
parent a981fe1953
commit 40f188eb20
  1. 33
      hai-bweb/src/main/java/com/bweb/controller/OutRechargeOrderController.java
  2. 2
      hai-service/src/main/java/com/hai/service/OutRechargeOrderService.java
  3. 2
      hai-service/src/main/java/com/hai/service/impl/HltUnionCardVipServiceImpl.java
  4. 3
      hai-service/src/main/java/com/hai/service/impl/OutRechargeChildOrderServiceImpl.java
  5. 2
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

@ -19,6 +19,7 @@ import com.hai.common.utils.WxUtils;
import com.hai.config.HuiLianTongUnionCardConfig; import com.hai.config.HuiLianTongUnionCardConfig;
import com.hai.config.UnionPayConfig; import com.hai.config.UnionPayConfig;
import com.hai.entity.HighRefundAudit; import com.hai.entity.HighRefundAudit;
import com.hai.entity.OutRechargeChildOrder;
import com.hai.entity.OutRechargeOrder; import com.hai.entity.OutRechargeOrder;
import com.hai.entity.OutRechargeOrderRecord; import com.hai.entity.OutRechargeOrderRecord;
import com.hai.model.*; import com.hai.model.*;
@ -58,16 +59,7 @@ public class OutRechargeOrderController {
private OutRechargeOrderService outRechargeOrderService; private OutRechargeOrderService outRechargeOrderService;
@Resource @Resource
private GoodsOrderServiceImpl goodsOrderService; private OutRechargeChildOrderService outRechargeChildOrderService;
@Resource
private HighRefundAuditService highRefundAuditService;
@Resource
private HighUserService highUserService;
@Resource
private OutRechargeChildOrderService rechargeOrderRecordService;
@RequestMapping(value = "/getOrderById", method = RequestMethod.GET) @RequestMapping(value = "/getOrderById", method = RequestMethod.GET)
@ -84,6 +76,27 @@ public class OutRechargeOrderController {
} }
} }
@RequestMapping(value = "/getChildOrder", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "根据id查询子订单详情")
public ResponseData getChildOrder(@RequestParam(name = "orderId", required = true) Long orderId) {
try {
// 查询充值子订单
Map<String, Object> childOrderMap = new HashMap<>();
childOrderMap.put("parent_order_id" , orderId);
List<OutRechargeChildOrder> childOrderList = outRechargeChildOrderService.getListRechargeChildOrder(childOrderMap);
return ResponseMsgUtil.success(childOrderList);
} catch (Exception e) {
log.error("HighOrderController --> getOrderById() error!", e);
return ResponseMsgUtil.exception(e);
}
}
// @RequestMapping(value="/importRechargeOrder",method = RequestMethod.POST) // @RequestMapping(value="/importRechargeOrder",method = RequestMethod.POST)
// @ResponseBody // @ResponseBody

@ -2,6 +2,7 @@ package com.hai.service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.hai.entity.HighUserCard; import com.hai.entity.HighUserCard;
import com.hai.entity.OutRechargeChildOrder;
import com.hai.entity.OutRechargeOrder; import com.hai.entity.OutRechargeOrder;
import com.hai.model.OrderCountModel; import com.hai.model.OrderCountModel;
import com.hai.model.OutOrderModel; import com.hai.model.OutOrderModel;
@ -175,4 +176,5 @@ public interface OutRechargeOrderService {
*/ */
Integer rechargeOrderNum(Long userId); Integer rechargeOrderNum(Long userId);
} }

@ -199,7 +199,7 @@ public class HltUnionCardVipServiceImpl implements HltUnionCardVipService {
if (equityLevel == 1) { if (equityLevel == 1) {
HuiLianTongUnionCardConfig.submitSms(phone , "“E信通会员专属”3张4元话费券、2张99折加油券已到账,打开“嗨森逛”微信小程序>我的>我的优惠券即可直接使用,到账之日起1月内(30天)有效。"); HuiLianTongUnionCardConfig.submitSms(phone , "“E信通会员专属”3张4元话费券、2张99折加油券已到账,打开“嗨森逛”微信小程序>我的>我的优惠券即可直接使用,到账之日起1月内(30天)有效。");
} else { } else {
HuiLianTongUnionCardConfig.submitSms(phone , "“工会卡用户专属”2元话费券、2张99折加油券已到账,打开“嗨森逛”微信小程序>我的>我的优惠券即可直接使用,到账之日起1月内(30天)有效。"); HuiLianTongUnionCardConfig.submitSms(phone , "“工会卡用户专属”5张98折加油券已到账,打开“嗨森逛”微信小程序>我的>我的优惠券即可直接使用,到账之日起1月内(30天)有效。");
} }
} }

@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -34,6 +35,8 @@ public class OutRechargeChildOrderServiceImpl implements OutRechargeChildOrderSe
criteria.andStatusEqualTo(MapUtils.getInteger(map , "status")); criteria.andStatusEqualTo(MapUtils.getInteger(map , "status"));
} }
example.setOrderByClause("create_time desc");
return rechargeChildOrderMapper.selectByExample(example); return rechargeChildOrderMapper.selectByExample(example);
} }

@ -91,7 +91,6 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
private HighUserPayPasswordService highUserPayPasswordService; private HighUserPayPasswordService highUserPayPasswordService;
@Override @Override
public List<OutRechargeOrder> getListRechargeOrder(Map<String, String> map) { public List<OutRechargeOrder> getListRechargeOrder(Map<String, String> map) {
OutRechargeOrderExample example = new OutRechargeOrderExample(); OutRechargeOrderExample example = new OutRechargeOrderExample();
@ -836,4 +835,5 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
criteria.andPayStatusEqualTo(101); criteria.andPayStatusEqualTo(101);
return outRechargeOrderMapper.selectByExample(example).size(); return outRechargeOrderMapper.selectByExample(example).size();
} }
} }

Loading…
Cancel
Save