commit
74a7a170da
File diff suppressed because one or more lines are too long
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);
|
||||
} |
||||
} |
||||
|
||||
} |
@ -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"));
|
||||
} |
||||
} |
@ -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; |
||||
} |
@ -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) ; |
||||
|
||||
} |
@ -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); |
||||
} |
||||
} |
@ -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; |
||||
} |
||||
} |
@ -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…
Reference in new issue