修改冲突

dev-discount
袁野 2 years ago
commit 74a7a170da
  1. 3
      hai-bweb/src/main/java/com/bweb/controller/HighCouponAgentController.java
  2. 9
      hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java
  3. 47
      hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java
  4. 1
      hai-bweb/src/main/java/com/bweb/controller/HighTestController.java
  5. 1
      hai-bweb/src/main/resources/dev/application.yml
  6. 3
      hai-cweb/src/main/java/com/cweb/config/AuthConfig.java
  7. 103
      hai-cweb/src/main/java/com/cweb/controller/HighCouponController.java
  8. 16
      hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java
  9. 1
      hai-cweb/src/main/java/com/cweb/controller/HighTestController.java
  10. 114
      hai-cweb/src/main/java/com/cweb/controller/NotifyController.java
  11. 53
      hai-cweb/src/main/java/com/cweb/controller/pay/UnionPayController.java
  12. 21
      hai-cweb/src/main/resources/dev/logback.xml
  13. 175
      hai-order/src/main/java/com/web/controller/OrderBWebController.java
  14. 2
      hai-order/src/main/java/com/web/controller/TestController.java
  15. 189
      hai-order/src/main/java/com/web/controller/business/OrderCouponController.java
  16. 383
      hai-order/src/main/java/com/web/controller/business/OrderOilController.java
  17. 126
      hai-service/src/main/java/com/hai/common/utils/AESTool.java
  18. 29
      hai-service/src/main/java/com/hai/common/utils/ExcelUtils.java
  19. 134
      hai-service/src/main/java/com/hai/config/ChongQingCNPCService.java
  20. 38
      hai-service/src/main/java/com/hai/config/CommonSysConfig.java
  21. 23
      hai-service/src/main/java/com/hai/dao/HighCouponCodeOtherMapper.java
  22. 42
      hai-service/src/main/java/com/hai/dao/HighCouponCodeOtherSqlProvider.java
  23. 51
      hai-service/src/main/java/com/hai/dao/HighGasOrderMapper.java
  24. 112
      hai-service/src/main/java/com/hai/dao/HighGasOrderSqlProvider.java
  25. 1
      hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
  26. 40
      hai-service/src/main/java/com/hai/dao/HighUserCouponMapper.java
  27. 28
      hai-service/src/main/java/com/hai/dao/HighUserCouponSqlProvider.java
  28. 90
      hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java
  29. 50
      hai-service/src/main/java/com/hai/entity/HighCouponCodeOther.java
  30. 200
      hai-service/src/main/java/com/hai/entity/HighCouponCodeOtherExample.java
  31. 128
      hai-service/src/main/java/com/hai/entity/HighGasOrder.java
  32. 490
      hai-service/src/main/java/com/hai/entity/HighGasOrderExample.java
  33. 32
      hai-service/src/main/java/com/hai/entity/HighUserCoupon.java
  34. 120
      hai-service/src/main/java/com/hai/entity/HighUserCouponExample.java
  35. 1
      hai-service/src/main/java/com/hai/enum_type/OrderPushType.java
  36. 46
      hai-service/src/main/java/com/hai/enum_type/UserRoleTypeEnum.java
  37. 127
      hai-service/src/main/java/com/hai/order/model/ExportGasOrderModel.java
  38. 72
      hai-service/src/main/java/com/hai/order/model/OrderCouponModal.java
  39. 62
      hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java
  40. 3
      hai-service/src/main/java/com/hai/order/service/OrderCreateHandleService.java
  41. 27
      hai-service/src/main/java/com/hai/order/service/OrderRefundHandleService.java
  42. 1
      hai-service/src/main/java/com/hai/order/service/OrderService.java
  43. 10
      hai-service/src/main/java/com/hai/order/service/OrderServiceExt.java
  44. 3
      hai-service/src/main/java/com/hai/order/service/impl/OrderCancelHandleServiceImpl.java
  45. 52
      hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java
  46. 12
      hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java
  47. 46
      hai-service/src/main/java/com/hai/order/service/impl/OrderRefundHandleServiceImpl.java
  48. 4
      hai-service/src/main/java/com/hai/order/service/impl/OrderRefundServiceImpl.java
  49. 35
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceExtImpl.java
  50. 60
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceImpl.java
  51. 62
      hai-service/src/main/java/com/hai/order/type/OrderOilStatus.java
  52. 3
      hai-service/src/main/java/com/hai/order/type/OrderPayType.java
  53. 2
      hai-service/src/main/java/com/hai/service/HighCouponAgentService.java
  54. 21
      hai-service/src/main/java/com/hai/service/HighCouponCodeOtherService.java
  55. 7
      hai-service/src/main/java/com/hai/service/HighCouponService.java
  56. 7
      hai-service/src/main/java/com/hai/service/HighGasOrderService.java
  57. 7
      hai-service/src/main/java/com/hai/service/HighOrderService.java
  58. 7
      hai-service/src/main/java/com/hai/service/HighUserCouponService.java
  59. 39
      hai-service/src/main/java/com/hai/service/impl/HighCouponAgentServiceImpl.java
  60. 67
      hai-service/src/main/java/com/hai/service/impl/HighCouponCodeOtherServiceImpl.java
  61. 19
      hai-service/src/main/java/com/hai/service/impl/HighCouponServiceImpl.java
  62. 2
      hai-service/src/main/java/com/hai/service/impl/HighGasDiscountOilPriceServiceImpl.java
  63. 33
      hai-service/src/main/java/com/hai/service/impl/HighGasOrderServiceImpl.java
  64. 272
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java
  65. 14
      hai-service/src/main/java/com/hai/service/impl/HighUserCouponServiceImpl.java
  66. 53
      hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java
  67. 6
      hai-service/src/main/resources/dev/commonConfig.properties
  68. 220
      v1/hai-v1.iml

@ -464,12 +464,13 @@ public class HighCouponAgentController {
JSONObject jsonObject = JSONObject.parseObject(reqBody);
Long couponAgentCodeId = jsonObject.getLong("couponAgentCodeId");
String phone = jsonObject.getString("phone");
String remark = jsonObject.getString("remark");
if (couponAgentCodeId == null) {
log.error("HighMerchantStoreController -> useCouponCode() error!","参数错误");
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
}
return ResponseMsgUtil.success(highCouponAgentService.generateCode(couponAgentCodeId,remark));
return ResponseMsgUtil.success(highCouponAgentService.generateCode(couponAgentCodeId,phone,remark));
} catch (Exception e) {
log.error("HighCouponAgentController --> generateCode() error!", e);

@ -153,8 +153,10 @@ public class HighCouponController {
salesEndTime.set(Calendar.SECOND, 59);
highCoupon.setSalesEndTime(salesEndTime.getTime());
String setCouponKey = DateUtil.date2String(new Date(), "yyyyMMddHHmmss"); //订单号生成 年月日小时分秒 + 5位随机数
highCoupon.setCouponKey(setCouponKey);
if (StringUtils.isBlank(highCoupon.getCouponKey())) {
String setCouponKey = DateUtil.date2String(new Date(), "yyyyMMddHHmmss"); //订单号生成 年月日小时分秒 + 5位随机数
highCoupon.setCouponKey(setCouponKey);
}
highCoupon.setCompanyId(merchant.getCompanyId());
highCoupon.setOperatorId(userInfoModel.getSecUser().getId());
highCoupon.setOperatorName(userInfoModel.getSecUser().getUserName());
@ -263,6 +265,7 @@ public class HighCouponController {
log.error("HighCouponController -> updateCoupon() error!","未找到商户");
throw ErrorHelp.genException(SysCode.System, ErrorCode.MERCHANT_NOF_FOUND, "");
}
coupon.setCouponKey(highCoupon.getCouponKey());
coupon.setCouponSource(highCoupon.getCouponSource());
coupon.setMerchantId(highCoupon.getMerchantId());
coupon.setCouponName(highCoupon.getCouponName());
@ -312,7 +315,7 @@ public class HighCouponController {
}
// 中石化
if (coupon.getCouponSource() != null && coupon.getCouponSource() != 4) {
if (coupon.getCouponSource() != null && (coupon.getCouponSource() != 4 && coupon.getCouponSource() != 5)) {
// 根据卡卷查询 销售码库存
if (highCouponCodeService.getStockCountByCoupon(coupon.getId()) == 0) {
log.error("HighCouponController -> upShelfApprove() error!","卡卷库存数量错误");

@ -21,14 +21,9 @@ import com.hai.entity.HighOrder;
import com.hai.entity.HighTyAgent;
import com.hai.entity.HighTySalesman;
import com.hai.entity.OutRechargeOrder;
import com.hai.model.HighOrderModel;
import com.hai.model.OrderRefundModel;
import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel;
import com.hai.service.HighCouponCodeService;
import com.hai.service.HighOrderService;
import com.hai.service.HighTyAgentService;
import com.hai.service.HighTySalesmanService;
import com.hai.enum_type.UserObjectTypeEnum;
import com.hai.model.*;
import com.hai.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.collections4.MapUtils;
@ -62,6 +57,9 @@ public class HighOrderController {
@Resource
private HighOrderService highOrderService;
@Resource
private HighCouponService couponService;
@Resource
private HighCouponCodeService highCouponCodeService;
@ -117,39 +115,6 @@ public class HighOrderController {
}
@RequestMapping(value = "/getOrderCouponList", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "获取卡券订单列表")
public ResponseData getUserOrderList(@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize,
@RequestParam(name = "status", required = false) Integer status,
@RequestParam(name = "couponId", required = false) Integer couponId,
@RequestParam(name = "salesCode", required = false) Integer salesCode,
HttpServletRequest request) {
try {
Map<String,Object> map = new HashMap<>();
SessionObject sessionObject = userCenter.getSessionObject(request);
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject();
if (userInfoModel.getBsCompany() == null) {
log.error("HighCouponController -> getCouponList() error!","权限不足");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
}
// map.put("companyId", userInfoModel.getBsCompany().getId());
map.put("couponId", couponId);
map.put("salesCode", salesCode);
map.put("status", status);
PageHelper.startPage(pageNum,pageSize);
return ResponseMsgUtil.success(new PageInfo<>(highCouponCodeService.getCouponCodeList(map)));
} catch (Exception e) {
log.error("HighOrderController --> getUserOrderList() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/getOrderBList", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "获取用户订单")

File diff suppressed because one or more lines are too long

@ -68,7 +68,6 @@ mybatis:
- classpath*:sqlmap*/*.xml
type-aliases-package:
org.springboot.sample.entity
jetcache:
statIntervalMinutes: 15
areaInCacheName: false

@ -124,6 +124,9 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/highGas/*")
.excludePathPatterns("/wechat/*")
.excludePathPatterns("/tuanyou/*")
.excludePathPatterns("/notify/*")
.excludePathPatterns("/highOrder/getOrderByOrderNo")
.excludePathPatterns("/coupon/getUserCouponByOrderNo")
.excludePathPatterns("/unionPay/*")
.excludePathPatterns("/highGas/*")
.excludePathPatterns("/common/*")

@ -1,17 +1,21 @@
package com.cweb.controller;
import com.alibaba.fastjson.JSONObject;
import com.cweb.config.SysConst;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hai.common.QRCodeGenerator;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.security.SessionObject;
import com.hai.common.security.UserCenter;
import com.hai.common.utils.DateUtil;
import com.hai.common.utils.IDGenerator;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.entity.BsCompany;
import com.hai.entity.HighCoupon;
import com.hai.entity.HighUserCoupon;
import com.hai.entity.SecRegion;
import com.hai.config.ChongQingCNPCService;
import com.hai.config.CommonSysConst;
import com.hai.entity.*;
import com.hai.model.HighUserCouponModel;
import com.hai.model.HighUserModel;
import com.hai.model.ResponseData;
@ -27,6 +31,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.net.URLEncoder;
import java.util.*;
/**
@ -56,6 +61,12 @@ public class HighCouponController {
@Resource
private HighUserCouponService highUserCouponService;
@Resource
private HighCouponCodeOtherService couponCodeOtherService;
@Resource
private HighOrderService orderService;
@Resource
private HighMerchantStoreService highMerchantStoreService;
@ -201,6 +212,90 @@ public class HighCouponController {
}
}
@RequestMapping(value = "/getUserCouponByOrderNo", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "根据订单号 查询用户卡券")
public ResponseData getUserCouponByOrderNo(@RequestParam(name = "orderNo", required = true) String orderNo, HttpServletRequest request) {
try {
// 用户
SessionObject sessionObject = userCenter.getSessionObject(request);
HighUserModel userInfoModel = (HighUserModel) sessionObject.getObject();
HighOrder order = orderService.getOrderByOrderNo(orderNo);
if (order == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到订单");
}
// 查询最新一张可用的卡券
HighUserCoupon newCoupon = highUserCouponService.getUserCouponByOrder(userInfoModel.getHighUser().getId(), order.getId());
if (newCoupon != null) {
Map<String, Object> map = new HashMap<>();
map.put("highUserCoupon", newCoupon);
map.put("couponInfo", highCouponService.getCouponById(newCoupon.getCouponId()));
map.put("couponCodeInfo", highCouponCodeService.getCouponCodeById(newCoupon.getCouponCodeId()));
return ResponseMsgUtil.success(map);
}
return ResponseMsgUtil.success(null);
} catch (Exception e) {
log.error("HighCouponController --> getUserNewCouponDetail() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/getVerifyQRCode", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "获取核销二维码")
public ResponseData getVerifyQRCode(@RequestParam(name = "userCouponId", required = true) Long userCouponId) {
try {
// 用户
HighUserModel userInfoModel = userCenter.getSessionModel(HighUserModel.class);
if (userInfoModel == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "用户信息错误");
}
// 查询最新一张可用的卡券
HighUserCoupon userCoupon = highUserCouponService.getDetailById(userCouponId);
if (userCoupon == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "生成失败");
}
if (!userCoupon.getStatus().equals(1)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "状态异常,无法生成");
}
if (!userCoupon.getUserId().equals(userInfoModel.getHighUser().getId())) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "用户异常,无法生成");
}
HighCouponCodeOther couponCodeOther = couponCodeOtherService.getDetailByCouNo(userCoupon.getQrCodeImg());
if (couponCodeOther == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到卡券订单");
}
HighOrder order = orderService.getOrderById(couponCodeOther.getOrderId());
if (order == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到交易订单");
}
// 类型: 1 贵州中石化 2 重庆中石油
if (couponCodeOther.getType() != null && couponCodeOther.getType().equals(2)) {
// 获取动态核销码
JSONObject code = ChongQingCNPCService.getCNPCCheckCode(couponCodeOther.getCouNo(), order.getOrderNo());
// 生成二维码
String qrCodeImgUrl = DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(1) +".jpg";
QRCodeGenerator.generateQRCodeImage(code.getString("checkCode"), 350, 350, SysConst.getSysConfig().getFileUrl()+"/temporary/"+qrCodeImgUrl);
return ResponseMsgUtil.success(qrCodeImgUrl);
}
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "生成失败");
} catch (Exception e) {
log.error("HighCouponController --> getVerifyQRCode() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/againReceiveCoupon", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "卡卷过期,再次领取")

@ -211,7 +211,7 @@ public class HighOrderController {
childOrder.setGoodsPrice(coupon.getDiscountPrice());
}
// 贵州中石化
if (coupon.getCouponSource() != 4) {
if (coupon.getCouponSource() != 4 && coupon.getCouponSource() != 5) {
if (highCouponCodeService.getStockCountByCoupon(coupon.getId()) <= 0) {
log.error("HighOrderController --> addOrder() error!", "卡卷库存数量不足");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "系统维护中");
@ -572,6 +572,20 @@ public class HighOrderController {
}
}
@RequestMapping(value = "/getOrderByOrderNo", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "根据订单号查询订单详情")
public ResponseData getOrderByOrderNo(@RequestParam(name = "orderNo", required = true) String orderNo) {
try {
return ResponseMsgUtil.success(highOrderService.getOrderByOrderNo(orderNo));
} catch (Exception e) {
log.error("HighOrderController --> getOrderByOrderNo() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/getOrderById", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "根据id查询订单详情")

File diff suppressed because one or more lines are too long

@ -0,0 +1,114 @@
package com.cweb.controller;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult;
import cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo;
import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
import com.alibaba.fastjson.JSONObject;
import com.cweb.config.SysConst;
import com.cweb.config.WxMaConfiguration;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.security.SessionObject;
import com.hai.common.security.UserCenter;
import com.hai.common.utils.*;
import com.hai.config.ChongQingCNPCService;
import com.hai.config.CommonSysConst;
import com.hai.dao.HighGasOrderPushMapper;
import com.hai.entity.*;
import com.hai.enum_type.OrderPushType;
import com.hai.model.HighUserModel;
import com.hai.model.ResponseData;
import com.hai.service.HighCouponCodeOtherService;
import com.hai.service.HighUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;
@Controller
@RequestMapping(value = "/notify")
@Api(value = "通知")
public class NotifyController {
private static final Logger log = LoggerFactory.getLogger(NotifyController.class);
@Resource
private HighCouponCodeOtherService couponCodeOtherService;
@Resource
private HighGasOrderPushMapper highGasOrderPushMapper;
@RequestMapping(value = "/cqCnpcNotify", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "重庆中石油通知")
public Object cqCnpcNotify(@RequestBody String paramsStr) {
System.out.println(paramsStr);
log.info(paramsStr);
try {
if (StringUtils.isNotBlank(paramsStr)) {
JSONObject sendMessage = JSONObject.parseObject(paramsStr).getJSONObject("sendMessage");
JSONObject body = ChongQingCNPCService.decryptBody(sendMessage.getString("body"));
couponCodeOtherService.cqCnpcUseNotify(body);
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(body.getString("tradeId"));
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent("核销回调");
highGasOrderPush.setReturnContent(paramsStr);
highGasOrderPushMapper.insert(highGasOrderPush);
Map<String, Object> param = new HashMap<>();
param.put("status", 1);
param.put("msg", "成功");
String verifyCode = AESTool.Encrypt(JSONObject.toJSONString(param), CommonSysConst.getSysConfig().getChongQingCnpcMerKey());
Map<String, Object> returnContent = new HashMap<>();
Map<String, Object> returnPostMessage = new HashMap<>();
Map<String, Object> returnHead = new HashMap<>();
returnHead.put("verifyCode", MD5Util.encode((verifyCode + CommonSysConst.getSysConfig().getChongQingCnpcMerKey()).getBytes()).toLowerCase());
returnHead.put("requestType", "couponNotice");
returnPostMessage.put("head", returnHead);
returnPostMessage.put("body", verifyCode);
returnContent.put("postMessage", returnPostMessage);
return returnContent;
} else {
Map<String, Object> param = new HashMap<>();
param.put("status", 0);
param.put("msg", "解析参数错误");
String verifyCode = AESTool.Encrypt(JSONObject.toJSONString(param), CommonSysConst.getSysConfig().getChongQingCnpcMerKey());
Map<String, Object> returnContent = new HashMap<>();
Map<String, Object> returnPostMessage = new HashMap<>();
Map<String, Object> returnHead = new HashMap<>();
returnHead.put("verifyCode", MD5Util.encode((verifyCode + CommonSysConst.getSysConfig().getChongQingCnpcMerKey()).getBytes()).toLowerCase());
returnHead.put("requestType", "couponNotice");
returnPostMessage.put("head", returnHead);
returnPostMessage.put("body", verifyCode);
returnContent.put("postMessage", returnPostMessage);
return returnContent;
}
} catch (Exception e) {
return null;
// return ResponseMsgUtil.exception(e);
}
}
}

@ -227,6 +227,8 @@ public class UnionPayController {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
@ -248,6 +250,55 @@ public class UnionPayController {
highGasOrderPush.setReturnContent(returnParam.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
} else if (coupon.getCouponSource() == 5) {
// 给用户发码
JSONObject sendResponse = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), order.getOrderNo(), highChildOrder.getSaleCount(), order.getMemPhone());
// 推送记录
JSONObject sendRequest = new JSONObject();
sendRequest.put("requestCode", coupon.getCouponKey());
sendRequest.put("tradeId", order.getOrderNo());
sendRequest.put("ticketSum", highChildOrder.getSaleCount());
sendRequest.put("phone", order.getMemPhone());
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(order.getOrderNo());
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent(sendRequest.toJSONString());
highGasOrderPush.setReturnContent(sendResponse.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
JSONObject couponDetail = sendResponse.getJSONObject("ticketDetail");
JSONArray codeList = sendResponse.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setOrderId(order.getId());
couponCodeOther.setChildOrderId(highChildOrder.getId());
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
highUserCoupon.setCreateTime(new Date());
highUserCoupon.setQrCodeImg(couponCodeOther.getCouNo());
highUserCoupon.setUseEndTime(couponCodeOther.getValidEndDate());
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
highUserCouponMapper.insert(highUserCoupon);
}
} else {
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId());
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
@ -255,6 +306,8 @@ public class UnionPayController {
highCouponCodeService.updateCouponCode(code);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(code.getMerchantId());
highUserCoupon.setCouponId(code.getCouponId());
highUserCoupon.setUserId(order.getMemId());

@ -69,4 +69,25 @@
<logger name="com.hai" level="ERROR">
<appender-ref ref="errorlog" />
</logger>
<appender name="ChongQingCNPC" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>log/ChongQingCNPCService.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>log/ChongQingCNPCService.log.%d.%i</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 64 MB -->
<maxFileSize>64 MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>
%d %p (%file:%line\)- %m%n
</pattern>
<charset>UTF-8</charset> <!-- 此处设置字符集 -->
</encoder>
</appender>
<logger name="com.hai.config.ChongQingCNPCService" level="INFO">
<appender-ref ref="ChongQingCNPC" />
</logger>
</configuration>

@ -1,175 +0,0 @@
package com.web.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.security.UserCenter;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.enum_type.UserObjectTypeEnum;
import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel;
import com.hai.order.service.OrderService;
import com.hai.order.service.OrderServiceExt;
import com.hai.service.HighGasOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
/**
* @className: OrderExtController
* @author: HuRui
* @date: 2022/9/14
**/
@Controller
@RequestMapping(value = "bweb")
@Api(value = "订单业务")
public class OrderBWebController {
private static Logger log = LoggerFactory.getLogger(OrderBWebController.class);
@Resource
private UserCenter userCenter;
@Resource
private OrderService orderService;
@Resource
private OrderServiceExt orderServiceExt;
@Resource
private HighGasOrderService gasOrderService;
@RequestMapping(value="/getCouponOrderList",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询卡券订单列表")
public ResponseData getCouponOrderList(@RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "childOrderNo", required = false) String childOrderNo,
@RequestParam(name = "goodsId", required = false) Long goodsId,
@RequestParam(name = "goodsName", required = false) String goodsName,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "refundTimeS", required = false) Long refundTimeS,
@RequestParam(name = "refundTimeE", required = false) Long refundTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize
) {
try {
Map<String, Object> param = new HashMap<>();
param.put("companyId", companyId);
param.put("orderNo", orderNo);
param.put("orderStatus", orderStatus);
param.put("childOrderNo", childOrderNo);
param.put("goodsId", goodsId);
param.put("goodsName", goodsName);
param.put("createTimeS", createTimeS);
param.put("createTimeE", createTimeE);
param.put("payTimeS", payTimeS);
param.put("payTimeE", payTimeE);
param.put("refundTimeS", refundTimeS);
param.put("refundTimeE", refundTimeE);
PageHelper.startPage(pageNum, pageSize);
return ResponseMsgUtil.success(orderServiceExt.getOrderCouponList(param));
} catch (Exception e) {
log.error("OrderExtController -> getCouponOrderList() error!",e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value="/getGasOrderList",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询油站订单列表")
public ResponseData getGasOrderList(@RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "merId", required = false) Long merId,
@RequestParam(name = "storeId", required = false) Long storeId,
@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "childOrderNo", required = false) String childOrderNo,
@RequestParam(name = "gasOilType", required = false) Integer gasOilType,
@RequestParam(name = "gasOilNo", required = false) String gasOilNo,
@RequestParam(name = "status", required = false) Integer status,
@RequestParam(name = "gasSalesmanId", required = false) Long gasSalesmanId,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "refundTimeS", required = false) Long refundTimeS,
@RequestParam(name = "refundTimeE", required = false) Long refundTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize
) {
try {
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class);
if (userInfoModel == null) {
log.error("OrderBWebController -> getGasOrderList() error!", "用户身份错误或已过期");
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, "");
}
Map<String, Object> param = new HashMap<>();
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) {
param.put("companyId", companyId);
param.put("merId", merId);
param.put("storeId", storeId);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) {
param.put("companyId", userInfoModel.getBsCompany().getId());
param.put("merId", merId);
param.put("storeId", storeId);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type2.getType())) {
param.put("merId", userInfoModel.getMerchant().getId());
param.put("storeId", storeId);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type3.getType())) {
param.put("storeId", userInfoModel.getMerchantStore().getId());
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) {
param.put("gasAgentId", userInfoModel.getMerchantStore().getId());
param.put("gasSalesmanId", gasSalesmanId);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type7.getType())) {
param.put("gasSalesmanId", userInfoModel.getMerchantStore().getId());
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type8.getType())) {
param.put("gasStaffId", userInfoModel.getGasStaff().getId());
} else {
log.error("OrderBWebController -> getGasOrderList() error!", "未知用户身份");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份");
}
param.put("orderNo", orderNo);
param.put("childOrderNo", childOrderNo);
param.put("status", status);
param.put("createTimeS", createTimeS);
param.put("createTimeE", createTimeE);
param.put("payTimeS", payTimeS);
param.put("payTimeE", payTimeE);
param.put("refundTimeS", refundTimeS);
param.put("refundTimeE", refundTimeE);
PageHelper.startPage(pageNum, pageSize);
return ResponseMsgUtil.success(new PageInfo<>(gasOrderService.getGasOrderList(param)));
} catch (Exception e) {
log.error("OrderExtController -> getCouponOrderList() error!",e);
return ResponseMsgUtil.exception(e);
}
}
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,189 @@
package com.web.controller.business;
import com.alibaba.excel.EasyExcel;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.security.UserCenter;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.entity.HighCoupon;
import com.hai.entity.HighGasOrder;
import com.hai.enum_type.UserObjectTypeEnum;
import com.hai.enum_type.UserRoleTypeEnum;
import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel;
import com.hai.order.model.ExportGasOrderModel;
import com.hai.order.model.OrderCouponModel;
import com.hai.order.service.OrderService;
import com.hai.order.service.OrderServiceExt;
import com.hai.order.type.OrderOilStatus;
import com.hai.service.HighCouponService;
import com.hai.service.HighGasOrderService;
import com.web.config.SysConst;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.math.BigDecimal;
import java.util.*;
@Controller
@RequestMapping(value = "coupon")
@Api(value = "卡券订单业务")
public class OrderCouponController {
private static Logger log = LoggerFactory.getLogger(OrderCouponController.class);
@Resource
private UserCenter userCenter;
@Resource
private OrderService orderService;
@Resource
private HighCouponService couponService;
@Resource
private OrderServiceExt orderServiceExt;
@RequestMapping(value = "/getOrderList", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询卡券订单列表")
public ResponseData getOrderList(@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "couponName", required = false) String couponName,
@RequestParam(name = "payType", required = false) Integer payType,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "finishTimeS", required = false) Long finishTimeS,
@RequestParam(name = "finishTimeE", required = false) Long finishTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize,
HttpServletRequest request) {
try {
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class);
if (userInfoModel == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
}
Map<String,Object> map = new HashMap<>();
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) {
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) {
map.put("goodsId", couponService.getCouponIdsByCompanyId(userInfoModel.getBsCompany().getId()));
} else {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
}
map.put("orderNo", orderNo);
map.put("memPhone", memPhone);
map.put("couponName", couponName);
map.put("payType", payType);
map.put("orderStatus", orderStatus);
map.put("createTimeS", createTimeS);
map.put("createTimeE", createTimeE);
map.put("payTimeS", payTimeS);
map.put("payTimeE", payTimeE);
map.put("finishTimeS", finishTimeS);
map.put("finishTimeE", finishTimeE);
PageHelper.startPage(pageNum,pageSize);
return ResponseMsgUtil.success(new PageInfo<>(orderServiceExt.getOrderCouponList(map)));
} catch (Exception e) {
log.error("OrderCouponController --> getOrderList() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value = "/exportOrderCouponExcel", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "导出卡券订单")
public ResponseData exportOrderCouponExcel(@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "couponName", required = false) String couponName,
@RequestParam(name = "payType", required = false) Integer payType,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "finishTimeS", required = false) Long finishTimeS,
@RequestParam(name = "finishTimeE", required = false) Long finishTimeE,
HttpServletRequest request) {
try {
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class);
if (userInfoModel == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
}
Map<String,Object> map = new HashMap<>();
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) {
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) {
map.put("goodsId", couponService.getCouponIdsByCompanyId(userInfoModel.getBsCompany().getId()));
} else {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
}
map.put("orderNo", orderNo);
map.put("memPhone", memPhone);
map.put("couponName", couponName);
map.put("payType", payType);
map.put("orderStatus", orderStatus);
map.put("createTimeS", createTimeS);
map.put("createTimeE", createTimeE);
map.put("payTimeS", payTimeS);
map.put("payTimeE", payTimeE);
map.put("finishTimeS", finishTimeS);
map.put("finishTimeE", finishTimeE);
List<OrderCouponModel> list = orderServiceExt.getOrderCouponList(map);
String fileName = "/temporary/" + System.currentTimeMillis() + ".xlsx";
EasyExcel.write(SysConst.getSysConfig().getFileUrl() + fileName, OrderCouponModel.class)
.sheet("卡券订单")
.doWrite(list);
return ResponseMsgUtil.success(fileName);
} catch (Exception e) {
log.error("HighOrderController --> getUserOrderList() error!", e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value="/getOrderDetail",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询卡券订单详情")
public ResponseData getOrderDetail(@RequestParam(name = "orderNo", required = false) String orderNo) {
try {
Map<String, Object> param = new HashMap<>();
param.put("tradeOrder", orderService.getOrderDetailByNo(orderNo));
return ResponseMsgUtil.success(param);
} catch (Exception e) {
log.error("OrderCouponController -> getOrderDetail() error!",e);
return ResponseMsgUtil.exception(e);
}
}
}

@ -0,0 +1,383 @@
package com.web.controller.business;
import com.alibaba.excel.EasyExcel;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.security.UserCenter;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.entity.HighGasOrder;
import com.hai.enum_type.UserObjectTypeEnum;
import com.hai.enum_type.UserRoleTypeEnum;
import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel;
import com.hai.order.model.ExportGasOrderModel;
import com.hai.order.service.OrderService;
import com.hai.order.service.OrderServiceExt;
import com.hai.order.type.OrderOilStatus;
import com.hai.service.HighGasOrderService;
import com.web.config.SysConst;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.io.File;
import java.math.BigDecimal;
import java.util.*;
@Controller
@RequestMapping(value = "oil")
@Api(value = "加油订单业务")
public class OrderOilController {
private static Logger log = LoggerFactory.getLogger(OrderOilController.class);
@Resource
private UserCenter userCenter;
@Resource
private OrderService orderService;
@Resource
private OrderServiceExt orderServiceExt;
@Resource
private HighGasOrderService gasOrderService;
@RequestMapping(value="/getOilOrderList",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询油站订单列表")
public ResponseData getOilOrderList(@RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "merId", required = false) Long merId,
@RequestParam(name = "storeId", required = false) Long storeId,
@RequestParam(name = "storeName", required = false) String storeName,
@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "childOrderNo", required = false) String childOrderNo,
@RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "gasOilType", required = false) Integer gasOilType,
@RequestParam(name = "status", required = false) Integer status,
@RequestParam(name = "gasOrgId", required = false) Long gasOrgId,
@RequestParam(name = "gasAgentId", required = false) Long gasAgentId,
@RequestParam(name = "gasSalesmanId", required = false) Long gasSalesmanId,
@RequestParam(name = "gasStaffName", required = false) String gasStaffName,
@RequestParam(name = "gasOilNo", required = false) String gasOilNo,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "refundTimeS", required = false) Long refundTimeS,
@RequestParam(name = "refundTimeE", required = false) Long refundTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize
) {
try {
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class);
if (userInfoModel == null) {
log.error("OrderBWebController -> getGasOrderList() error!", "用户身份错误或已过期");
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, "");
}
Map<String, Object> param = new HashMap<>();
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) {
param.put("companyId", companyId);
param.put("merId", merId);
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasOrgId", gasOrgId);
param.put("gasAgentId", gasAgentId);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) {
param.put("companyId", userInfoModel.getBsCompany().getId());
param.put("merId", merId);
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type2.getType())) {
param.put("merId", userInfoModel.getMerchant().getId());
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type3.getType())) {
param.put("storeId", userInfoModel.getMerchantStore().getId());
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) {
param.put("gasAgentId", userInfoModel.getHighTyAgent().getId());
param.put("gasSalesmanId", gasSalesmanId);
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type7.getType())) {
param.put("gasSalesmanId", userInfoModel.getHighTySalesman().getId());
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type8.getType())) {
param.put("gasStaffId", userInfoModel.getGasStaff().getId());
param.put("storeId", storeId);
param.put("storeName", storeName);
} else {
log.error("OrderBWebController -> getGasOrderList() error!", "未知用户身份");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份");
}
param.put("gasOrgId", gasOrgId);
param.put("gasAgentId", gasAgentId);
param.put("gasSalesmanId", gasAgentId);
param.put("memPhone", memPhone);
param.put("gasOilNo", gasOilNo);
param.put("orderNo", orderNo);
param.put("childOrderNo", childOrderNo);
param.put("status", status);
param.put("createTimeS", createTimeS);
param.put("createTimeE", createTimeE);
param.put("payTimeS", payTimeS);
param.put("payTimeE", payTimeE);
param.put("refundTimeS", refundTimeS);
param.put("refundTimeE", refundTimeE);
PageHelper.startPage(pageNum, pageSize);
return ResponseMsgUtil.success(new PageInfo<>(gasOrderService.getGasOrderList(param)));
} catch (Exception e) {
log.error("OrderExtController -> getCouponOrderList() error!",e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value="/getOilOrderDetail",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询油站详情")
public ResponseData getOilOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) {
try {
Map<String, Object> map = new HashMap<>();
map.put("tradeOrder", orderService.getOrderDetailByNo(orderNo));
map.put("gasOrder", gasOrderService.getDetailByOrderNo(orderNo));
return ResponseMsgUtil.success(map);
} catch (Exception e) {
log.error("OrderExtController -> getGasOrderDetail() error!",e);
return ResponseMsgUtil.exception(e);
}
}
@RequestMapping(value="/exportOilOrder",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "导出加油订单")
public ResponseData exportOilOrder(@RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "merId", required = false) Long merId,
@RequestParam(name = "storeId", required = false) Long storeId,
@RequestParam(name = "storeName", required = false) String storeName,
@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "childOrderNo", required = false) String childOrderNo,
@RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "gasOilType", required = false) Integer gasOilType,
@RequestParam(name = "status", required = false) Integer status,
@RequestParam(name = "gasOrgId", required = false) Long gasOrgId,
@RequestParam(name = "gasAgentId", required = false) Long gasAgentId,
@RequestParam(name = "gasSalesmanId", required = false) Long gasSalesmanId,
@RequestParam(name = "gasStaffName", required = false) String gasStaffName,
@RequestParam(name = "gasOilNo", required = false) String gasOilNo,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "refundTimeS", required = false) Long refundTimeS,
@RequestParam(name = "refundTimeE", required = false) Long refundTimeE
) {
try {
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class);
if (userInfoModel == null) {
log.error("OrderBWebController -> exportGasOrderList() error!", "用户身份错误或已过期");
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, "");
}
Map<String, Object> param = new HashMap<>();
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) {
param.put("companyId", companyId);
param.put("merId", merId);
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasOrgId", gasOrgId);
param.put("gasAgentId", gasAgentId);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) {
param.put("companyId", userInfoModel.getBsCompany().getId());
param.put("merId", merId);
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type2.getType())) {
param.put("merId", userInfoModel.getMerchant().getId());
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type3.getType())) {
param.put("storeId", userInfoModel.getMerchantStore().getId());
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type6.getType())) {
param.put("gasAgentId", userInfoModel.getHighTyAgent().getId());
param.put("gasSalesmanId", gasSalesmanId);
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type7.getType())) {
param.put("gasSalesmanId", userInfoModel.getHighTySalesman().getId());
param.put("storeId", storeId);
param.put("storeName", storeName);
param.put("gasStaffName", gasStaffName);
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type8.getType())) {
param.put("gasStaffId", userInfoModel.getGasStaff().getId());
param.put("storeId", storeId);
param.put("storeName", storeName);
} else {
log.error("OrderBWebController -> getGasOrderList() error!", "未知用户身份");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份");
}
param.put("gasOrgId", gasOrgId);
param.put("gasAgentId", gasAgentId);
param.put("gasSalesmanId", gasAgentId);
param.put("memPhone", memPhone);
param.put("gasOilNo", gasOilNo);
param.put("orderNo", orderNo);
param.put("childOrderNo", childOrderNo);
param.put("status", status);
param.put("createTimeS", createTimeS);
param.put("createTimeE", createTimeE);
param.put("payTimeS", payTimeS);
param.put("payTimeE", payTimeE);
param.put("refundTimeS", refundTimeS);
param.put("refundTimeE", refundTimeE);
// 查询数据
List<HighGasOrder> orderList = gasOrderService.getGasOrderList(param);
List<ExportGasOrderModel> dataList = new ArrayList<>();
ExportGasOrderModel model;
for (HighGasOrder gasOrder : orderList) {
model = new ExportGasOrderModel();
model.setOrderNo(gasOrder.getOrderNo());
model.setStoreName(gasOrder.getStoreName());
model.setGasStaffName(gasOrder.getGasStaffName());
model.setMemPhone(gasOrder.getMemPhone());
model.setGasRefuelPrice(gasOrder.getGasRefuelPrice());
model.setGasOilLiters(gasOrder.getGasOilLiters());
model.setGasDiscount(gasOrder.getGasDiscount().compareTo(new BigDecimal("1")) != 0?gasOrder.getGasDiscount().multiply(new BigDecimal("100")).setScale(2).toString():"无");
model.setGasOilSubsidy(gasOrder.getGasOilSubsidy());
model.setGasOilNo(gasOrder.getGasOilNo() + "#");
model.setGasGunNo(gasOrder.getGasGunNo() + "号枪");
model.setGasPricePlatform(gasOrder.getGasPricePlatform());
model.setGasPriceGun(gasOrder.getGasPriceGun());
model.setGasPriceOfficial(gasOrder.getGasPriceOfficial());
model.setDeductionPrice(gasOrder.getDeductionPrice());
model.setPayablePrice(gasOrder.getPayablePrice());
model.setPayGold(gasOrder.getPayGold());
model.setPayPrice(gasOrder.getPayPrice()!=null?gasOrder.getPayPrice().toString():"未支付");
model.setStatus(OrderOilStatus.getNameByType(gasOrder.getStatus()));
model.setCreateTime(gasOrder.getCreateTime());
model.setPayTime(gasOrder.getPayTime());
model.setRefundTime(gasOrder.getRefundTime());
model.setCancelTime(gasOrder.getCancelTime());
model.setCompanyName(gasOrder.getMerName());
model.setMerName(gasOrder.getMerName());
model.setGasSalesmanName(gasOrder.getGasSalesmanName());
model.setGasAgentName(gasOrder.getGasAgentName());
model.setGasOrgName(gasOrder.getGasOrgName());
dataList.add(model);
}
String fileUrl = SysConst.getSysConfig().getFileUrl() + "/temporary/";
String pathName = System.currentTimeMillis()+".xlsx";
File file = new File(fileUrl);
if (!file.exists()) {
file.mkdirs();
}
Set<String> includeColumnFiledNames = new HashSet<String>();
includeColumnFiledNames.add("orderNo");
includeColumnFiledNames.add("memPhone");
includeColumnFiledNames.add("gasRefuelPrice");
includeColumnFiledNames.add("gasOilLiters");
includeColumnFiledNames.add("gasDiscount");
includeColumnFiledNames.add("gasOilSubsidy");
includeColumnFiledNames.add("gasOilNo");
includeColumnFiledNames.add("gasGunNo");
includeColumnFiledNames.add("gasPricePlatform");
includeColumnFiledNames.add("gasPriceGun");
includeColumnFiledNames.add("gasPriceOfficial");
includeColumnFiledNames.add("deductionPrice");
includeColumnFiledNames.add("payablePrice");
includeColumnFiledNames.add("payGold");
includeColumnFiledNames.add("payPrice");
includeColumnFiledNames.add("status");
includeColumnFiledNames.add("createTime");
includeColumnFiledNames.add("payTime");
includeColumnFiledNames.add("refundTime");
includeColumnFiledNames.add("cancelTime");
if (!userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type3.getType())
&& !userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type10.getType())) {
includeColumnFiledNames.add("storeName");
}
if (!userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type10.getType())) {
includeColumnFiledNames.add("gasStaffName");
}
if (userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type0.getType())
|| userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type1.getType())) {
includeColumnFiledNames.add("companyName");
}
if (userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type0.getType())
|| userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type1.getType())
|| userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type5.getType())) {
includeColumnFiledNames.add("merName");
includeColumnFiledNames.add("gasOrgName");
includeColumnFiledNames.add("gasAgentName");
}
if (userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type0.getType())
|| userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type1.getType())
|| userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type5.getType())
|| userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type8.getType())) {
includeColumnFiledNames.add("gasSalesmanName");
}
EasyExcel.write(fileUrl+pathName)
.head(ExportGasOrderModel.class)
.includeColumnFiledNames(includeColumnFiledNames)
.sheet("交易订单")
.doWrite(dataList);
return ResponseMsgUtil.success(pathName);
} catch (Exception e) {
log.error("OrderExtController -> exportGasOrderList() error!",e);
return ResponseMsgUtil.exception(e);
}
}
}

@ -0,0 +1,126 @@
package com.hai.common.utils;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import java.util.Calendar;
/**
* @className: AESTool
* @author: HuRui
* @date: 2022/9/27
**/
public class AESTool {
public static String Encrypt(String sSrc, String sKey)
{
try
{
return toHex(encryptBytes(sSrc.getBytes("utf-8"), sKey));
} catch (Exception ex) {
throw new RuntimeException(ex.toString());
}
}
public static byte[] encrypt(byte[] sSrc, String sKey) {
try {
return encryptBytes(sSrc, sKey);
} catch (Exception ex) {
throw new RuntimeException(ex.toString());
}
}
public static byte[] encryptBytes(byte[] sSrc, String sKey) throws Exception
{
if (sKey == null) {
throw new Exception("Key为空null");
}
if (sKey.length() != 16) {
throw new Exception("Key长度不是16位");
}
byte[] raw = sKey.getBytes("utf-8");
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(1, skeySpec);
byte[] encrypted = cipher.doFinal(sSrc);
return encrypted;
}
public static String Decrypt(String sSrc, String sKey)
{
try {
return new String(decryptBytes(toBytes(sSrc), sKey), "utf-8");
} catch (Exception ex) {
throw new RuntimeException(ex.toString());
}
}
public static byte[] decrypt(byte[] sSrc, String sKey) {
try {
return decryptBytes(sSrc, sKey);
} catch (Exception ex) {
throw new RuntimeException(ex.toString());
}
}
public static byte[] decryptBytes(byte[] sSrc, String sKey)
throws Exception
{
if (sKey == null) {
throw new Exception("Key为空null");
}
if (sKey.length() != 16) {
throw new Exception("Key长度不是16位");
}
byte[] raw = sKey.getBytes("utf-8");
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(2, skeySpec);
byte[] original = cipher.doFinal(sSrc);
return original;
}
public static String toHex(byte[] buf)
{
if (buf == null)
return "";
StringBuffer result = new StringBuffer(2 * buf.length);
for (int i = 0; i < buf.length; i++) {
appendHex(result, buf[i]);
}
return result.toString();
}
private static void appendHex(StringBuffer sb, byte b) {
sb.append("0123456789ABCDEF".charAt(b >> 4 & 0xF)).append("0123456789ABCDEF".charAt(b & 0xF));
}
public static byte[] toBytes(String hexString)
{
int len = hexString.length() / 2;
byte[] result = new byte[len];
for (int i = 0; i < len; i++)
result[i] = Integer.valueOf(hexString.substring(2 * i, 2 * i + 2),
16).byteValue();
return result;
}
public static void main(String[] args) {
Calendar cal = Calendar.getInstance();
cal.add(5, 10);
String str = "1,13439676580," + cal.getTimeInMillis();
String key = "0123456789ABCDEF";
String token = Encrypt(str, key);
System.out.println(token);
System.out.println(Decrypt(token, key));
}
}

@ -0,0 +1,29 @@
package com.hai.common.utils;
import java.util.ArrayList;
import java.util.List;
/**
* excel工具类
* @className: ExcelUtils
* @author: HuRui
* @date: 2022/9/20
**/
public class ExcelUtils {
/**
* 生成头部
* @param headList
* @return
*/
public static List<List<String>> generationHead(List<String> headList) {
List<List<String>> list = new ArrayList<>();
List<String> head;
for (String headStr : headList) {
head = new ArrayList<>();
head.add(headStr);
list.add(head);
}
return list;
}
}

@ -0,0 +1,134 @@
package com.hai.config;
import com.alibaba.fastjson.JSONObject;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.utils.AESTool;
import com.hai.common.utils.HttpsUtils;
import com.hai.common.utils.MD5Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
/**
* 重庆中石油
* @className: CqPetroChina
* @author: HuRui
* @date: 2022/9/26
**/
public class ChongQingCNPCService {
private static Logger log = LoggerFactory.getLogger(ChongQingCNPCService.class);
/**
* 发放电子券
* @param requestCode
* @param tradeId
* @param ticketSum
* @param phone
*/
public static JSONObject sendCNPCTicket(String requestCode, String tradeId, Integer ticketSum, String phone) throws Exception {
Map<String, Object> map = new HashMap<>();
map.put("requestCode", requestCode);
map.put("tradeId", tradeId);
map.put("ticketSum", ticketSum);
map.put("phone", phone);
return request("sendCNPCTicket", map);
}
/**
* 获取中石油跨界券核销码
* @param couponNo
* @param tradeId
* @return
*/
public static JSONObject getCNPCCheckCode(String couponNo, String tradeId) throws Exception {
Map<String, Object> map = new HashMap<>();
map.put("couponNo", couponNo);
map.put("tradeId", tradeId);
return request("getCNPCCheckCode", map);
}
/**
* 获取电子券详情
* @param couponNo
* @return
*/
public static JSONObject queryCoupon(String couponNo) throws Exception {
Map<String, Object> map = new HashMap<>();
map.put("couponNo", couponNo);
map.put("random", String.valueOf(new Random().nextInt(899999) + 100000));
return request("queryCoupon", map);
}
/**
* 请求
* @param actionType 接口类型
* @param param 参数
* @return
* @throws Exception
*/
public static JSONObject request(String actionType, Map<String,Object> param) throws Exception {
String verifyCode = AESTool.Encrypt(JSONObject.toJSONString(param), CommonSysConst.getSysConfig().getChongQingCnpcMerKey());
JSONObject header = new JSONObject();
header.put("strVendorCode", CommonSysConst.getSysConfig().getChongQingCnpcMerNo());
header.put("strActionType", actionType);
header.put("verifyCode", MD5Util.encode((verifyCode + CommonSysConst.getSysConfig().getChongQingCnpcMerKey()).getBytes()).toLowerCase());
JSONObject msg = new JSONObject();
msg.put("head", header);
msg.put("body", verifyCode);
Map<String, Object> reqParam = new HashMap<>();
reqParam.put("sendMessage", msg);
log.info("============start============");
log.info("请求接口:" + actionType);
log.info("参数:" + JSONObject.toJSONString(param));
log.info("请求参数:" + JSONObject.toJSONString(reqParam));
JSONObject response = HttpsUtils.doPost(CommonSysConst.getSysConfig().getChongQingCnpcUrl(), reqParam, new HashMap<>());
log.info("响应参数:" + response.toJSONString());
log.info("============end============");
JSONObject postMessage = response.getJSONObject("postMessage");
if (postMessage == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "请求失败!");
}
// 解密body
JSONObject body = decryptBody(response.getJSONObject("postMessage").getString("body"));
if (!body.getInteger("status").equals(1)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, body.getString("info"));
}
return body;
}
/**
* 解密body
* @param bodyStr body加密字符串
* @return
*/
public static JSONObject decryptBody(String bodyStr) {
// 解密body
String decryptBody = AESTool.Decrypt(bodyStr, CommonSysConst.getSysConfig().getChongQingCnpcMerKey());
return JSONObject.parseObject(decryptBody, JSONObject.class);
}
/**
* 解密电子券码
* @param couponCode 券码加密字符串
* @return 核销码
*/
public static String decryptCouponCode(String couponCode) {
return AESTool.Decrypt(couponCode, CommonSysConst.getSysConfig().getChongQingCnpcCouponSignKey());
}
public static void main(String[] args) {
//System.out.println(AESTool.Decrypt("A9D356D4614F874586EAF8678C8C3E7D8CD0EEF031ADA44DDAA3B342CE4BBE44F115AABE27324A6A1F049619139A1A889FCA0FB48EB6E1EA4B1B50F041961B2D686FE8B9696C02DF95BA99B342747D67ECC7847646C87993CF924F33C1308829","n2j30jxhl3rhuoci"));
System.out.println(AESTool.Decrypt("FD65F7651FF24F67FCCC2690F03650ABEEEFA7681C9C98A45BF82C7E17776A728B68E6E6C87A4C9F444A6D64CCB025604AC6E8CD4ACB2D2EF266857191370B205FFBAA95958C4801050E3B4AE2057220","n2j30jxhl3rhuoci"));
//System.out.println(AESTool.Decrypt("3549AD565800370205265D7518D26E5F40C90A61FDEB5DD73966126A5D25F5E9","5ojldakiz343a6yk"));
}
}

@ -15,6 +15,12 @@ public class CommonSysConfig {
// 加油站默认图片
private String gasDefaultOilStationImg;
// 重庆壳牌
private String ChongQingCnpcUrl; // 请求地址
private String ChongQingCnpcMerNo; // 商户号
private String ChongQingCnpcMerKey; // 商户秘钥
private String ChongQingCnpcCouponSignKey; // 电子券签名秘钥
private String tuanYouUrl;
private String tuanYouAppKey;
private String tuanYouAppSecret;
@ -101,6 +107,38 @@ public class CommonSysConfig {
private String fileUrl;
public String getChongQingCnpcUrl() {
return ChongQingCnpcUrl;
}
public void setChongQingCnpcUrl(String chongQingCnpcUrl) {
ChongQingCnpcUrl = chongQingCnpcUrl;
}
public String getChongQingCnpcMerNo() {
return ChongQingCnpcMerNo;
}
public void setChongQingCnpcMerNo(String chongQingCnpcMerNo) {
ChongQingCnpcMerNo = chongQingCnpcMerNo;
}
public String getChongQingCnpcMerKey() {
return ChongQingCnpcMerKey;
}
public void setChongQingCnpcMerKey(String chongQingCnpcMerKey) {
ChongQingCnpcMerKey = chongQingCnpcMerKey;
}
public String getChongQingCnpcCouponSignKey() {
return ChongQingCnpcCouponSignKey;
}
public void setChongQingCnpcCouponSignKey(String chongQingCnpcCouponSignKey) {
ChongQingCnpcCouponSignKey = chongQingCnpcCouponSignKey;
}
public String getJzAppId() {
return jzAppId;
}

@ -44,15 +44,17 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt
"cou_type_code, cou_no, ",
"`status`, active_time, ",
"valid_start_date, valid_end_date, ",
"create_time, ext_1, ",
"ext_2, ext_3)",
"use_time, station_code, ",
"station_name, create_time, ",
"ext_1, ext_2, ext_3)",
"values (#{type,jdbcType=INTEGER}, #{couponAgentCodeId,jdbcType=BIGINT}, ",
"#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ",
"#{couTypeCode,jdbcType=VARCHAR}, #{couNo,jdbcType=VARCHAR}, ",
"#{status,jdbcType=INTEGER}, #{activeTime,jdbcType=TIMESTAMP}, ",
"#{validStartDate,jdbcType=TIMESTAMP}, #{validEndDate,jdbcType=TIMESTAMP}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
"#{useTime,jdbcType=TIMESTAMP}, #{stationCode,jdbcType=VARCHAR}, ",
"#{stationName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighCouponCodeOther record);
@ -74,6 +76,9 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt
@Result(column="active_time", property="activeTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="valid_start_date", property="validStartDate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="valid_end_date", property="validEndDate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="station_code", property="stationCode", jdbcType=JdbcType.VARCHAR),
@Result(column="station_name", property="stationName", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@ -84,8 +89,8 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt
@Select({
"select",
"id, `type`, coupon_agent_code_id, order_id, child_order_id, cou_type_code, cou_no, ",
"`status`, active_time, valid_start_date, valid_end_date, create_time, ext_1, ",
"ext_2, ext_3",
"`status`, active_time, valid_start_date, valid_end_date, use_time, station_code, ",
"station_name, create_time, ext_1, ext_2, ext_3",
"from high_coupon_code_other",
"where id = #{id,jdbcType=BIGINT}"
})
@ -101,6 +106,9 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt
@Result(column="active_time", property="activeTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="valid_start_date", property="validStartDate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="valid_end_date", property="validEndDate", jdbcType=JdbcType.TIMESTAMP),
@Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="station_code", property="stationCode", jdbcType=JdbcType.VARCHAR),
@Result(column="station_name", property="stationName", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@ -129,6 +137,9 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt
"active_time = #{activeTime,jdbcType=TIMESTAMP},",
"valid_start_date = #{validStartDate,jdbcType=TIMESTAMP},",
"valid_end_date = #{validEndDate,jdbcType=TIMESTAMP},",
"use_time = #{useTime,jdbcType=TIMESTAMP},",
"station_code = #{stationCode,jdbcType=VARCHAR},",
"station_name = #{stationName,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",

@ -68,6 +68,18 @@ public class HighCouponCodeOtherSqlProvider {
sql.VALUES("valid_end_date", "#{validEndDate,jdbcType=TIMESTAMP}");
}
if (record.getUseTime() != null) {
sql.VALUES("use_time", "#{useTime,jdbcType=TIMESTAMP}");
}
if (record.getStationCode() != null) {
sql.VALUES("station_code", "#{stationCode,jdbcType=VARCHAR}");
}
if (record.getStationName() != null) {
sql.VALUES("station_name", "#{stationName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
}
@ -104,6 +116,9 @@ public class HighCouponCodeOtherSqlProvider {
sql.SELECT("active_time");
sql.SELECT("valid_start_date");
sql.SELECT("valid_end_date");
sql.SELECT("use_time");
sql.SELECT("station_code");
sql.SELECT("station_name");
sql.SELECT("create_time");
sql.SELECT("ext_1");
sql.SELECT("ext_2");
@ -169,6 +184,18 @@ public class HighCouponCodeOtherSqlProvider {
sql.SET("valid_end_date = #{record.validEndDate,jdbcType=TIMESTAMP}");
}
if (record.getUseTime() != null) {
sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}");
}
if (record.getStationCode() != null) {
sql.SET("station_code = #{record.stationCode,jdbcType=VARCHAR}");
}
if (record.getStationName() != null) {
sql.SET("station_name = #{record.stationName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
}
@ -204,6 +231,9 @@ public class HighCouponCodeOtherSqlProvider {
sql.SET("active_time = #{record.activeTime,jdbcType=TIMESTAMP}");
sql.SET("valid_start_date = #{record.validStartDate,jdbcType=TIMESTAMP}");
sql.SET("valid_end_date = #{record.validEndDate,jdbcType=TIMESTAMP}");
sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}");
sql.SET("station_code = #{record.stationCode,jdbcType=VARCHAR}");
sql.SET("station_name = #{record.stationName,jdbcType=VARCHAR}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}");
@ -258,6 +288,18 @@ public class HighCouponCodeOtherSqlProvider {
sql.SET("valid_end_date = #{validEndDate,jdbcType=TIMESTAMP}");
}
if (record.getUseTime() != null) {
sql.SET("use_time = #{useTime,jdbcType=TIMESTAMP}");
}
if (record.getStationCode() != null) {
sql.SET("station_code = #{stationCode,jdbcType=VARCHAR}");
}
if (record.getStationName() != null) {
sql.SET("station_name = #{stationName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
}

@ -42,8 +42,11 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
"insert into high_gas_order (order_no, child_order_no, ",
"channel_type, channel_order_no, ",
"mem_id, mem_phone, ",
"company_id, company_name, ",
"mer_id, mer_name, store_id, ",
"store_name, gas_refuel_price, ",
"store_name, deduction_price, ",
"payable_price, pay_gold, ",
"pay_price, gas_refuel_price, ",
"gas_oil_no, gas_gun_no, ",
"gas_oil_type, gas_price_platform, ",
"gas_price_gun, gas_price_vip, ",
@ -57,17 +60,20 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
"gas_salesman_id, gas_salesman_name, ",
"gas_agent_id, gas_agent_name, ",
"gas_org_id, gas_org_name, ",
"`status`, create_time, ",
"cancel_time, pay_time, ",
"finish_time, refund_time, ",
"pay_type, `status`, ",
"create_time, cancel_time, ",
"pay_time, refund_time, ",
"refund_remarks, ext_1, ",
"ext_2, ext_3, ext_4, ",
"ext_5, ext_6)",
"values (#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ",
"#{channelType,jdbcType=INTEGER}, #{channelOrderNo,jdbcType=VARCHAR}, ",
"#{memId,jdbcType=BIGINT}, #{memPhone,jdbcType=VARCHAR}, ",
"#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ",
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, ",
"#{storeName,jdbcType=VARCHAR}, #{gasRefuelPrice,jdbcType=DECIMAL}, ",
"#{storeName,jdbcType=VARCHAR}, #{deductionPrice,jdbcType=DECIMAL}, ",
"#{payablePrice,jdbcType=DECIMAL}, #{payGold,jdbcType=INTEGER}, ",
"#{payPrice,jdbcType=DECIMAL}, #{gasRefuelPrice,jdbcType=DECIMAL}, ",
"#{gasOilNo,jdbcType=VARCHAR}, #{gasGunNo,jdbcType=VARCHAR}, ",
"#{gasOilType,jdbcType=INTEGER}, #{gasPricePlatform,jdbcType=DECIMAL}, ",
"#{gasPriceGun,jdbcType=DECIMAL}, #{gasPriceVip,jdbcType=DECIMAL}, ",
@ -81,9 +87,9 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
"#{gasSalesmanId,jdbcType=BIGINT}, #{gasSalesmanName,jdbcType=VARCHAR}, ",
"#{gasAgentId,jdbcType=BIGINT}, #{gasAgentName,jdbcType=VARCHAR}, ",
"#{gasOrgId,jdbcType=BIGINT}, #{gasOrgName,jdbcType=VARCHAR}, ",
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{cancelTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ",
"#{finishTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ",
"#{payType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ",
"#{payTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ",
"#{refundRemarks,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, ",
"#{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
@ -104,10 +110,16 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
@Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR),
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT),
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR),
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR),
@Result(column="deduction_price", property="deductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="gas_refuel_price", property="gasRefuelPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="gas_oil_no", property="gasOilNo", jdbcType=JdbcType.VARCHAR),
@Result(column="gas_gun_no", property="gasGunNo", jdbcType=JdbcType.VARCHAR),
@ -135,11 +147,11 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
@Result(column="gas_agent_name", property="gasAgentName", jdbcType=JdbcType.VARCHAR),
@Result(column="gas_org_id", property="gasOrgId", jdbcType=JdbcType.BIGINT),
@Result(column="gas_org_name", property="gasOrgName", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="refund_remarks", property="refundRemarks", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@ -154,13 +166,14 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
@Select({
"select",
"id, order_no, child_order_no, channel_type, channel_order_no, mem_id, mem_phone, ",
"mer_id, mer_name, store_id, store_name, gas_refuel_price, gas_oil_no, gas_gun_no, ",
"company_id, company_name, mer_id, mer_name, store_id, store_name, deduction_price, ",
"payable_price, pay_gold, pay_price, gas_refuel_price, gas_oil_no, gas_gun_no, ",
"gas_oil_type, gas_price_platform, gas_price_gun, gas_price_vip, gas_price_official, ",
"gas_price_cost, gas_price_cost_total, gas_price_channel_pay, gas_oil_liters, ",
"gas_discount, gas_oil_subsidy, gas_liters_preferences, gas_price_preferences, ",
"gas_class_group_id, gas_class_group_name, gas_class_group_task_id, gas_staff_id, ",
"gas_staff_name, gas_salesman_id, gas_salesman_name, gas_agent_id, gas_agent_name, ",
"gas_org_id, gas_org_name, `status`, create_time, cancel_time, pay_time, finish_time, ",
"gas_org_id, gas_org_name, pay_type, `status`, create_time, cancel_time, pay_time, ",
"refund_time, refund_remarks, ext_1, ext_2, ext_3, ext_4, ext_5, ext_6",
"from high_gas_order",
"where id = #{id,jdbcType=BIGINT}"
@ -173,10 +186,16 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
@Result(column="channel_order_no", property="channelOrderNo", jdbcType=JdbcType.VARCHAR),
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_phone", property="memPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT),
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR),
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR),
@Result(column="deduction_price", property="deductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="gas_refuel_price", property="gasRefuelPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="gas_oil_no", property="gasOilNo", jdbcType=JdbcType.VARCHAR),
@Result(column="gas_gun_no", property="gasGunNo", jdbcType=JdbcType.VARCHAR),
@ -204,11 +223,11 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
@Result(column="gas_agent_name", property="gasAgentName", jdbcType=JdbcType.VARCHAR),
@Result(column="gas_org_id", property="gasOrgId", jdbcType=JdbcType.BIGINT),
@Result(column="gas_org_name", property="gasOrgName", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="cancel_time", property="cancelTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="refund_remarks", property="refundRemarks", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@ -237,10 +256,16 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
"channel_order_no = #{channelOrderNo,jdbcType=VARCHAR},",
"mem_id = #{memId,jdbcType=BIGINT},",
"mem_phone = #{memPhone,jdbcType=VARCHAR},",
"company_id = #{companyId,jdbcType=BIGINT},",
"company_name = #{companyName,jdbcType=VARCHAR},",
"mer_id = #{merId,jdbcType=BIGINT},",
"mer_name = #{merName,jdbcType=VARCHAR},",
"store_id = #{storeId,jdbcType=BIGINT},",
"store_name = #{storeName,jdbcType=VARCHAR},",
"deduction_price = #{deductionPrice,jdbcType=DECIMAL},",
"payable_price = #{payablePrice,jdbcType=DECIMAL},",
"pay_gold = #{payGold,jdbcType=INTEGER},",
"pay_price = #{payPrice,jdbcType=DECIMAL},",
"gas_refuel_price = #{gasRefuelPrice,jdbcType=DECIMAL},",
"gas_oil_no = #{gasOilNo,jdbcType=VARCHAR},",
"gas_gun_no = #{gasGunNo,jdbcType=VARCHAR},",
@ -268,11 +293,11 @@ public interface HighGasOrderMapper extends HighGasOrderMapperExt {
"gas_agent_name = #{gasAgentName,jdbcType=VARCHAR},",
"gas_org_id = #{gasOrgId,jdbcType=BIGINT},",
"gas_org_name = #{gasOrgName,jdbcType=VARCHAR},",
"pay_type = #{payType,jdbcType=INTEGER},",
"`status` = #{status,jdbcType=INTEGER},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"cancel_time = #{cancelTime,jdbcType=TIMESTAMP},",
"pay_time = #{payTime,jdbcType=TIMESTAMP},",
"finish_time = #{finishTime,jdbcType=TIMESTAMP},",
"refund_time = #{refundTime,jdbcType=TIMESTAMP},",
"refund_remarks = #{refundRemarks,jdbcType=VARCHAR},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",

@ -52,6 +52,14 @@ public class HighGasOrderSqlProvider {
sql.VALUES("mem_phone", "#{memPhone,jdbcType=VARCHAR}");
}
if (record.getCompanyId() != null) {
sql.VALUES("company_id", "#{companyId,jdbcType=BIGINT}");
}
if (record.getCompanyName() != null) {
sql.VALUES("company_name", "#{companyName,jdbcType=VARCHAR}");
}
if (record.getMerId() != null) {
sql.VALUES("mer_id", "#{merId,jdbcType=BIGINT}");
}
@ -68,6 +76,22 @@ public class HighGasOrderSqlProvider {
sql.VALUES("store_name", "#{storeName,jdbcType=VARCHAR}");
}
if (record.getDeductionPrice() != null) {
sql.VALUES("deduction_price", "#{deductionPrice,jdbcType=DECIMAL}");
}
if (record.getPayablePrice() != null) {
sql.VALUES("payable_price", "#{payablePrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.VALUES("pay_gold", "#{payGold,jdbcType=INTEGER}");
}
if (record.getPayPrice() != null) {
sql.VALUES("pay_price", "#{payPrice,jdbcType=DECIMAL}");
}
if (record.getGasRefuelPrice() != null) {
sql.VALUES("gas_refuel_price", "#{gasRefuelPrice,jdbcType=DECIMAL}");
}
@ -176,6 +200,10 @@ public class HighGasOrderSqlProvider {
sql.VALUES("gas_org_name", "#{gasOrgName,jdbcType=VARCHAR}");
}
if (record.getPayType() != null) {
sql.VALUES("pay_type", "#{payType,jdbcType=INTEGER}");
}
if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}");
}
@ -192,10 +220,6 @@ public class HighGasOrderSqlProvider {
sql.VALUES("pay_time", "#{payTime,jdbcType=TIMESTAMP}");
}
if (record.getFinishTime() != null) {
sql.VALUES("finish_time", "#{finishTime,jdbcType=TIMESTAMP}");
}
if (record.getRefundTime() != null) {
sql.VALUES("refund_time", "#{refundTime,jdbcType=TIMESTAMP}");
}
@ -244,10 +268,16 @@ public class HighGasOrderSqlProvider {
sql.SELECT("channel_order_no");
sql.SELECT("mem_id");
sql.SELECT("mem_phone");
sql.SELECT("company_id");
sql.SELECT("company_name");
sql.SELECT("mer_id");
sql.SELECT("mer_name");
sql.SELECT("store_id");
sql.SELECT("store_name");
sql.SELECT("deduction_price");
sql.SELECT("payable_price");
sql.SELECT("pay_gold");
sql.SELECT("pay_price");
sql.SELECT("gas_refuel_price");
sql.SELECT("gas_oil_no");
sql.SELECT("gas_gun_no");
@ -275,11 +305,11 @@ public class HighGasOrderSqlProvider {
sql.SELECT("gas_agent_name");
sql.SELECT("gas_org_id");
sql.SELECT("gas_org_name");
sql.SELECT("pay_type");
sql.SELECT("`status`");
sql.SELECT("create_time");
sql.SELECT("cancel_time");
sql.SELECT("pay_time");
sql.SELECT("finish_time");
sql.SELECT("refund_time");
sql.SELECT("refund_remarks");
sql.SELECT("ext_1");
@ -333,6 +363,14 @@ public class HighGasOrderSqlProvider {
sql.SET("mem_phone = #{record.memPhone,jdbcType=VARCHAR}");
}
if (record.getCompanyId() != null) {
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
}
if (record.getCompanyName() != null) {
sql.SET("company_name = #{record.companyName,jdbcType=VARCHAR}");
}
if (record.getMerId() != null) {
sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}");
}
@ -349,6 +387,22 @@ public class HighGasOrderSqlProvider {
sql.SET("store_name = #{record.storeName,jdbcType=VARCHAR}");
}
if (record.getDeductionPrice() != null) {
sql.SET("deduction_price = #{record.deductionPrice,jdbcType=DECIMAL}");
}
if (record.getPayablePrice() != null) {
sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.SET("pay_gold = #{record.payGold,jdbcType=INTEGER}");
}
if (record.getPayPrice() != null) {
sql.SET("pay_price = #{record.payPrice,jdbcType=DECIMAL}");
}
if (record.getGasRefuelPrice() != null) {
sql.SET("gas_refuel_price = #{record.gasRefuelPrice,jdbcType=DECIMAL}");
}
@ -457,6 +511,10 @@ public class HighGasOrderSqlProvider {
sql.SET("gas_org_name = #{record.gasOrgName,jdbcType=VARCHAR}");
}
if (record.getPayType() != null) {
sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
}
@ -473,10 +531,6 @@ public class HighGasOrderSqlProvider {
sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}");
}
if (record.getFinishTime() != null) {
sql.SET("finish_time = #{record.finishTime,jdbcType=TIMESTAMP}");
}
if (record.getRefundTime() != null) {
sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}");
}
@ -524,10 +578,16 @@ public class HighGasOrderSqlProvider {
sql.SET("channel_order_no = #{record.channelOrderNo,jdbcType=VARCHAR}");
sql.SET("mem_id = #{record.memId,jdbcType=BIGINT}");
sql.SET("mem_phone = #{record.memPhone,jdbcType=VARCHAR}");
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
sql.SET("company_name = #{record.companyName,jdbcType=VARCHAR}");
sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}");
sql.SET("mer_name = #{record.merName,jdbcType=VARCHAR}");
sql.SET("store_id = #{record.storeId,jdbcType=BIGINT}");
sql.SET("store_name = #{record.storeName,jdbcType=VARCHAR}");
sql.SET("deduction_price = #{record.deductionPrice,jdbcType=DECIMAL}");
sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}");
sql.SET("pay_gold = #{record.payGold,jdbcType=INTEGER}");
sql.SET("pay_price = #{record.payPrice,jdbcType=DECIMAL}");
sql.SET("gas_refuel_price = #{record.gasRefuelPrice,jdbcType=DECIMAL}");
sql.SET("gas_oil_no = #{record.gasOilNo,jdbcType=VARCHAR}");
sql.SET("gas_gun_no = #{record.gasGunNo,jdbcType=VARCHAR}");
@ -555,11 +615,11 @@ public class HighGasOrderSqlProvider {
sql.SET("gas_agent_name = #{record.gasAgentName,jdbcType=VARCHAR}");
sql.SET("gas_org_id = #{record.gasOrgId,jdbcType=BIGINT}");
sql.SET("gas_org_name = #{record.gasOrgName,jdbcType=VARCHAR}");
sql.SET("pay_type = #{record.payType,jdbcType=INTEGER}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("cancel_time = #{record.cancelTime,jdbcType=TIMESTAMP}");
sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}");
sql.SET("finish_time = #{record.finishTime,jdbcType=TIMESTAMP}");
sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}");
sql.SET("refund_remarks = #{record.refundRemarks,jdbcType=VARCHAR}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
@ -602,6 +662,14 @@ public class HighGasOrderSqlProvider {
sql.SET("mem_phone = #{memPhone,jdbcType=VARCHAR}");
}
if (record.getCompanyId() != null) {
sql.SET("company_id = #{companyId,jdbcType=BIGINT}");
}
if (record.getCompanyName() != null) {
sql.SET("company_name = #{companyName,jdbcType=VARCHAR}");
}
if (record.getMerId() != null) {
sql.SET("mer_id = #{merId,jdbcType=BIGINT}");
}
@ -618,6 +686,22 @@ public class HighGasOrderSqlProvider {
sql.SET("store_name = #{storeName,jdbcType=VARCHAR}");
}
if (record.getDeductionPrice() != null) {
sql.SET("deduction_price = #{deductionPrice,jdbcType=DECIMAL}");
}
if (record.getPayablePrice() != null) {
sql.SET("payable_price = #{payablePrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.SET("pay_gold = #{payGold,jdbcType=INTEGER}");
}
if (record.getPayPrice() != null) {
sql.SET("pay_price = #{payPrice,jdbcType=DECIMAL}");
}
if (record.getGasRefuelPrice() != null) {
sql.SET("gas_refuel_price = #{gasRefuelPrice,jdbcType=DECIMAL}");
}
@ -726,6 +810,10 @@ public class HighGasOrderSqlProvider {
sql.SET("gas_org_name = #{gasOrgName,jdbcType=VARCHAR}");
}
if (record.getPayType() != null) {
sql.SET("pay_type = #{payType,jdbcType=INTEGER}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{status,jdbcType=INTEGER}");
}
@ -742,10 +830,6 @@ public class HighGasOrderSqlProvider {
sql.SET("pay_time = #{payTime,jdbcType=TIMESTAMP}");
}
if (record.getFinishTime() != null) {
sql.SET("finish_time = #{finishTime,jdbcType=TIMESTAMP}");
}
if (record.getRefundTime() != null) {
sql.SET("refund_time = #{refundTime,jdbcType=TIMESTAMP}");
}

@ -1284,4 +1284,5 @@ public interface HighOrderMapperExt {
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
})
List<HighOrder> integralRebateOrder();
}

@ -40,21 +40,21 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt {
@Insert({
"insert into high_user_coupon (merchant_id, coupon_id, ",
"user_id, coupon_code_id, ",
"store_id, create_time, ",
"consume_time, use_end_time, ",
"qr_code_img, `status`, ",
"`source`, source_id, ",
"ext_1, ext_2, ext_3, ",
"ext_4)",
"user_id, order_id, child_order_id, ",
"coupon_code_id, store_id, ",
"create_time, consume_time, ",
"use_end_time, qr_code_img, ",
"`status`, `source`, ",
"source_id, ext_1, ext_2, ",
"ext_3, ext_4)",
"values (#{merchantId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, ",
"#{userId,jdbcType=BIGINT}, #{couponCodeId,jdbcType=BIGINT}, ",
"#{storeId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{consumeTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ",
"#{qrCodeImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ",
"#{source,jdbcType=INTEGER}, #{sourceId,jdbcType=BIGINT}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ",
"#{ext4,jdbcType=VARCHAR})"
"#{userId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ",
"#{couponCodeId,jdbcType=BIGINT}, #{storeId,jdbcType=BIGINT}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=TIMESTAMP}, ",
"#{useEndTime,jdbcType=TIMESTAMP}, #{qrCodeImg,jdbcType=VARCHAR}, ",
"#{status,jdbcType=INTEGER}, #{source,jdbcType=INTEGER}, ",
"#{sourceId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighUserCoupon record);
@ -69,6 +69,8 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt {
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT),
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT),
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT),
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT),
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT),
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@ -87,9 +89,9 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt {
@Select({
"select",
"id, merchant_id, coupon_id, user_id, coupon_code_id, store_id, create_time, ",
"consume_time, use_end_time, qr_code_img, `status`, `source`, source_id, ext_1, ",
"ext_2, ext_3, ext_4",
"id, merchant_id, coupon_id, user_id, order_id, child_order_id, coupon_code_id, ",
"store_id, create_time, consume_time, use_end_time, qr_code_img, `status`, `source`, ",
"source_id, ext_1, ext_2, ext_3, ext_4",
"from high_user_coupon",
"where id = #{id,jdbcType=BIGINT}"
})
@ -98,6 +100,8 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt {
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT),
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT),
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT),
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT),
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT),
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@ -128,6 +132,8 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt {
"set merchant_id = #{merchantId,jdbcType=BIGINT},",
"coupon_id = #{couponId,jdbcType=BIGINT},",
"user_id = #{userId,jdbcType=BIGINT},",
"order_id = #{orderId,jdbcType=BIGINT},",
"child_order_id = #{childOrderId,jdbcType=BIGINT},",
"coupon_code_id = #{couponCodeId,jdbcType=BIGINT},",
"store_id = #{storeId,jdbcType=BIGINT},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",

@ -40,6 +40,14 @@ public class HighUserCouponSqlProvider {
sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
}
if (record.getOrderId() != null) {
sql.VALUES("order_id", "#{orderId,jdbcType=BIGINT}");
}
if (record.getChildOrderId() != null) {
sql.VALUES("child_order_id", "#{childOrderId,jdbcType=BIGINT}");
}
if (record.getCouponCodeId() != null) {
sql.VALUES("coupon_code_id", "#{couponCodeId,jdbcType=BIGINT}");
}
@ -105,6 +113,8 @@ public class HighUserCouponSqlProvider {
sql.SELECT("merchant_id");
sql.SELECT("coupon_id");
sql.SELECT("user_id");
sql.SELECT("order_id");
sql.SELECT("child_order_id");
sql.SELECT("coupon_code_id");
sql.SELECT("store_id");
sql.SELECT("create_time");
@ -151,6 +161,14 @@ public class HighUserCouponSqlProvider {
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
}
if (record.getOrderId() != null) {
sql.SET("order_id = #{record.orderId,jdbcType=BIGINT}");
}
if (record.getChildOrderId() != null) {
sql.SET("child_order_id = #{record.childOrderId,jdbcType=BIGINT}");
}
if (record.getCouponCodeId() != null) {
sql.SET("coupon_code_id = #{record.couponCodeId,jdbcType=BIGINT}");
}
@ -215,6 +233,8 @@ public class HighUserCouponSqlProvider {
sql.SET("merchant_id = #{record.merchantId,jdbcType=BIGINT}");
sql.SET("coupon_id = #{record.couponId,jdbcType=BIGINT}");
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
sql.SET("order_id = #{record.orderId,jdbcType=BIGINT}");
sql.SET("child_order_id = #{record.childOrderId,jdbcType=BIGINT}");
sql.SET("coupon_code_id = #{record.couponCodeId,jdbcType=BIGINT}");
sql.SET("store_id = #{record.storeId,jdbcType=BIGINT}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
@ -250,6 +270,14 @@ public class HighUserCouponSqlProvider {
sql.SET("user_id = #{userId,jdbcType=BIGINT}");
}
if (record.getOrderId() != null) {
sql.SET("order_id = #{orderId,jdbcType=BIGINT}");
}
if (record.getChildOrderId() != null) {
sql.SET("child_order_id = #{childOrderId,jdbcType=BIGINT}");
}
if (record.getCouponCodeId() != null) {
sql.SET("coupon_code_id = #{couponCodeId,jdbcType=BIGINT}");
}

@ -1,6 +1,6 @@
package com.hai.dao.order;
import com.hai.order.model.OrderCouponModal;
import com.hai.order.model.OrderCouponModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@ -23,49 +23,55 @@ public interface OrderMapperExt {
@Select("SELECT count(1) FROM high_child_order where mem_id = #{userId} and child_order_status in (2,3) and goods_type = 1 and goods_id = #{couponId}")
int userBuyCouponNum(@Param("userId") Long userId,@Param("couponId") Long couponId);
/**
* 查询卡券订单列表
* @param param
* @return
*/
@Select("<script>" +
@Select({"<script>" +
" select" +
" a.order_id orderId," +
" a.order_no orderNo," +
" b.pay_serial_no paySerialNo," +
" a.id childOrderId," +
" a.child_order_no childOrderNo," +
" a.mem_phone memPhone," +
" b.pay_gold integralDeduct," +
" b.pay_type payType," +
" a.goods_id goodsId," +
" a.goods_name goodsName," +
" a.goods_price goodsPrice," +
" a.goods_actual_price goodsActualPrice," +
" a.child_order_status childOrderStatus," +
" a.create_time createTime," +
" a.pay_time payTime," +
" a.finish_time finishTime," +
" a.cancel_time cancelTime," +
" a.refund_time refundTime" +
" b.order_no orderNo," +
" b.mem_phone memPhone," +
" a.goods_name couponName," +
" a.goods_price couponPrice," +
" b.total_price totalPrice," +
" b.deduction_price deductionPrice," +
" b.payable_price payablePrice," +
" b.pay_gold payGold," +
" b.pay_price payPrice," +
" CASE b.pay_type " +
" WHEN 1 THEN '支付宝' " +
" WHEN 2 THEN '微信'" +
" WHEN 3 THEN '积分抵扣'" +
" WHEN 4 THEN '贵州汇联通工会卡'" +
" WHEN 5 THEN '银联'" +
" WHEN 6 THEN '银联分期'" +
" WHEN 7 THEN '嗨森逛油卡'" +
" ELSE '未知' END payType," +
" CASE b.order_status " +
" WHEN 1 THEN '待支付' " +
" WHEN 2 THEN '已支付'" +
" WHEN 3 THEN '已完成'" +
" WHEN 4 THEN '已退款'" +
" WHEN 5 THEN '已取消'" +
" WHEN 6 THEN '退款中'" +
" WHEN 7 THEN '退款拒绝'" +
" ELSE '未知' END orderStatus," +
" b.create_time createTime," +
" b.pay_time payTime," +
" b.finish_time finishTime" +
" from high_child_order a" +
" LEFT JOIN high_order b on b.id = a.order_id" +
" where a.goods_type = 1 and a.giveaway_type = 0" +
" <if test='param.orderNo != null'> and a.order_no LIKE concat('%',#{param.orderNo},'%') </if>" +
" <if test='param.paySerialNo != null'> and b.pay_serial_no LIKE concat('%',#{param.paySerialNo},'%') </if>" +
" <if test='param.payType != null'> and a.pay_type = #{param.payType} </if>" +
" <if test='param.childOrderNo != null'> and a.child_order_no = #{param.childOrderNo} </if>" +
" <if test='param.memPhone != null'> and a.mem_phone = #{param.memPhone} </if>" +
" <if test='param.goodsName != null'> and b.goods_name LIKE concat('%',#{param.goodsName},'%') </if>" +
" <if test='param.childOrderStatus != null'> and b.child_order_status = #{param.childOrderStatus} </if>" +
" <if test='param.createTimeS != null'> <![CDATA[ and a.create_time >= #{param.createTimeS} ]]> </if>" +
" <if test='param.createTimeE != null'> <![CDATA[ and a.create_time <= #{param.createTimeE} ]]> </if>" +
" <if test='param.payTimeS != null'> <![CDATA[ and a.pay_time >= #{param.payTimeS} ]]> </if>" +
" <if test='param.payTimeE != null'> <![CDATA[ and a.pay_time <= #{param.payTimeE} ]]> </if>" +
" <if test='param.refundTimeS != null'> <![CDATA[ and a.refund_time >= #{param.refundTimeS} ]]> </if>" +
" <if test='param.refundTimeE != null'> <![CDATA[ and a.refund_time <= #{param.refundTimeE} ]]> </if>" +
" ORDER BY a.create_time desc" +
"</script>")
List<OrderCouponModal> queryOrderCouponList(@Param("param") Map<String, Object> param);
" where a.goods_type = 1" +
" <if test='param.goodsId != null'> and a.goods_id in (${param.goodsId}) </if>" +
" <if test='param.orderNo != null'> and b.order_no like concat('%', #{param.orderNo}, '%') </if>" +
" <if test='param.memPhone != null'> and b.mem_phone like concat('%', #{param.memPhone}, '%') </if>" +
" <if test='param.couponName != null'> and a.goods_name like concat('%', #{param.couponName}, '%') </if>" +
" <if test='param.payType != null'> and b.pay_type = #{param.payType} </if>" +
" <if test='param.orderStatus != null'> and b.order_status = #{param.orderStatus} </if>" +
" <if test='param.createTimeS != null'> <![CDATA[ and b.create_time >= #{param.createTimeS} ]]> </if>" +
" <if test='param.createTimeE != null'> <![CDATA[ and b.create_time <= #{param.createTimeE} ]]> </if>" +
" <if test='param.payTimeS != null'> <![CDATA[ and b.pay_time >= #{param.payTimeS} ]]> </if>" +
" <if test='param.payTimeE != null'> <![CDATA[ and b.pay_time <= #{param.payTimeE} ]]> </if>" +
" <if test='param.finishTimeS != null'> <![CDATA[ and b.finish_time >= #{param.finishTimeS} ]]> </if>" +
" <if test='param.finishTimeE != null'> <![CDATA[ and b.finish_time <= #{param.finishTimeE} ]]> </if>" +
" ORDER BY b.create_time desc" +
"</script>"})
List<OrderCouponModel> queryOrderCoupon(@Param("param") Map<String, Object> param);
}

@ -19,7 +19,7 @@ public class HighCouponCodeOther implements Serializable {
private Long id;
/**
* 类型 1 汇联通
* 类型 1 贵州中石化 2 重庆中石油
*/
private Integer type;
@ -68,6 +68,21 @@ public class HighCouponCodeOther implements Serializable {
*/
private Date validEndDate;
/**
* 核销时间
*/
private Date useTime;
/**
* 核销站点编号
*/
private String stationCode;
/**
* 核销站点名称
*/
private String stationName;
/**
* 创建时间
*/
@ -169,6 +184,30 @@ public class HighCouponCodeOther implements Serializable {
this.validEndDate = validEndDate;
}
public Date getUseTime() {
return useTime;
}
public void setUseTime(Date useTime) {
this.useTime = useTime;
}
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public String getStationName() {
return stationName;
}
public void setStationName(String stationName) {
this.stationName = stationName;
}
public Date getCreateTime() {
return createTime;
}
@ -224,6 +263,9 @@ public class HighCouponCodeOther implements Serializable {
&& (this.getActiveTime() == null ? other.getActiveTime() == null : this.getActiveTime().equals(other.getActiveTime()))
&& (this.getValidStartDate() == null ? other.getValidStartDate() == null : this.getValidStartDate().equals(other.getValidStartDate()))
&& (this.getValidEndDate() == null ? other.getValidEndDate() == null : this.getValidEndDate().equals(other.getValidEndDate()))
&& (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime()))
&& (this.getStationCode() == null ? other.getStationCode() == null : this.getStationCode().equals(other.getStationCode()))
&& (this.getStationName() == null ? other.getStationName() == null : this.getStationName().equals(other.getStationName()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1()))
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2()))
@ -245,6 +287,9 @@ public class HighCouponCodeOther implements Serializable {
result = prime * result + ((getActiveTime() == null) ? 0 : getActiveTime().hashCode());
result = prime * result + ((getValidStartDate() == null) ? 0 : getValidStartDate().hashCode());
result = prime * result + ((getValidEndDate() == null) ? 0 : getValidEndDate().hashCode());
result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode());
result = prime * result + ((getStationCode() == null) ? 0 : getStationCode().hashCode());
result = prime * result + ((getStationName() == null) ? 0 : getStationName().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode());
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode());
@ -269,6 +314,9 @@ public class HighCouponCodeOther implements Serializable {
sb.append(", activeTime=").append(activeTime);
sb.append(", validStartDate=").append(validStartDate);
sb.append(", validEndDate=").append(validEndDate);
sb.append(", useTime=").append(useTime);
sb.append(", stationCode=").append(stationCode);
sb.append(", stationName=").append(stationName);
sb.append(", createTime=").append(createTime);
sb.append(", ext1=").append(ext1);
sb.append(", ext2=").append(ext2);

@ -805,6 +805,206 @@ public class HighCouponCodeOtherExample {
return (Criteria) this;
}
public Criteria andUseTimeIsNull() {
addCriterion("use_time is null");
return (Criteria) this;
}
public Criteria andUseTimeIsNotNull() {
addCriterion("use_time is not null");
return (Criteria) this;
}
public Criteria andUseTimeEqualTo(Date value) {
addCriterion("use_time =", value, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeNotEqualTo(Date value) {
addCriterion("use_time <>", value, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeGreaterThan(Date value) {
addCriterion("use_time >", value, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeGreaterThanOrEqualTo(Date value) {
addCriterion("use_time >=", value, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeLessThan(Date value) {
addCriterion("use_time <", value, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeLessThanOrEqualTo(Date value) {
addCriterion("use_time <=", value, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeIn(List<Date> values) {
addCriterion("use_time in", values, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeNotIn(List<Date> values) {
addCriterion("use_time not in", values, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeBetween(Date value1, Date value2) {
addCriterion("use_time between", value1, value2, "useTime");
return (Criteria) this;
}
public Criteria andUseTimeNotBetween(Date value1, Date value2) {
addCriterion("use_time not between", value1, value2, "useTime");
return (Criteria) this;
}
public Criteria andStationCodeIsNull() {
addCriterion("station_code is null");
return (Criteria) this;
}
public Criteria andStationCodeIsNotNull() {
addCriterion("station_code is not null");
return (Criteria) this;
}
public Criteria andStationCodeEqualTo(String value) {
addCriterion("station_code =", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeNotEqualTo(String value) {
addCriterion("station_code <>", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeGreaterThan(String value) {
addCriterion("station_code >", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeGreaterThanOrEqualTo(String value) {
addCriterion("station_code >=", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeLessThan(String value) {
addCriterion("station_code <", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeLessThanOrEqualTo(String value) {
addCriterion("station_code <=", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeLike(String value) {
addCriterion("station_code like", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeNotLike(String value) {
addCriterion("station_code not like", value, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeIn(List<String> values) {
addCriterion("station_code in", values, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeNotIn(List<String> values) {
addCriterion("station_code not in", values, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeBetween(String value1, String value2) {
addCriterion("station_code between", value1, value2, "stationCode");
return (Criteria) this;
}
public Criteria andStationCodeNotBetween(String value1, String value2) {
addCriterion("station_code not between", value1, value2, "stationCode");
return (Criteria) this;
}
public Criteria andStationNameIsNull() {
addCriterion("station_name is null");
return (Criteria) this;
}
public Criteria andStationNameIsNotNull() {
addCriterion("station_name is not null");
return (Criteria) this;
}
public Criteria andStationNameEqualTo(String value) {
addCriterion("station_name =", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameNotEqualTo(String value) {
addCriterion("station_name <>", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameGreaterThan(String value) {
addCriterion("station_name >", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameGreaterThanOrEqualTo(String value) {
addCriterion("station_name >=", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameLessThan(String value) {
addCriterion("station_name <", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameLessThanOrEqualTo(String value) {
addCriterion("station_name <=", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameLike(String value) {
addCriterion("station_name like", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameNotLike(String value) {
addCriterion("station_name not like", value, "stationName");
return (Criteria) this;
}
public Criteria andStationNameIn(List<String> values) {
addCriterion("station_name in", values, "stationName");
return (Criteria) this;
}
public Criteria andStationNameNotIn(List<String> values) {
addCriterion("station_name not in", values, "stationName");
return (Criteria) this;
}
public Criteria andStationNameBetween(String value1, String value2) {
addCriterion("station_name between", value1, value2, "stationName");
return (Criteria) this;
}
public Criteria andStationNameNotBetween(String value1, String value2) {
addCriterion("station_name not between", value1, value2, "stationName");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;

@ -49,6 +49,16 @@ public class HighGasOrder implements Serializable {
*/
private String memPhone;
/**
* 公司id
*/
private Long companyId;
/**
* 公司名称
*/
private String companyName;
/**
* 商户id
*/
@ -69,6 +79,26 @@ public class HighGasOrder implements Serializable {
*/
private String storeName;
/**
* 优惠金额
*/
private BigDecimal deductionPrice;
/**
* 应付金额
*/
private BigDecimal payablePrice;
/**
* 积分抵扣
*/
private Integer payGold;
/**
* 支付金额
*/
private BigDecimal payPrice;
/**
* 加油站加油金额
*/
@ -204,6 +234,11 @@ public class HighGasOrder implements Serializable {
*/
private String gasOrgName;
/**
* 支付方式 1支付宝 2微信 3金币 4汇联通工会卡 5银联
*/
private Integer payType;
/**
* 订单状态
1. 待支付
@ -230,11 +265,6 @@ public class HighGasOrder implements Serializable {
*/
private Date payTime;
/**
* 完成时间
*/
private Date finishTime;
/**
* 退款时间
*/
@ -315,6 +345,22 @@ public class HighGasOrder implements Serializable {
this.memPhone = memPhone;
}
public Long getCompanyId() {
return companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public Long getMerId() {
return merId;
}
@ -347,6 +393,38 @@ public class HighGasOrder implements Serializable {
this.storeName = storeName;
}
public BigDecimal getDeductionPrice() {
return deductionPrice;
}
public void setDeductionPrice(BigDecimal deductionPrice) {
this.deductionPrice = deductionPrice;
}
public BigDecimal getPayablePrice() {
return payablePrice;
}
public void setPayablePrice(BigDecimal payablePrice) {
this.payablePrice = payablePrice;
}
public Integer getPayGold() {
return payGold;
}
public void setPayGold(Integer payGold) {
this.payGold = payGold;
}
public BigDecimal getPayPrice() {
return payPrice;
}
public void setPayPrice(BigDecimal payPrice) {
this.payPrice = payPrice;
}
public BigDecimal getGasRefuelPrice() {
return gasRefuelPrice;
}
@ -563,6 +641,14 @@ public class HighGasOrder implements Serializable {
this.gasOrgName = gasOrgName;
}
public Integer getPayType() {
return payType;
}
public void setPayType(Integer payType) {
this.payType = payType;
}
public Integer getStatus() {
return status;
}
@ -595,14 +681,6 @@ public class HighGasOrder implements Serializable {
this.payTime = payTime;
}
public Date getFinishTime() {
return finishTime;
}
public void setFinishTime(Date finishTime) {
this.finishTime = finishTime;
}
public Date getRefundTime() {
return refundTime;
}
@ -686,10 +764,16 @@ public class HighGasOrder implements Serializable {
&& (this.getChannelOrderNo() == null ? other.getChannelOrderNo() == null : this.getChannelOrderNo().equals(other.getChannelOrderNo()))
&& (this.getMemId() == null ? other.getMemId() == null : this.getMemId().equals(other.getMemId()))
&& (this.getMemPhone() == null ? other.getMemPhone() == null : this.getMemPhone().equals(other.getMemPhone()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
&& (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId()))
&& (this.getMerName() == null ? other.getMerName() == null : this.getMerName().equals(other.getMerName()))
&& (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
&& (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName()))
&& (this.getDeductionPrice() == null ? other.getDeductionPrice() == null : this.getDeductionPrice().equals(other.getDeductionPrice()))
&& (this.getPayablePrice() == null ? other.getPayablePrice() == null : this.getPayablePrice().equals(other.getPayablePrice()))
&& (this.getPayGold() == null ? other.getPayGold() == null : this.getPayGold().equals(other.getPayGold()))
&& (this.getPayPrice() == null ? other.getPayPrice() == null : this.getPayPrice().equals(other.getPayPrice()))
&& (this.getGasRefuelPrice() == null ? other.getGasRefuelPrice() == null : this.getGasRefuelPrice().equals(other.getGasRefuelPrice()))
&& (this.getGasOilNo() == null ? other.getGasOilNo() == null : this.getGasOilNo().equals(other.getGasOilNo()))
&& (this.getGasGunNo() == null ? other.getGasGunNo() == null : this.getGasGunNo().equals(other.getGasGunNo()))
@ -717,11 +801,11 @@ public class HighGasOrder implements Serializable {
&& (this.getGasAgentName() == null ? other.getGasAgentName() == null : this.getGasAgentName().equals(other.getGasAgentName()))
&& (this.getGasOrgId() == null ? other.getGasOrgId() == null : this.getGasOrgId().equals(other.getGasOrgId()))
&& (this.getGasOrgName() == null ? other.getGasOrgName() == null : this.getGasOrgName().equals(other.getGasOrgName()))
&& (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getCancelTime() == null ? other.getCancelTime() == null : this.getCancelTime().equals(other.getCancelTime()))
&& (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime()))
&& (this.getFinishTime() == null ? other.getFinishTime() == null : this.getFinishTime().equals(other.getFinishTime()))
&& (this.getRefundTime() == null ? other.getRefundTime() == null : this.getRefundTime().equals(other.getRefundTime()))
&& (this.getRefundRemarks() == null ? other.getRefundRemarks() == null : this.getRefundRemarks().equals(other.getRefundRemarks()))
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1()))
@ -743,10 +827,16 @@ public class HighGasOrder implements Serializable {
result = prime * result + ((getChannelOrderNo() == null) ? 0 : getChannelOrderNo().hashCode());
result = prime * result + ((getMemId() == null) ? 0 : getMemId().hashCode());
result = prime * result + ((getMemPhone() == null) ? 0 : getMemPhone().hashCode());
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode());
result = prime * result + ((getMerName() == null) ? 0 : getMerName().hashCode());
result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode());
result = prime * result + ((getDeductionPrice() == null) ? 0 : getDeductionPrice().hashCode());
result = prime * result + ((getPayablePrice() == null) ? 0 : getPayablePrice().hashCode());
result = prime * result + ((getPayGold() == null) ? 0 : getPayGold().hashCode());
result = prime * result + ((getPayPrice() == null) ? 0 : getPayPrice().hashCode());
result = prime * result + ((getGasRefuelPrice() == null) ? 0 : getGasRefuelPrice().hashCode());
result = prime * result + ((getGasOilNo() == null) ? 0 : getGasOilNo().hashCode());
result = prime * result + ((getGasGunNo() == null) ? 0 : getGasGunNo().hashCode());
@ -774,11 +864,11 @@ public class HighGasOrder implements Serializable {
result = prime * result + ((getGasAgentName() == null) ? 0 : getGasAgentName().hashCode());
result = prime * result + ((getGasOrgId() == null) ? 0 : getGasOrgId().hashCode());
result = prime * result + ((getGasOrgName() == null) ? 0 : getGasOrgName().hashCode());
result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getCancelTime() == null) ? 0 : getCancelTime().hashCode());
result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode());
result = prime * result + ((getFinishTime() == null) ? 0 : getFinishTime().hashCode());
result = prime * result + ((getRefundTime() == null) ? 0 : getRefundTime().hashCode());
result = prime * result + ((getRefundRemarks() == null) ? 0 : getRefundRemarks().hashCode());
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode());
@ -803,10 +893,16 @@ public class HighGasOrder implements Serializable {
sb.append(", channelOrderNo=").append(channelOrderNo);
sb.append(", memId=").append(memId);
sb.append(", memPhone=").append(memPhone);
sb.append(", companyId=").append(companyId);
sb.append(", companyName=").append(companyName);
sb.append(", merId=").append(merId);
sb.append(", merName=").append(merName);
sb.append(", storeId=").append(storeId);
sb.append(", storeName=").append(storeName);
sb.append(", deductionPrice=").append(deductionPrice);
sb.append(", payablePrice=").append(payablePrice);
sb.append(", payGold=").append(payGold);
sb.append(", payPrice=").append(payPrice);
sb.append(", gasRefuelPrice=").append(gasRefuelPrice);
sb.append(", gasOilNo=").append(gasOilNo);
sb.append(", gasGunNo=").append(gasGunNo);
@ -834,11 +930,11 @@ public class HighGasOrder implements Serializable {
sb.append(", gasAgentName=").append(gasAgentName);
sb.append(", gasOrgId=").append(gasOrgId);
sb.append(", gasOrgName=").append(gasOrgName);
sb.append(", payType=").append(payType);
sb.append(", status=").append(status);
sb.append(", createTime=").append(createTime);
sb.append(", cancelTime=").append(cancelTime);
sb.append(", payTime=").append(payTime);
sb.append(", finishTime=").append(finishTime);
sb.append(", refundTime=").append(refundTime);
sb.append(", refundRemarks=").append(refundRemarks);
sb.append(", ext1=").append(ext1);

@ -586,6 +586,136 @@ public class HighGasOrderExample {
return (Criteria) this;
}
public Criteria andCompanyIdIsNull() {
addCriterion("company_id is null");
return (Criteria) this;
}
public Criteria andCompanyIdIsNotNull() {
addCriterion("company_id is not null");
return (Criteria) this;
}
public Criteria andCompanyIdEqualTo(Long value) {
addCriterion("company_id =", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotEqualTo(Long value) {
addCriterion("company_id <>", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThan(Long value) {
addCriterion("company_id >", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) {
addCriterion("company_id >=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThan(Long value) {
addCriterion("company_id <", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThanOrEqualTo(Long value) {
addCriterion("company_id <=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdIn(List<Long> values) {
addCriterion("company_id in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotIn(List<Long> values) {
addCriterion("company_id not in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdBetween(Long value1, Long value2) {
addCriterion("company_id between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotBetween(Long value1, Long value2) {
addCriterion("company_id not between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andCompanyNameIsNull() {
addCriterion("company_name is null");
return (Criteria) this;
}
public Criteria andCompanyNameIsNotNull() {
addCriterion("company_name is not null");
return (Criteria) this;
}
public Criteria andCompanyNameEqualTo(String value) {
addCriterion("company_name =", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameNotEqualTo(String value) {
addCriterion("company_name <>", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameGreaterThan(String value) {
addCriterion("company_name >", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameGreaterThanOrEqualTo(String value) {
addCriterion("company_name >=", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameLessThan(String value) {
addCriterion("company_name <", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameLessThanOrEqualTo(String value) {
addCriterion("company_name <=", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameLike(String value) {
addCriterion("company_name like", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameNotLike(String value) {
addCriterion("company_name not like", value, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameIn(List<String> values) {
addCriterion("company_name in", values, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameNotIn(List<String> values) {
addCriterion("company_name not in", values, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameBetween(String value1, String value2) {
addCriterion("company_name between", value1, value2, "companyName");
return (Criteria) this;
}
public Criteria andCompanyNameNotBetween(String value1, String value2) {
addCriterion("company_name not between", value1, value2, "companyName");
return (Criteria) this;
}
public Criteria andMerIdIsNull() {
addCriterion("mer_id is null");
return (Criteria) this;
@ -846,6 +976,246 @@ public class HighGasOrderExample {
return (Criteria) this;
}
public Criteria andDeductionPriceIsNull() {
addCriterion("deduction_price is null");
return (Criteria) this;
}
public Criteria andDeductionPriceIsNotNull() {
addCriterion("deduction_price is not null");
return (Criteria) this;
}
public Criteria andDeductionPriceEqualTo(BigDecimal value) {
addCriterion("deduction_price =", value, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceNotEqualTo(BigDecimal value) {
addCriterion("deduction_price <>", value, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceGreaterThan(BigDecimal value) {
addCriterion("deduction_price >", value, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("deduction_price >=", value, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceLessThan(BigDecimal value) {
addCriterion("deduction_price <", value, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("deduction_price <=", value, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceIn(List<BigDecimal> values) {
addCriterion("deduction_price in", values, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceNotIn(List<BigDecimal> values) {
addCriterion("deduction_price not in", values, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("deduction_price between", value1, value2, "deductionPrice");
return (Criteria) this;
}
public Criteria andDeductionPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("deduction_price not between", value1, value2, "deductionPrice");
return (Criteria) this;
}
public Criteria andPayablePriceIsNull() {
addCriterion("payable_price is null");
return (Criteria) this;
}
public Criteria andPayablePriceIsNotNull() {
addCriterion("payable_price is not null");
return (Criteria) this;
}
public Criteria andPayablePriceEqualTo(BigDecimal value) {
addCriterion("payable_price =", value, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceNotEqualTo(BigDecimal value) {
addCriterion("payable_price <>", value, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceGreaterThan(BigDecimal value) {
addCriterion("payable_price >", value, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("payable_price >=", value, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceLessThan(BigDecimal value) {
addCriterion("payable_price <", value, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("payable_price <=", value, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceIn(List<BigDecimal> values) {
addCriterion("payable_price in", values, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceNotIn(List<BigDecimal> values) {
addCriterion("payable_price not in", values, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("payable_price between", value1, value2, "payablePrice");
return (Criteria) this;
}
public Criteria andPayablePriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("payable_price not between", value1, value2, "payablePrice");
return (Criteria) this;
}
public Criteria andPayGoldIsNull() {
addCriterion("pay_gold is null");
return (Criteria) this;
}
public Criteria andPayGoldIsNotNull() {
addCriterion("pay_gold is not null");
return (Criteria) this;
}
public Criteria andPayGoldEqualTo(Integer value) {
addCriterion("pay_gold =", value, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldNotEqualTo(Integer value) {
addCriterion("pay_gold <>", value, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldGreaterThan(Integer value) {
addCriterion("pay_gold >", value, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldGreaterThanOrEqualTo(Integer value) {
addCriterion("pay_gold >=", value, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldLessThan(Integer value) {
addCriterion("pay_gold <", value, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldLessThanOrEqualTo(Integer value) {
addCriterion("pay_gold <=", value, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldIn(List<Integer> values) {
addCriterion("pay_gold in", values, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldNotIn(List<Integer> values) {
addCriterion("pay_gold not in", values, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldBetween(Integer value1, Integer value2) {
addCriterion("pay_gold between", value1, value2, "payGold");
return (Criteria) this;
}
public Criteria andPayGoldNotBetween(Integer value1, Integer value2) {
addCriterion("pay_gold not between", value1, value2, "payGold");
return (Criteria) this;
}
public Criteria andPayPriceIsNull() {
addCriterion("pay_price is null");
return (Criteria) this;
}
public Criteria andPayPriceIsNotNull() {
addCriterion("pay_price is not null");
return (Criteria) this;
}
public Criteria andPayPriceEqualTo(BigDecimal value) {
addCriterion("pay_price =", value, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceNotEqualTo(BigDecimal value) {
addCriterion("pay_price <>", value, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceGreaterThan(BigDecimal value) {
addCriterion("pay_price >", value, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("pay_price >=", value, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceLessThan(BigDecimal value) {
addCriterion("pay_price <", value, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("pay_price <=", value, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceIn(List<BigDecimal> values) {
addCriterion("pay_price in", values, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceNotIn(List<BigDecimal> values) {
addCriterion("pay_price not in", values, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("pay_price between", value1, value2, "payPrice");
return (Criteria) this;
}
public Criteria andPayPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("pay_price not between", value1, value2, "payPrice");
return (Criteria) this;
}
public Criteria andGasRefuelPriceIsNull() {
addCriterion("gas_refuel_price is null");
return (Criteria) this;
@ -2536,6 +2906,66 @@ public class HighGasOrderExample {
return (Criteria) this;
}
public Criteria andPayTypeIsNull() {
addCriterion("pay_type is null");
return (Criteria) this;
}
public Criteria andPayTypeIsNotNull() {
addCriterion("pay_type is not null");
return (Criteria) this;
}
public Criteria andPayTypeEqualTo(Integer value) {
addCriterion("pay_type =", value, "payType");
return (Criteria) this;
}
public Criteria andPayTypeNotEqualTo(Integer value) {
addCriterion("pay_type <>", value, "payType");
return (Criteria) this;
}
public Criteria andPayTypeGreaterThan(Integer value) {
addCriterion("pay_type >", value, "payType");
return (Criteria) this;
}
public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("pay_type >=", value, "payType");
return (Criteria) this;
}
public Criteria andPayTypeLessThan(Integer value) {
addCriterion("pay_type <", value, "payType");
return (Criteria) this;
}
public Criteria andPayTypeLessThanOrEqualTo(Integer value) {
addCriterion("pay_type <=", value, "payType");
return (Criteria) this;
}
public Criteria andPayTypeIn(List<Integer> values) {
addCriterion("pay_type in", values, "payType");
return (Criteria) this;
}
public Criteria andPayTypeNotIn(List<Integer> values) {
addCriterion("pay_type not in", values, "payType");
return (Criteria) this;
}
public Criteria andPayTypeBetween(Integer value1, Integer value2) {
addCriterion("pay_type between", value1, value2, "payType");
return (Criteria) this;
}
public Criteria andPayTypeNotBetween(Integer value1, Integer value2) {
addCriterion("pay_type not between", value1, value2, "payType");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
@ -2776,66 +3206,6 @@ public class HighGasOrderExample {
return (Criteria) this;
}
public Criteria andFinishTimeIsNull() {
addCriterion("finish_time is null");
return (Criteria) this;
}
public Criteria andFinishTimeIsNotNull() {
addCriterion("finish_time is not null");
return (Criteria) this;
}
public Criteria andFinishTimeEqualTo(Date value) {
addCriterion("finish_time =", value, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeNotEqualTo(Date value) {
addCriterion("finish_time <>", value, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeGreaterThan(Date value) {
addCriterion("finish_time >", value, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeGreaterThanOrEqualTo(Date value) {
addCriterion("finish_time >=", value, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeLessThan(Date value) {
addCriterion("finish_time <", value, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeLessThanOrEqualTo(Date value) {
addCriterion("finish_time <=", value, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeIn(List<Date> values) {
addCriterion("finish_time in", values, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeNotIn(List<Date> values) {
addCriterion("finish_time not in", values, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeBetween(Date value1, Date value2) {
addCriterion("finish_time between", value1, value2, "finishTime");
return (Criteria) this;
}
public Criteria andFinishTimeNotBetween(Date value1, Date value2) {
addCriterion("finish_time not between", value1, value2, "finishTime");
return (Criteria) this;
}
public Criteria andRefundTimeIsNull() {
addCriterion("refund_time is null");
return (Criteria) this;

@ -35,6 +35,16 @@ public class HighUserCoupon implements Serializable {
*/
private Long userId;
/**
* 交易id
*/
private Long orderId;
/**
* 子订单id
*/
private Long childOrderId;
/**
* 卡卷销售码id
*/
@ -132,6 +142,22 @@ public class HighUserCoupon implements Serializable {
this.userId = userId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Long getChildOrderId() {
return childOrderId;
}
public void setChildOrderId(Long childOrderId) {
this.childOrderId = childOrderId;
}
public Long getCouponCodeId() {
return couponCodeId;
}
@ -252,6 +278,8 @@ public class HighUserCoupon implements Serializable {
&& (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
&& (this.getCouponId() == null ? other.getCouponId() == null : this.getCouponId().equals(other.getCouponId()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
&& (this.getChildOrderId() == null ? other.getChildOrderId() == null : this.getChildOrderId().equals(other.getChildOrderId()))
&& (this.getCouponCodeId() == null ? other.getCouponCodeId() == null : this.getCouponCodeId().equals(other.getCouponCodeId()))
&& (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
@ -275,6 +303,8 @@ public class HighUserCoupon implements Serializable {
result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
result = prime * result + ((getCouponId() == null) ? 0 : getCouponId().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
result = prime * result + ((getChildOrderId() == null) ? 0 : getChildOrderId().hashCode());
result = prime * result + ((getCouponCodeId() == null) ? 0 : getCouponCodeId().hashCode());
result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
@ -301,6 +331,8 @@ public class HighUserCoupon implements Serializable {
sb.append(", merchantId=").append(merchantId);
sb.append(", couponId=").append(couponId);
sb.append(", userId=").append(userId);
sb.append(", orderId=").append(orderId);
sb.append(", childOrderId=").append(childOrderId);
sb.append(", couponCodeId=").append(couponCodeId);
sb.append(", storeId=").append(storeId);
sb.append(", createTime=").append(createTime);

@ -365,6 +365,126 @@ public class HighUserCouponExample {
return (Criteria) this;
}
public Criteria andOrderIdIsNull() {
addCriterion("order_id is null");
return (Criteria) this;
}
public Criteria andOrderIdIsNotNull() {
addCriterion("order_id is not null");
return (Criteria) this;
}
public Criteria andOrderIdEqualTo(Long value) {
addCriterion("order_id =", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotEqualTo(Long value) {
addCriterion("order_id <>", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThan(Long value) {
addCriterion("order_id >", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("order_id >=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThan(Long value) {
addCriterion("order_id <", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
addCriterion("order_id <=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdIn(List<Long> values) {
addCriterion("order_id in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotIn(List<Long> values) {
addCriterion("order_id not in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdBetween(Long value1, Long value2) {
addCriterion("order_id between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
addCriterion("order_id not between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andChildOrderIdIsNull() {
addCriterion("child_order_id is null");
return (Criteria) this;
}
public Criteria andChildOrderIdIsNotNull() {
addCriterion("child_order_id is not null");
return (Criteria) this;
}
public Criteria andChildOrderIdEqualTo(Long value) {
addCriterion("child_order_id =", value, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdNotEqualTo(Long value) {
addCriterion("child_order_id <>", value, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdGreaterThan(Long value) {
addCriterion("child_order_id >", value, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("child_order_id >=", value, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdLessThan(Long value) {
addCriterion("child_order_id <", value, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdLessThanOrEqualTo(Long value) {
addCriterion("child_order_id <=", value, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdIn(List<Long> values) {
addCriterion("child_order_id in", values, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdNotIn(List<Long> values) {
addCriterion("child_order_id not in", values, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdBetween(Long value1, Long value2) {
addCriterion("child_order_id between", value1, value2, "childOrderId");
return (Criteria) this;
}
public Criteria andChildOrderIdNotBetween(Long value1, Long value2) {
addCriterion("child_order_id not between", value1, value2, "childOrderId");
return (Criteria) this;
}
public Criteria andCouponCodeIdIsNull() {
addCriterion("coupon_code_id is null");
return (Criteria) this;

@ -16,6 +16,7 @@ public enum OrderPushType {
type7(7 , "汇联通会员充值订单"),
type8(8 , "星巴克订单"),
type9(9 , "会员充值订单"),
type10(10 , "重庆中石油"),
;
private Integer type;

@ -0,0 +1,46 @@
package com.hai.enum_type;
/**
* @className: UserRoelTypeEnum
* @author: HuRui
* @date: 2022/9/21
**/
public enum UserRoleTypeEnum {
type0(0, "超级管理员"),
type1(1, "运营中心"),
type2(2, "商户角色"),
type3(3, "门店角色"),
type4(4, "代理商角色"),
type5(5, "分公司角色"),
type6(6, "充值后台人员"),
type7(7, "渠道公司角色"),
type8(8, "团油代理商"),
type9(9, "团油业务员"),
type10(10, "加油站员工"),
;
private Integer type;
private String name;
UserRoleTypeEnum(Integer type,String name) {
this.type = type;
this.name = name;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

@ -0,0 +1,127 @@
package com.hai.order.model;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* 导出油站订单模型
* @className: ExportGasOrderModel
* @author: HuRui
* @date: 2022/9/20
**/
@Data
public class ExportGasOrderModel {
@ColumnWidth(25)
@ExcelProperty("交易订单号")
private String orderNo;
@ColumnWidth(25)
@ExcelProperty("加油站")
private String storeName;
@ColumnWidth(15)
@ExcelProperty("加油员")
private String gasStaffName;
@ColumnWidth(15)
@ExcelProperty("客户手机号")
private String memPhone;
@ColumnWidth(15)
@ExcelProperty({ "加油信息", "加油金额"})
private BigDecimal gasRefuelPrice;
@ColumnWidth(15)
@ExcelProperty({ "加油信息", "加油升数"})
private BigDecimal gasOilLiters;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "油号"})
private String gasOilNo;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "油枪号"})
private String gasGunNo;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "平台折扣"})
private String gasDiscount;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "平台补贴"})
private BigDecimal gasOilSubsidy;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "平台价"})
private BigDecimal gasPricePlatform;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "油站价"})
private BigDecimal gasPriceGun;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "国标价"})
private BigDecimal gasPriceOfficial;
@ColumnWidth(15)
@ExcelProperty({ "支付信息", "加油优惠"})
private BigDecimal deductionPrice;
@ColumnWidth(15)
@ExcelProperty({ "支付信息", "应付金额"})
private BigDecimal payablePrice;
@ColumnWidth(15)
@ExcelProperty({ "支付信息", "积分抵扣"})
private Integer payGold;
@ColumnWidth(15)
@ExcelProperty({ "支付信息", "实付金额"})
private String payPrice;
@ColumnWidth(15)
@ExcelProperty("交易状态")
private String status;
@ColumnWidth(22)
@ExcelProperty("创建时间")
private Date createTime;
@ColumnWidth(22)
@ExcelProperty("支付时间")
private Date payTime;
@ColumnWidth(22)
@ExcelProperty("退款时间")
private Date refundTime;
@ColumnWidth(22)
@ExcelProperty("取消时间")
private Date cancelTime;
@ColumnWidth(20)
@ExcelProperty("分公司")
private String companyName;
@ColumnWidth(20)
@ExcelProperty("商户")
private String merName;
@ColumnWidth(20)
@ExcelProperty("业务员")
private String gasSalesmanName;
@ColumnWidth(20)
@ExcelProperty("代理商")
private String gasAgentName;
@ColumnWidth(20)
@ExcelProperty("代理公司")
private String gasOrgName;
}

@ -1,72 +0,0 @@
package com.hai.order.model;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* 卡券订单模型
* @className: OrderCouponModal
* @author: HuRui
* @date: 2022/9/14
**/
@Data
public class OrderCouponModal {
// 交易订单id
private Long orderId;
// 交易订单号
private String orderNo;
// 第三方交易流水号
private String paySerialNo;
// 子订单id
private Long childOrderId;
// 子订单号
private String childOrderNo;
// 用户手机号
private String memPhone;
// 积分抵扣
private Integer integralDeduct;
// 支付方式
private Integer payType;
// 产品id
private Long goodsId;
// 产品名称
private String goodsName;
// 产品价格
private BigDecimal goodsPrice;
// 产品实际价格
private BigDecimal goodsActualPrice;
// 子订单状态
private Integer childOrderStatus;
// 创建时间
private Date createTime;
// 支付时间
private Date payTime;
// 完成时间
private Date finishTime;
// 取消时间
private Date cancelTime;
// 退款时间
private Date refundTime;
}

@ -0,0 +1,62 @@
package com.hai.order.model;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* 卡券订单模型
* @className: OrderCouponModel
* @author: HuRui
* @date: 2022/9/30
**/
@Data
public class OrderCouponModel {
@ExcelProperty(value = "交易订单号")
private String orderNo;
@ExcelProperty(value = "客户电话")
private String memPhone;
@ExcelProperty(value = "卡券名称")
private String couponName;
@ExcelProperty(value = "卡券面值")
private String couponPrice;
@ExcelProperty(value = "总价格")
private BigDecimal totalPrice;
@ExcelProperty(value = "优惠价格")
private BigDecimal deductionPrice;
@ExcelProperty(value = "应付金额")
private BigDecimal payablePrice;
@ExcelProperty(value = "积分抵扣")
private Long payGold;
@ExcelProperty(value = "实付金额")
private BigDecimal payPrice;
@ExcelProperty(value = "支付方式")
private String payType;
@ExcelProperty(value = "支付卡号")
private String memCardNo;
@ExcelProperty(value = "订单状态")
private String orderStatus;
@ExcelProperty(value = "创建时间")
private Date createTime;
@ExcelProperty(value = "支付时间")
private Date payTime;
@ExcelProperty(value = "完成时间")
private Date finishTime;
}

@ -6,6 +6,7 @@ import com.hai.entity.HighOrder;
import com.hai.model.ResponseData;
import com.hai.order.model.CreateOrderCheckReturnData;
import com.hai.order.model.CreateOrderChildModel;
import com.hai.order.model.CreateOrderModel;
import java.util.List;
@ -38,7 +39,7 @@ public interface OrderCreateHandleService {
* @param createOrderChild 子订单参数
* @return
*/
HighChildOrder oilHandle(HighOrder order,HighDiscountUserRel discountUserRel, CreateOrderChildModel createOrderChild) throws Exception;
HighChildOrder oilHandle(HighOrder order, HighDiscountUserRel discountUserRel, CreateOrderModel createOrderModel,CreateOrderChildModel createOrderChild) throws Exception;
/**
* 优惠券包校验

@ -0,0 +1,27 @@
package com.hai.order.service;
import com.hai.entity.HighChildOrder;
/**
* 退款订单-业务处理
* @className: CreateOrderCheckService
* @author: HuRui
* @date: 2022/8/25
**/
public interface OrderRefundHandleService {
/**
* 卡券业务
* @param childOrder 子订单
* @return
* @throws Exception
*/
void couponHandle(HighChildOrder childOrder) ;
/**
* 加油业务
* @param childOrder
*/
void oilHandle(HighChildOrder childOrder) ;
}

@ -1,5 +1,6 @@
package com.hai.order.service;
import com.alicp.jetcache.anno.CacheUpdate;
import com.hai.entity.HighChildOrder;
import com.hai.entity.HighOrder;
import com.hai.order.model.CreateOrderModel;

@ -1,9 +1,7 @@
package com.hai.order.service;
import com.hai.entity.HighGasOrder;
import com.hai.model.OrderCountModel;
import com.hai.order.model.OrderCouponModal;
import org.apache.ibatis.annotations.Param;
import com.hai.order.model.OrderCouponModel;
import java.util.List;
import java.util.Map;
@ -25,10 +23,10 @@ public interface OrderServiceExt {
int userBuyCouponNum(Long userId,Long couponId);
/**
* 查询卡券订单列表
* 查询卡券订单
* @param param
* @return
*/
List<OrderCouponModal> getOrderCouponList(Map<String, Object> param);
List<OrderCouponModel> getOrderCouponList(Map<String, Object> param) throws Exception;
}

@ -5,6 +5,7 @@ import com.hai.entity.HighCouponCode;
import com.hai.entity.HighGasOrder;
import com.hai.order.service.OrderCancelHandleService;
import com.hai.order.type.OrderChildStatus;
import com.hai.order.type.OrderOilStatus;
import com.hai.service.HighCouponCodeService;
import com.hai.service.HighGasOrderService;
import org.springframework.stereotype.Service;
@ -43,7 +44,7 @@ public class OrderCancelHandleServiceImpl implements OrderCancelHandleService {
HighGasOrder gasOrder = gasOrderService.getDetailByChildOrderNo(childOrder.getChildOrderNo());
if (gasOrder != null) {
gasOrder.setCancelTime(new Date());
gasOrder.setStatus(OrderChildStatus.STATUS5.getNumber());
gasOrder.setStatus(OrderOilStatus.STATUS3.getNumber());
gasOrderService.updateGasOrder(gasOrder);
}
}

@ -19,11 +19,13 @@ import com.hai.model.GasPayPriceModel;
import com.hai.model.HighMerchantModel;
import com.hai.model.ResponseData;
import com.hai.order.model.CreateOrderChildModel;
import com.hai.order.model.CreateOrderModel;
import com.hai.order.service.OrderCreateHandleService;
import com.hai.order.service.OrderService;
import com.hai.order.service.OrderServiceExt;
import com.hai.order.type.OrderChildGoodsType;
import com.hai.order.type.OrderChildStatus;
import com.hai.order.type.OrderOilStatus;
import com.hai.order.utils.OrderUtil;
import com.hai.service.*;
import org.apache.commons.lang3.StringUtils;
@ -51,6 +53,9 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
@Resource
private CommonService commonService;
@Resource
private BsCompanyService companyService;
@Resource
private OrderService orderService;
@ -255,7 +260,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
}
@Override
public HighChildOrder oilHandle(HighOrder order,HighDiscountUserRel discountUserRel, CreateOrderChildModel createOrderChild) throws Exception {
public HighChildOrder oilHandle(HighOrder order, HighDiscountUserRel discountUserRel, CreateOrderModel createOrderModel, CreateOrderChildModel createOrderChild) throws Exception {
// 查询油品类型
SecDictionary gasOilType = commonService.mappingSysCode("GAS_OIL_TYPE", createOrderChild.getGasOilNo());
if (gasOilType == null) {
@ -283,6 +288,11 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
if (merchant == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的油站");
}
// 查询分公司
BsCompany company = companyService.getCompanyById(merchant.getCompanyId());
if (company == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的分公司");
}
// 营销减免的金额
BigDecimal marketingPrice = merchantAccountMarketingService.getPrice(store.getMerchantId(), MerAccountMarketingType.type3.getType(), Integer.valueOf(createOrderChild.getGasOilNo()));
@ -317,6 +327,8 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
gasOrder.setChannelType(store.getSourceType());
gasOrder.setOrderNo(order.getOrderNo());
gasOrder.setChildOrderNo(childOrder.getChildOrderNo());
gasOrder.setCompanyId(company.getId());
gasOrder.setCompanyName(company.getName());
gasOrder.setMemId(childOrder.getMemId());
gasOrder.setMemPhone(childOrder.getMemPhone());
gasOrder.setMerId(store.getMerchantId());
@ -327,7 +339,8 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
gasOrder.setGasOilNo(createOrderChild.getGasOilNo());
gasOrder.setGasGunNo(createOrderChild.getGasGunNo());
gasOrder.setGasOilType(Integer.parseInt(gasOilType.getExt1()));
gasOrder.setStatus(OrderChildStatus.STATUS1.getNumber());
gasOrder.setStatus(OrderOilStatus.STATUS1.getNumber());
gasOrder.setGasDiscount(new BigDecimal("0"));
// 成本价 油站价 减 营销策略价
gasOrder.setGasPriceCost(priceModel.getPriceGun().subtract(marketingPrice));
@ -337,10 +350,35 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
gasOrder.setGasPriceCostTotal(gasOrder.getGasRefuelPrice().multiply(gasOrder.getGasOilLiters()).setScale(2, BigDecimal.ROUND_HALF_DOWN));
}
// 使用了优惠
// 使用了优惠
if (discountUserRel != null) {
// 支付价格
childOrder.setGoodsActualPrice(childOrder.getGoodsPrice());
// 优惠券类型 1:满减 2:抵扣 3:折扣
if (discountUserRel.getHighDiscount().getDiscountType() == 1) {
// 如果订单总额 小于 满减价格
if (gasOrder.getGasRefuelPrice().compareTo(discountUserRel.getHighDiscount().getDiscountCondition()) > 1) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.UN_MEMBER_ERROR, "订单未达到"+discountUserRel.getHighDiscount().getDiscountCondition()+"元,无法使用此优惠券");
}
gasOrder.setDeductionPrice(discountUserRel.getHighDiscount().getDiscountPrice());
}
else if (discountUserRel.getHighDiscount().getDiscountType() == 2) {
gasOrder.setDeductionPrice(discountUserRel.getHighDiscount().getDiscountPrice());
}
else if (discountUserRel.getHighDiscount().getDiscountType() == 3) {
// 加油金额 * 折扣
BigDecimal deductionPrice = gasOrder.getGasRefuelPrice()
.multiply(discountUserRel.getHighDiscount().getDiscountPrice())
.setScale(2, BigDecimal.ROUND_HALF_DOWN);
gasOrder.setDeductionPrice(gasOrder.getGasRefuelPrice().subtract(deductionPrice));
}
gasOrder.setPayablePrice(gasOrder.getGasRefuelPrice().subtract(gasOrder.getDeductionPrice()));
if (gasOrder.getPayablePrice().compareTo(new BigDecimal("0")) < 0) {
gasOrder.setPayablePrice(new BigDecimal("0"));
}
// 油价信息
gasOrder.setGasPriceGun(priceModel.getPriceGun());
gasOrder.setGasPriceVip(priceModel.getPriceGun());
@ -351,9 +389,13 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
gasOrder.setGasOilSubsidy(new BigDecimal("0"));
gasOrder.setGasLitersPreferences(new BigDecimal("0"));
gasOrder.setGasPricePreferences(priceModel.getPriceGun());
} else {
}
else {
// 支付价格
childOrder.setGoodsActualPrice(priceModel.getPayPrice());
gasOrder.setDeductionPrice(priceModel.getTotalPreferences());
gasOrder.setPayablePrice(priceModel.getPayPrice());
// 油价信息
gasOrder.setGasPriceGun(priceModel.getPriceGun());
gasOrder.setGasPriceVip(priceModel.getPriceVip());
@ -366,6 +408,8 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
gasOrder.setGasPricePreferences(priceModel.getPricePreferences());
}
gasOrder.setPayGold(createOrderModel.getPayGold()!=null?createOrderModel.getPayGold():0);
if (store.getSourceType().equals(MerchantStoreSourceType.type4.getNumber())) {
// 查询金猪油品数据
JinZhuJiaYouOilNo jzOilNo = JinZhuJiaYouOilNo.getDataByOilNo(Integer.valueOf(gasOrder.getGasOilNo()));

@ -14,10 +14,7 @@ import com.hai.msg.entity.MsgTopic;
import com.hai.order.service.OrderPaySuccessService;
import com.hai.order.service.OrderService;
import com.hai.order.topic.OrderTopic;
import com.hai.order.type.OrderChildGoodsType;
import com.hai.order.type.OrderChildStatus;
import com.hai.order.type.OrderPayType;
import com.hai.order.type.OrderStatus;
import com.hai.order.type.*;
import com.hai.service.*;
import org.apache.rocketmq.client.producer.SendCallback;
import org.apache.rocketmq.client.producer.SendResult;
@ -140,7 +137,10 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
integralHandle(order,childOrder);
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE3.getNumber())) {
order.setOrderStatus(OrderStatus.STATUS3.getNumber());
order.setFinishTime(new Date());
oilHandle(order,childOrder);
orderService.updateOrderData(order);
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE4.getNumber())) {
@ -217,7 +217,9 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
HighGasOrder gasOrder = gasOrderService.getDetailByChildOrderNo(childOrder.getChildOrderNo());
if (gasOrder != null) {
gasOrder.setPayTime(new Date());
gasOrder.setStatus(OrderChildStatus.STATUS2.getNumber());
gasOrder.setStatus(OrderOilStatus.STATUS2.getNumber());
gasOrder.setPayType(order.getPayType());
gasOrder.setPayPrice(order.getPayPrice());
gasOrderService.updateGasOrder(gasOrder);
// 查询油站

@ -0,0 +1,46 @@
package com.hai.order.service.impl;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.entity.HighChildOrder;
import com.hai.entity.HighGasOrder;
import com.hai.order.service.OrderRefundHandleService;
import com.hai.order.type.OrderOilStatus;
import com.hai.service.HighGasOrderService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
/**
* @className: OrderRefundHandleServiceImpl
* @author: HuRui
* @date: 2022/9/23
**/
@Service("orderRefundHandleService")
public class OrderRefundHandleServiceImpl implements OrderRefundHandleService {
@Resource
private HighGasOrderService gasOrderService;
@Override
public void couponHandle(HighChildOrder childOrder) {
}
@Override
public void oilHandle(HighChildOrder childOrder) {
// 查询加油订单
HighGasOrder gasOrder = gasOrderService.getDetailByChildOrderNo(childOrder.getChildOrderNo());
if (gasOrder == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到加油订单");
}
if (!gasOrder.getStatus().equals(OrderOilStatus.STATUS2.getNumber())) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "加油订单不处于已支付状态");
}
gasOrder.setRefundTime(childOrder.getRefundTime());
gasOrder.setStatus(OrderOilStatus.STATUS4.getNumber());
gasOrderService.updateGasOrder(gasOrder);
}
}

@ -60,8 +60,8 @@ public class OrderRefundServiceImpl implements OrderRefundService {
@Override
public HighOrderRefund createOrderChildRefund(HighChildOrder orderChild,String refundNo,Integer refundGoodsCount, String remarks) throws Exception {
if (orderChild.getChildOrderStatus().equals(OrderChildStatus.STATUS2.getNumber())
|| orderChild.getChildOrderStatus().equals(OrderChildStatus.STATUS3.getNumber())){
if (!orderChild.getChildOrderStatus().equals(OrderChildStatus.STATUS2.getNumber())
&& !orderChild.getChildOrderStatus().equals(OrderChildStatus.STATUS3.getNumber())){
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "子订单状态错误");
}
if (orderChild.getSurplusRefundIntegral() <= 0

@ -1,13 +1,14 @@
package com.hai.order.service.impl;
import com.hai.common.utils.DateUtil;
import com.hai.dao.order.OrderMapperExt;
import com.hai.entity.HighGasOrder;
import com.hai.order.model.OrderCouponModal;
import com.hai.order.model.OrderCouponModel;
import com.hai.order.service.OrderServiceExt;
import com.hai.service.HighGasOrderService;
import org.apache.commons.collections4.MapUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;
@ -28,8 +29,32 @@ public class OrderServiceExtImpl implements OrderServiceExt {
}
@Override
public List<OrderCouponModal> getOrderCouponList(Map<String, Object> param) {
return orderMapperExt.queryOrderCouponList(param);
public List<OrderCouponModel> getOrderCouponList(Map<String, Object> param) throws Exception {
if (MapUtils.getLong(param, "createTimeS") != null) {
param.put("createTimeS", DateUtil.date2String(new Date(MapUtils.getLong(param, "createTimeS")), DateUtil.Y_M_D_HMS));
}
if (MapUtils.getLong(param, "createTimeE") != null) {
param.put("createTimeE", DateUtil.date2String(new Date(MapUtils.getLong(param, "createTimeE")), DateUtil.Y_M_D_HMS));
}
if (MapUtils.getLong(param, "payTimeS") != null) {
param.put("payTimeS", DateUtil.date2String(new Date(MapUtils.getLong(param, "payTimeS")), DateUtil.Y_M_D_HMS));
}
if (MapUtils.getLong(param, "payTimeE") != null) {
param.put("payTimeE", DateUtil.date2String(new Date(MapUtils.getLong(param, "payTimeE")), DateUtil.Y_M_D_HMS));
}
if (MapUtils.getLong(param, "finishTimeS") != null) {
param.put("finishTimeS", DateUtil.date2String(new Date(MapUtils.getLong(param, "finishTimeS")), DateUtil.Y_M_D_HMS));
}
if (MapUtils.getLong(param, "finishTimeE") != null) {
param.put("finishTimeE", DateUtil.date2String(new Date(MapUtils.getLong(param, "finishTimeE")), DateUtil.Y_M_D_HMS));
}
return orderMapperExt.queryOrderCoupon(param);
}
}

@ -77,6 +77,9 @@ public class OrderServiceImpl implements OrderService {
@Resource
private OrderCancelHandleService orderCancelHandleService;
@Resource
private OrderRefundHandleService orderRefundHandleService;
@Resource
private OrderPaySuccessService paySuccessService;
@ -106,7 +109,7 @@ public class OrderServiceImpl implements OrderService {
isolation = Isolation.READ_COMMITTED,
timeout = 10,
rollbackFor = Exception.class)
@Cached(cacheType = CacheType.BOTH, name="order:", key = "#createOrderModel.orderNo", expire = 3600*24*30) // 缓存一个月
@Cached(cacheType = CacheType.REMOTE, name="order:", key = "#createOrderModel.orderNo", expire = 3600*24*30) // 缓存一个月
public HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception {
HighDiscountUserRel discountUserRel = null;
@ -136,11 +139,11 @@ public class OrderServiceImpl implements OrderService {
order.setOrderStatus(OrderStatus.STATUS1.getNumber());
order.setWhetherCheck(false);
order.setWhetherRebate(false);
order.setProfitSharingStatus(false);
order.setExceptionStatus(false);
order.setCreateTime(new Date());
order.setPayGold(0);
/*********** 组装处理子订单 商品业务************/
List<HighChildOrder> childOrderList = new ArrayList<>();
for (CreateOrderChildModel child : createOrderModel.getChildOrderList()) {
@ -161,7 +164,7 @@ public class OrderServiceImpl implements OrderService {
// 加油订单
} else if (child.getGoodsType().equals(OrderChildGoodsType.TYPE3.getNumber())) {
order.setProductType(OrderProductType.PRODUCT_TYPE6.getNumber());
childOrderList.add(orderCreateHandleService.oilHandle(order, discountUserRel, child));
childOrderList.add(orderCreateHandleService.oilHandle(order, discountUserRel, createOrderModel, child));
// 肯德基
} else if (child.getGoodsType().equals(OrderChildGoodsType.TYPE4.getNumber())) {
@ -288,7 +291,7 @@ public class OrderServiceImpl implements OrderService {
// 积分金额小于应付金额
if (goldPrice.compareTo(order.getPayablePrice()) == -1) {
// 扣除用户积分
userService.goldHandle(order.getMemId(), order.getPayGold(), 2, 2, order.getId(),
userService.goldHandle(order.getMemId(), createOrderModel.getPayGold(), 2, 2, order.getId(),
"抵扣积分订单:" + order.getOrderNo() + ",使用积分:" + order.getPayGold());
}
@ -307,18 +310,22 @@ public class OrderServiceImpl implements OrderService {
throw ErrorHelp.genException(SysCode.System, ErrorCode.USER_PAY_PWD_ERROR, "");
}
// 扣除用户积分
userService.goldHandle(order.getMemId(), order.getPayGold(), 2, 2, order.getId(),
userService.goldHandle(order.getMemId(), createOrderModel.getPayGold(), 2, 2, order.getId(),
"抵扣积分订单:" + order.getOrderNo() + ",使用积分:" + order.getPayGold());
order.setOrderStatus(OrderStatus.STATUS2.getNumber());
order.setPayRealPrice(order.getPayPrice());
order.setPayTime(new Date());
order.setPayGold(createOrderModel.getPayGold());
for (HighChildOrder childOrder : order.getHighChildOrderList()) {
childOrder.setChildOrderStatus(OrderChildStatus.STATUS2.getNumber());
}
}
}
order.setSurplusRefundPrice(new BigDecimal("0"));
order.setSurplusRefundIntegral(0);
// 订单入库前处理
for (HighChildOrder childOrder : order.getHighChildOrderList()) {
childOrder.setOrderNo(order.getOrderNo());
@ -340,30 +347,21 @@ public class OrderServiceImpl implements OrderService {
} else {
childOrder.setSurplusRefundIntegral(0);
}
order.setSurplusRefundPrice(order.getSurplusRefundPrice().add(childOrder.getSurplusRefundPrice()));
order.setSurplusRefundIntegral(order.getSurplusRefundIntegral() + childOrder.getSurplusRefundIntegral());
}
// 订单入库
HighOrder orderData = insertOrderData(order);
if (orderData.getOrderStatus().equals(OrderStatus.STATUS1.getNumber())) {
SendCallback sendCallback = new SendCallback() {
@Override
public void onSuccess(SendResult sendResult) {
System.out.println("发送成功!");
}
@Override
public void onException(Throwable throwable) {
System.out.println("发送失败!");
}
};
// 10分钟后取消订单
// 10分钟内未支付,自动取消订单
Message<HighOrder> rocketMsg = MessageBuilder.withPayload(order).build();
rocketMQTemplate.asyncSend(OrderTopic.ORDER_TOPIC_CANCEL.getTopic(), rocketMsg, sendCallback,1000,14);
rocketMQTemplate.syncSend(OrderTopic.ORDER_TOPIC_CANCEL.getTopic(), rocketMsg,1000,14);
} else if (orderData.getOrderStatus().equals(OrderStatus.STATUS2.getNumber())) {
// 异步处理业务
paySuccessService.orderPaySuccessHandle(orderData.getOrderNo(), null, null, new BigDecimal("0"), null);
paySuccessService.orderPaySuccessHandle(orderData.getOrderNo(), OrderPayType.PAY_TYPE3, null, new BigDecimal("0"), null);
}
return orderData;
}
@ -431,7 +429,7 @@ public class OrderServiceImpl implements OrderService {
public HighOrder refundOrder(String orderNo, String remarks) throws Exception {
HighOrder order = getOrderDetailByNo(orderNo);
if (!order.getOrderStatus().equals(OrderStatus.STATUS2.getNumber())
|| !order.getOrderStatus().equals(OrderStatus.STATUS3.getNumber())) {
&& !order.getOrderStatus().equals(OrderStatus.STATUS3.getNumber())) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单状态错误");
}
// 订单是否异常,订单没异常则需要校验产品业务是否支持退款
@ -447,20 +445,26 @@ public class OrderServiceImpl implements OrderService {
// 创建退款
order = orderRefundService.createOrderRefund(order, remarks);
// todo 退款金额,原路返回
for (HighChildOrder childOrder : order.getHighChildOrderList()) {
childOrder.setRefundRemarks(remarks);
childOrder.setRefundTime(new Date());
childOrder.setChildOrderStatus(OrderChildStatus.STATUS4.getNumber());
if (childOrder.getGiveawayType() == false) {
childOrder.setRefundRemarks(remarks);
childOrder.setRefundTime(new Date());
childOrder.setChildOrderStatus(OrderChildStatus.STATUS4.getNumber());
if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE3.getNumber())) {
orderRefundHandleService.oilHandle(childOrder);
}
}
}
order.setSurplusRefundIntegral(0);
order.setSurplusRefundPrice(new BigDecimal("0"));
order.setRefundTime(new Date());
order.setOrderStatus(OrderStatus.STATUS4.getNumber());
// todo 退款金额,原路返回
return updateOrderData(order);
}
@ -522,7 +526,7 @@ public class OrderServiceImpl implements OrderService {
}
@Override
@Cached(cacheType = CacheType.BOTH,name="order:", key = "#orderNo",expire = 3600*24*30)
@Cached(cacheType = CacheType.REMOTE,name="order:", key = "#orderNo",expire = 3600*24*30)
public HighOrder getOrderDetailByNo(String orderNo) {
HighOrderExample orderExample = new HighOrderExample();
orderExample.createCriteria().andOrderNoEqualTo(orderNo);

@ -0,0 +1,62 @@
package com.hai.order.type;
import java.util.Objects;
/**
* @className: OrderOilStatus
* @author: HuRui
* @date: 2022/9/19
**/
public enum OrderOilStatus {
STATUS1(1, "待支付"),
STATUS2(2, "已支付"),
STATUS3(3, "已取消"),
STATUS4(4, "已退款"),
STATUS6(5, "退款中"),
STATUS8(6, "退款失败"),
;
private Integer number;
private String name;
OrderOilStatus(int number, String name) {
this.number = number;
this.name = name;
}
/**
* 根据类型查询数据
* @param type
* @return
*/
public static OrderOilStatus getDataByType(Integer type) {
for (OrderOilStatus ele : values()) {
if(Objects.equals(type,ele.getNumber())) return ele;
}
return null;
}
public static String getNameByType(Integer type) {
for (OrderOilStatus ele : values()) {
if(Objects.equals(type,ele.getNumber())) return ele.getName();
}
return null;
}
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

@ -11,8 +11,7 @@ import java.util.Objects;
public enum OrderPayType {
PAY_TYPE1(1, "支付宝"),
PAY_TYPE2(2, "微信"),
@Deprecated
PAY_TYPE3(3, "金币"),
PAY_TYPE3(3, "积分抵扣"),
PAY_TYPE4(4, "贵州汇联通工会卡"),
PAY_TYPE5(5, "银联"),
PAY_TYPE6(6, "银联分期"),

@ -79,7 +79,7 @@ public interface HighCouponAgentService {
* @Description 生成二维码
* @Date 2021/4/21 22:35
**/
Map<String, Object> generateCode(Long couponAgentCodeId,String remark);
Map<String, Object> generateCode(Long couponAgentCodeId,String phone,String remark) throws Exception;
/**
* @Author 胡锐

@ -1,5 +1,7 @@
package com.hai.service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.hai.entity.HighCouponCodeOther;
import java.util.List;
@ -13,6 +15,12 @@ public interface HighCouponCodeOtherService {
*/
void insertCouponCodeOther(HighCouponCodeOther couponCodeOther);
/**
* 修改
* @param couponCodeOther
*/
void update(HighCouponCodeOther couponCodeOther);
/**
* 查询列表
* @param map
@ -27,4 +35,17 @@ public interface HighCouponCodeOtherService {
*/
HighCouponCodeOther getDetailByCouponAgentCodeId(Long couponAgentCodeId);
/**
* 根据卡券号查询
* @param couNo
* @return
*/
HighCouponCodeOther getDetailByCouNo(String couNo);
/**
* 重庆中石化核销回调
* @param param
*/
void cqCnpcUseNotify(JSONObject param);
}

@ -129,6 +129,13 @@ public interface HighCouponService {
**/
Long getCouponByCouponName(Long companyId,String couponName);
/**
* 拼接卡券id
* @param companyId
* @return
*/
String getCouponIdsByCompanyId(Long companyId);
/**
* @Author 胡锐
* @Description 根据商户 查询处于已上架的卡卷

@ -32,6 +32,13 @@ public interface HighGasOrderService {
*/
HighGasOrder getDetailByChildOrderNo(String childOrderNo);
/**
* 查询交易订单号获取详情
* @param orderNo
* @return
*/
HighGasOrder getDetailByOrderNo(String orderNo);
/**
* 查询油站订单列表
* @param param

@ -83,6 +83,13 @@ public interface HighOrderService {
**/
Integer getUndoneChildOrder(Long orderId);
/**
* 查询交易订单
* @param orderId
* @return
*/
HighOrder getDetailById(Long orderId);
/**
* @Author 胡锐
* @Description 查询子商品

@ -56,6 +56,13 @@ public interface HighUserCouponService {
**/
HighUserCoupon getUserNewCoupon(Long userId,Long couponId);
/**
* @Author 胡锐
* @Description 查询最新一张可用的卡券
* @Date 2021/4/20 21:01
**/
HighUserCoupon getUserCouponByOrder(Long userId,Long orderId);
/**
* @Author 胡锐
* @Description 查询用户列表

@ -8,7 +8,9 @@ import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.utils.DateUtil;
import com.hai.common.utils.MemberValidateUtil;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.config.ChongQingCNPCService;
import com.hai.config.HuiLianTongConfig;
import com.hai.config.HuiLianTongUnionCardConfig;
import com.hai.dao.*;
@ -292,7 +294,7 @@ public class HighCouponAgentServiceImpl implements HighCouponAgentService {
@Override
@Transactional(propagation= Propagation.REQUIRES_NEW)
public Map<String, Object> generateCode(Long couponAgentCodeId,String remark) {
public Map<String, Object> generateCode(Long couponAgentCodeId,String phone,String remark) throws Exception {
// 查询卡券销售码
HighCouponAgentCode couponAgentCode = getCodeById(couponAgentCodeId);
if (couponAgentCode == null) {
@ -301,6 +303,8 @@ public class HighCouponAgentServiceImpl implements HighCouponAgentService {
if (couponAgentCode.getStatus() != 1) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "销售码已被销售");
}
couponAgentCode.setConvertUserPhone(phone);
couponAgentCode.setCouponCode(System.currentTimeMillis()+"");
couponAgentCode.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用
couponAgentCode.setRemark(remark);
couponAgentCode.setSalesTime(new Date());
@ -311,6 +315,11 @@ public class HighCouponAgentServiceImpl implements HighCouponAgentService {
couponAgent.setSalesCount(couponAgent.getSalesCount() + 1);
highCouponAgentRelMapper.updateByPrimaryKey(couponAgent);
// 卡券信息
HighCoupon coupon = highCouponService.getCouponById(couponAgentCode.getCouponId());
if (coupon == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到卡券");
}
HighCouponCode couponCode = null;
if (couponAgentCode.getType() == 1) {
@ -320,6 +329,34 @@ public class HighCouponAgentServiceImpl implements HighCouponAgentService {
highCouponCodeService.updateCouponCode(couponCode);
}
if (coupon.getCouponSource().equals(5)) {
if (StringUtils.isBlank(phone)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "请填写客户手机号");
}
if (!MemberValidateUtil.validatePhone(phone)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "手机号格式错误");
}
// 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), couponAgentCode.getConvertCode(), 1, phone);
JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setCouponAgentCodeId(couponAgentCodeId);
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(new Date());
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
}
}
Map<String, Object> map = new HashMap<>();
map.put("couponInfo", highCouponService.getCouponById(couponAgentCode.getCouponId()));
map.put("couponCode", couponCode);

@ -1,13 +1,18 @@
package com.hai.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.hai.common.utils.DateUtil;
import com.hai.dao.HighCouponAgentCodeMapper;
import com.hai.dao.HighCouponCodeOtherMapper;
import com.hai.entity.HighCouponCodeOther;
import com.hai.entity.HighCouponCodeOtherExample;
import com.hai.dao.HighUserCouponMapper;
import com.hai.entity.*;
import com.hai.service.HighCouponCodeOtherService;
import com.hai.service.HighOrderService;
import org.apache.commons.collections4.MapUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;
@ -17,6 +22,20 @@ public class HighCouponCodeOtherServiceImpl implements HighCouponCodeOtherServic
@Resource
private HighCouponCodeOtherMapper highCouponCodeOtherMapper;
@Resource
private HighUserCouponMapper highUserCouponMapper;
@Resource
private HighCouponAgentCodeMapper highCouponAgentCodeMapper;
@Resource
private HighOrderService highOrderService;
@Override
public void update(HighCouponCodeOther couponCodeOther) {
highCouponCodeOtherMapper.updateByPrimaryKey(couponCodeOther);
}
@Override
public void insertCouponCodeOther(HighCouponCodeOther couponCodeOther) {
highCouponCodeOtherMapper.insert(couponCodeOther);
@ -51,4 +70,48 @@ public class HighCouponCodeOtherServiceImpl implements HighCouponCodeOtherServic
}
return null;
}
@Override
public HighCouponCodeOther getDetailByCouNo(String couNo) {
HighCouponCodeOtherExample example = new HighCouponCodeOtherExample();
example.createCriteria().andCouNoEqualTo(couNo);
List<HighCouponCodeOther> list = highCouponCodeOtherMapper.selectByExample(example);
if (list.size() > 0) {
return list.get(0);
}
return null;
}
@Override
public void cqCnpcUseNotify(JSONObject param) {
HighCouponCodeOther couponCodeOther = getDetailByCouNo(param.getString("couponNo"));
if (couponCodeOther != null) {
couponCodeOther.setUseTime(DateUtil.format(param.getString("useTime"), "yyyyMMddHHmmss"));
couponCodeOther.setStationCode(param.getString("stationCode"));
couponCodeOther.setStationName(param.getString("stationName"));
couponCodeOther.setStatus(40);
update(couponCodeOther);
if (couponCodeOther.getChildOrderId() != null) {
HighUserCouponExample userCouponExample = new HighUserCouponExample();
userCouponExample.createCriteria().andQrCodeImgEqualTo(couponCodeOther.getCouNo()).andStatusEqualTo(1);
List<HighUserCoupon> list = highUserCouponMapper.selectByExample(userCouponExample);
if (list.size() > 0) {
HighUserCoupon userCoupon = list.get(0);
userCoupon.setStatus(2);
userCoupon.setConsumeTime(couponCodeOther.getUseTime());
highUserCouponMapper.updateByPrimaryKey(userCoupon);
}
highOrderService.childOrderComplete(couponCodeOther.getChildOrderId());
}
if (couponCodeOther.getCouponAgentCodeId() != null) {
HighCouponAgentCode agentCode = highCouponAgentCodeMapper.selectByPrimaryKey(couponCodeOther.getCouponAgentCodeId());
if (agentCode == null) {
agentCode.setStatus(3);
highCouponAgentCodeMapper.updateByPrimaryKey(agentCode);
}
}
}
}
}

@ -60,6 +60,7 @@ public class HighCouponServiceImpl implements HighCouponService {
private HighApproveService highApproveService;
@Autowired
private RedisTemplate redisTemplate;
@ -447,7 +448,7 @@ public class HighCouponServiceImpl implements HighCouponService {
criteria.andCouponSourceNotEqualTo(MapUtils.getInteger(map, "notCouponSource"));
}
example.setOrderByClause("create_time");
example.setOrderByClause("create_time desc");
List<HighCoupon> coupons = highCouponMapper.selectByExample(example);
if (coupons != null && coupons.size() > 0) {
for (HighCoupon highCoupon : coupons) {
@ -519,6 +520,22 @@ public class HighCouponServiceImpl implements HighCouponService {
return highCouponMapper.countByExample(example);
}
@Override
public String getCouponIdsByCompanyId(Long companyId) {
HighCouponExample example = new HighCouponExample();
example.createCriteria().andCompanyIdEqualTo(companyId);
List<HighCoupon> list = highCouponMapper.selectByExample(example);
String str = null;
for (HighCoupon coupon : list) {
if (StringUtils.isBlank(str)) {
str = coupon.getId().toString();
} else {
str += ","+coupon.getId();
}
}
return str;
}
@Override
public List<HighCoupon> getCouponListByMerchant(Long merchantId) {
HighCouponExample example = new HighCouponExample();

@ -104,7 +104,7 @@ public class HighGasDiscountOilPriceServiceImpl implements HighGasDiscountOilPri
if (store == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到油站");
}
// 是否是加油站
// 是否是加油站·
if (!store.getType().equals(1)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到油站");
}

@ -46,13 +46,24 @@ public class HighGasOrderServiceImpl implements HighGasOrderService {
return null;
}
@Override
public HighGasOrder getDetailByOrderNo(String orderNo) {
HighGasOrderExample example = new HighGasOrderExample();
example.createCriteria().andOrderNoEqualTo(orderNo);
List<HighGasOrder> list = gasOrderMapper.selectByExample(example);
if (list.size() > 0) {
return list.get(0);
}
return null;
}
@Override
public List<HighGasOrder> getGasOrderList(Map<String, Object> param) {
HighGasOrderExample example = new HighGasOrderExample();
HighGasOrderExample.Criteria criteria = example.createCriteria();
if (MapUtils.getLong(param, "companyId") != null) {
criteria.andCompanyIdEqualTo(MapUtils.getLong(param, "companyId"));
}
if (MapUtils.getLong(param, "merId") != null) {
@ -63,6 +74,22 @@ public class HighGasOrderServiceImpl implements HighGasOrderService {
criteria.andStoreIdEqualTo(MapUtils.getLong(param, "storeId"));
}
if (MapUtils.getLong(param, "gasOrgId") != null) {
criteria.andGasOrgIdEqualTo(MapUtils.getLong(param, "gasOrgId"));
}
if (MapUtils.getLong(param, "gasAgentId") != null) {
criteria.andGasAgentIdEqualTo(MapUtils.getLong(param, "gasAgentId"));
}
if (MapUtils.getLong(param, "gasSalesmanId") != null) {
criteria.andGasSalesmanIdEqualTo(MapUtils.getLong(param, "gasSalesmanId"));
}
if (MapUtils.getLong(param, "gasStaffId") != null) {
criteria.andGasStaffIdEqualTo(MapUtils.getLong(param, "gasStaffId"));
}
if (StringUtils.isNotBlank(MapUtils.getString(param, "storeName"))) {
criteria.andStoreNameLike("%"+MapUtils.getString(param, "storeName")+"%");
}
@ -83,6 +110,10 @@ public class HighGasOrderServiceImpl implements HighGasOrderService {
criteria.andGasOilTypeEqualTo(MapUtils.getInteger(param, "storeId"));
}
if (StringUtils.isNotBlank(MapUtils.getString(param, "gasStaffName"))) {
criteria.andGasStaffNameLike("%"+MapUtils.getString(param, "gasStaffName")+"%");
}
if (StringUtils.isNotBlank(MapUtils.getString(param, "gasOilNo"))) {
criteria.andGasOilNoEqualTo(MapUtils.getString(param, "gasOilNo"));
}

@ -193,7 +193,7 @@ public class HighOrderServiceImpl implements HighOrderService {
if (childOrder.getGoodsType() == 1) {
// 查询卡券
HighCoupon couponDetail = highCouponService.getCouponDetail(childOrder.getGoodsId());
if (couponDetail.getCouponSource() != 4) {
if (couponDetail.getCouponSource() != 4 && couponDetail.getCouponSource() != 5) {
// 查询待销售
List<HighCouponCode> list = highCouponCodeService.getNoSaleCode(childOrder.getGoodsId());
if (list == null || list.size() == 0) {
@ -414,7 +414,7 @@ public class HighOrderServiceImpl implements HighOrderService {
orderPre.setStatus(1);
highOrderPreService.insertOrderPre(orderPre);
}
// 贵州高速
// 贵州中石化
if (coupon.getCouponSource() == 4) {
Map<String,Object> push = new HashMap<>();
push.put("couTypeCode", coupon.getCouponKey());
@ -456,6 +456,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(orderId);
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(highOrder.getMemId());
@ -466,6 +468,59 @@ public class HighOrderServiceImpl implements HighOrderService {
highUserCouponMapper.insert(highUserCoupon);
}
}
// 重庆中石油
} else if (coupon.getCouponSource() == 5) {
// 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), highOrder.getOrderNo(), highChildOrder.getSaleCount(), highOrder.getMemPhone());
// 推送记录
JSONObject request = new JSONObject();
request.put("requestCode", coupon.getCouponKey());
request.put("tradeId", highOrder.getOrderNo());
request.put("ticketSum", highChildOrder.getSaleCount());
request.put("phone", highOrder.getMemPhone());
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(highOrder.getOrderNo());
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent(request.toJSONString());
highGasOrderPush.setReturnContent(response.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setOrderId(highOrder.getId());
couponCodeOther.setChildOrderId(highChildOrder.getId());
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setOrderId(orderId);
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setUserId(highOrder.getMemId());
highUserCoupon.setCreateTime(new Date());
highUserCoupon.setQrCodeImg(couponCodeOther.getCouNo());
highUserCoupon.setUseEndTime(couponCodeOther.getValidEndDate());
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
highUserCouponMapper.insert(highUserCoupon);
}
} else {
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId());
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
@ -474,6 +529,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(orderId);
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(code.getMerchantId());
highUserCoupon.setCouponId(code.getCouponId());
highUserCoupon.setUserId(highOrder.getMemId());
@ -727,6 +784,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
@ -748,6 +807,55 @@ public class HighOrderServiceImpl implements HighOrderService {
highGasOrderPush.setReturnContent(returnParam.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
} else if (coupon.getCouponSource() == 5) {
// 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), order.getOrderNo(), highChildOrder.getSaleCount(), order.getMemPhone());
// 推送记录
JSONObject request = new JSONObject();
request.put("requestCode", coupon.getCouponKey());
request.put("tradeId", order.getOrderNo());
request.put("ticketSum", highChildOrder.getSaleCount());
request.put("phone", order.getMemPhone());
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(order.getOrderNo());
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent(request.toJSONString());
highGasOrderPush.setReturnContent(response.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setOrderId(order.getId());
couponCodeOther.setChildOrderId(highChildOrder.getId());
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
highUserCoupon.setCreateTime(new Date());
highUserCoupon.setQrCodeImg(couponCodeOther.getCouNo());
highUserCoupon.setUseEndTime(couponCodeOther.getValidEndDate());
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
highUserCouponMapper.insert(highUserCoupon);
}
} else {
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId());
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
@ -756,6 +864,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(code.getMerchantId());
highUserCoupon.setCouponId(code.getCouponId());
highUserCoupon.setUserId(order.getMemId());
@ -1039,6 +1149,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
@ -1060,6 +1172,55 @@ public class HighOrderServiceImpl implements HighOrderService {
highGasOrderPush.setReturnContent(returnParam.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
} else if (coupon.getCouponSource() == 5) {
// 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), order.getOrderNo(), highChildOrder.getSaleCount(), order.getMemPhone());
// 推送记录
JSONObject request = new JSONObject();
request.put("requestCode", coupon.getCouponKey());
request.put("tradeId", order.getOrderNo());
request.put("ticketSum", highChildOrder.getSaleCount());
request.put("phone", order.getMemPhone());
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(order.getOrderNo());
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent(request.toJSONString());
highGasOrderPush.setReturnContent(response.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setOrderId(order.getId());
couponCodeOther.setChildOrderId(highChildOrder.getId());
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
highUserCoupon.setCreateTime(new Date());
highUserCoupon.setQrCodeImg(couponCodeOther.getCouNo());
highUserCoupon.setUseEndTime(couponCodeOther.getValidEndDate());
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
highUserCouponMapper.insert(highUserCoupon);
}
} else {
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId());
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
@ -1068,6 +1229,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(code.getMerchantId());
highUserCoupon.setCouponId(code.getCouponId());
highUserCoupon.setUserId(order.getMemId());
@ -1302,6 +1465,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
@ -1323,6 +1488,55 @@ public class HighOrderServiceImpl implements HighOrderService {
highGasOrderPush.setReturnContent(returnParam.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
} else if (coupon.getCouponSource() == 5) {
// 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), order.getOrderNo(), highChildOrder.getSaleCount(), order.getMemPhone());
// 推送记录
JSONObject request = new JSONObject();
request.put("requestCode", coupon.getCouponKey());
request.put("tradeId", order.getOrderNo());
request.put("ticketSum", highChildOrder.getSaleCount());
request.put("phone", order.getMemPhone());
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(order.getOrderNo());
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent(request.toJSONString());
highGasOrderPush.setReturnContent(response.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setOrderId(order.getId());
couponCodeOther.setChildOrderId(highChildOrder.getId());
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
highUserCoupon.setCreateTime(new Date());
highUserCoupon.setQrCodeImg(couponCodeOther.getCouNo());
highUserCoupon.setUseEndTime(couponCodeOther.getValidEndDate());
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
highUserCouponMapper.insert(highUserCoupon);
}
} else {
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId());
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
@ -1331,6 +1545,8 @@ public class HighOrderServiceImpl implements HighOrderService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(code.getMerchantId());
highUserCoupon.setCouponId(code.getCouponId());
highUserCoupon.setUserId(order.getMemId());
@ -1493,6 +1709,11 @@ public class HighOrderServiceImpl implements HighOrderService {
return count;
}
@Override
public HighOrder getDetailById(Long orderId) {
return highOrderMapper.selectByPrimaryKey(orderId);
}
@Override
public HighChildOrder getChildOrderById(Long childOrderId) {
return highChildOrderMapper.selectByPrimaryKey(childOrderId);
@ -3080,52 +3301,7 @@ public class HighOrderServiceImpl implements HighOrderService {
@Override
public List<HighOrder> orderListByAgentId(Map<String, Object> map) throws Exception {
// HighOrderExample example = new HighOrderExample();
// HighOrderExample.Criteria criteria = example.createCriteria();
//
// criteria.andOrderStatusEqualTo(3);
//
// /* if (MapUtils.getLong(map , "agentId") != null) {
// criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "agentId"));
// } else {
//<<<<<<< HEAD
// criteria.andIdentificationCodeIsNotNull();
// }*/
//
// List<HighOrder> list = highOrderMapper.selectByExample(example);
//
// /* for (HighOrder order : list) {
// HighUser user = highUserService.findByUserId(order.getIdentificationCode());
// order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm"));
// List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId());
// order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType()));
// order.setAgentName(user.getName());
// }*/
//=======
// criteria.andIdentificationCodeIsNotNull().andIdentificationCodeNotEqualTo(60L);
// }
// if (MapUtils.getLong(map , "code") != null) {
// criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "code"));
// }
//
// List<HighOrder> list = highOrderMapper.selectByExample(example);
//
// if (list.size() > 0) {
// for (HighOrder order : list) {
// HighUser user = highUserService.findByUserId(order.getIdentificationCode());
// order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm"));
// List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId());
// order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType()));
// if (user != null) {
// order.setAgentName(user.getName());
// } else {
// order.setAgentName("暂无推广人");
// }
// }
// }
//>>>>>>> dev_yy
//
return null;
}
}

@ -88,6 +88,18 @@ public class HighUserCouponServiceImpl implements HighUserCouponService {
return null;
}
@Override
public HighUserCoupon getUserCouponByOrder(Long userId, Long orderId) {
HighUserCouponExample example = new HighUserCouponExample();
example.createCriteria().andUserIdEqualTo(userId).andOrderIdEqualTo(orderId).andStatusEqualTo(1);
example.setOrderByClause("create_time desc");
List<HighUserCoupon> couponList = highUserCouponMapper.selectByExample(example);
if (couponList != null && couponList.size() > 0) {
return couponList.get(0);
}
return null;
}
@Override
public List<HighUserCoupon> getUserCouponList(Map<String, Object> map) {
HighUserCouponExample example = new HighUserCouponExample();
@ -174,6 +186,8 @@ public class HighUserCouponServiceImpl implements HighUserCouponService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(userCoupon.getOrderId());
highUserCoupon.setChildOrderId(userCoupon.getChildOrderId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(userId);

@ -228,6 +228,8 @@ public class GoodsOrderServiceImpl implements PayService {
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
@ -241,6 +243,55 @@ public class GoodsOrderServiceImpl implements PayService {
} else if (coupon.getCouponSource() == 5) {
// 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), order.getOrderNo(), highChildOrder.getSaleCount(), order.getMemPhone());
// 推送记录
JSONObject request = new JSONObject();
request.put("requestCode", coupon.getCouponKey());
request.put("tradeId", order.getOrderNo());
request.put("ticketSum", highChildOrder.getSaleCount());
request.put("phone", order.getMemPhone());
HighGasOrderPush highGasOrderPush = new HighGasOrderPush();
highGasOrderPush.setType(OrderPushType.type10.getType());
highGasOrderPush.setOrderNo(order.getOrderNo());
highGasOrderPush.setCreateTime(new Date());
highGasOrderPush.setRequestContent(request.toJSONString());
highGasOrderPush.setReturnContent(response.toJSONString());
highGasOrderPushMapper.insert(highGasOrderPush);
JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) {
HighCouponCodeOther couponCodeOther = new HighCouponCodeOther();
couponCodeOther.setType(2);
couponCodeOther.setOrderId(order.getId());
couponCodeOther.setChildOrderId(highChildOrder.getId());
couponCodeOther.setCouTypeCode(couponDetail.getString("requestCode"));
couponCodeOther.setCouNo(ChongQingCNPCService.decryptCouponCode(String.valueOf(data)));
couponCodeOther.setActiveTime(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidStartDate(DateUtil.format(couponDetail.getString("effectiveTime"), "yyyy-MM-dd"));
couponCodeOther.setValidEndDate(DateUtil.format(couponDetail.getString("expiredDate"), "yyyy-MM-dd"));
couponCodeOther.setStatus(20);
couponCodeOther.setCreateTime(new Date());
highCouponCodeOtherMapper.insert(couponCodeOther);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(coupon.getMerchantId());
highUserCoupon.setCouponId(coupon.getId());
highUserCoupon.setUserId(order.getMemId());
highUserCoupon.setCreateTime(new Date());
highUserCoupon.setQrCodeImg(couponCodeOther.getCouNo());
highUserCoupon.setUseEndTime(couponCodeOther.getValidEndDate());
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
highUserCouponMapper.insert(highUserCoupon);
}
} else {
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId());
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
@ -248,6 +299,8 @@ public class GoodsOrderServiceImpl implements PayService {
highCouponCodeService.updateCouponCode(code);
// 卡卷关联用户
HighUserCoupon highUserCoupon = new HighUserCoupon();
highUserCoupon.setOrderId(order.getId());
highUserCoupon.setChildOrderId(highChildOrder.getId());
highUserCoupon.setMerchantId(code.getMerchantId());
highUserCoupon.setCouponId(code.getCouponId());
highUserCoupon.setUserId(order.getMemId());

@ -1,6 +1,12 @@
hsgDomainName=https://hsgcs.dctpay.com
gasDefaultOilStationImg=https://hsgcs.dctpay.com/filesystem/default/default_oil_station.jpg
# ChongQingCNPC configuration parameters
ChongQingCnpcUrl=http://121.40.235.135:9083/d/cross/api
ChongQingCnpcMerNo=toywqvi14wenrhb3d9
ChongQingCnpcMerKey=n2j30jxhl3rhuoci
ChongQingCnpcCouponSignKey=5ojldakiz343a6yk
# TuanYou configuration parameters
tuanYouUrl=https://test05-motorcade-hcs.czb365.com
tuanYouAppKey=231599775566496

@ -1,220 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="web" name="Web">
<configuration>
<webroots />
</configuration>
</facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="hai-service" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.10.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.10.0" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.25" level="project" />
<orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.19" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.34" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.34" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.34" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.12.Final" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:2.7.9" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.1" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.5" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.0.10.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.0.10.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.0.10.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.1.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.2" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-thymeleaf:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf-spring5:3.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf:3.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ognl:ognl:3.1.12" level="project" />
<orderEntry type="library" name="Maven: org.javassist:javassist:3.20.0-GA" level="project" />
<orderEntry type="library" name="Maven: org.attoparser:attoparser:2.0.4.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.unbescape:unbescape:1.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf-spring4:3.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.10" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.8" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.2" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.8.13" level="project" />
<orderEntry type="library" name="Maven: tk.mybatis:mapper:3.3.0" level="project" />
<orderEntry type="library" name="Maven: javax.persistence:persistence-api:1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.10" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.47" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:druid:1.0.20" level="project" />
<orderEntry type="module-library">
<library name="Maven: com.alibaba:jconsole:1.8.0">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../Program Files/Java/jdk1.8.0_191/jre/../lib/jconsole.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Maven: com.alibaba:tools:1.8.0">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../Program Files/Java/jdk1.8.0_191/jre/../lib/tools.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.6.1" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.10" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.10" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.6.1" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.6.1" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.6.1" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.6.1" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.6.1" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:18.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.0.0.Final" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.6.1" level="project" />
<orderEntry type="library" name="Maven: joda-time:joda-time:2.9.9" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.2" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.6" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.5.6" level="project" />
<orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.1.0" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.0" level="project" />
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-core:2.1.14" level="project" />
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
<orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
<orderEntry type="library" name="Maven: com.google.zxing:core:3.3.0" level="project" />
<orderEntry type="library" name="Maven: com.google.zxing:javase:3.3.0" level="project" />
<orderEntry type="library" name="Maven: com.beust:jcommander:1.48" level="project" />
<orderEntry type="library" name="Maven: com.github.jai-imageio:jai-imageio-core:1.3.1" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:kernel:7.0.1" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:io:7.0.1" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itextpdf:5.5.13" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf.tool:xmlworker:5.5.13" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itext-asian:5.2.0" level="project" />
<orderEntry type="library" name="Maven: org.xhtmlrenderer:flying-saucer-pdf-itext5:9.0.3" level="project" />
<orderEntry type="library" name="Maven: org.xhtmlrenderer:flying-saucer-core:9.0.3" level="project" />
<orderEntry type="library" name="Maven: cn.jpush.api:jpush-client:3.3.7" level="project" />
<orderEntry type="library" name="Maven: cn.jpush.api:jiguang-common:1.1.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.integration:spring-integration-mqtt:5.0.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.integration:spring-integration-core:5.0.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.retry:spring-retry:1.2.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.29.Final" level="project" />
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.5" level="project" />
<orderEntry type="library" name="Maven: com.alipay.sdk:alipay-sdk-java:4.9.79.ALL" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.62" level="project" />
<orderEntry type="library" name="Maven: com.thoughtworks.xstream:xstream:1.4.11.1" level="project" />
<orderEntry type="library" name="Maven: xmlpull:xmlpull:1.1.3.1" level="project" />
<orderEntry type="library" name="Maven: xpp3:xpp3_min:1.1.4c" level="project" />
<orderEntry type="library" name="Maven: com.github.binarywang:weixin-java-miniapp:3.8.0" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.65" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:easyexcel:2.2.6" level="project" />
<orderEntry type="library" name="Maven: cglib:cglib:3.1" level="project" />
<orderEntry type="library" name="Maven: org.ow2.asm:asm:4.2" level="project" />
<orderEntry type="library" name="Maven: org.ehcache:ehcache:3.5.2" level="project" />
<orderEntry type="library" name="Maven: org.gavaghan:geodesy:1.1.3" level="project" />
<orderEntry type="library" name="Maven: com.github.wechatpay-apiv3:wechatpay-apache-httpclient:0.2.2" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.6" level="project" />
<orderEntry type="library" name="Maven: com.sun.jersey:jersey-client:1.16" level="project" />
<orderEntry type="library" name="Maven: com.sun.jersey:jersey-core:1.16" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-test:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.16.22" level="project" />
<orderEntry type="library" name="Maven: commons-net:commons-net:3.6" level="project" />
<orderEntry type="library" name="Maven: net.coobird:thumbnailator:0.4.8" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.0.5.RELEASE" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.0.5.RELEASE" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.9.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:2.15.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy:1.7.11" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.7.11" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:2.6" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.0.9.RELEASE" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.5.1" level="project" />
<orderEntry type="library" name="Maven: com.github.binarywang:weixin-java-mp:3.8.0" level="project" />
<orderEntry type="library" name="Maven: com.github.binarywang:weixin-java-common:3.8.0" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.dom4j:dom4j:2.1.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-websocket:2.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-websocket:5.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.0.9.RELEASE" level="project" />
</component>
</module>
Loading…
Cancel
Save