Merge branch 'master' into 2.0-dev

* master:
  修改配置星巴克 肯德基 会员充值 话费 微信商户号
  修改配置星巴克 肯德基 会员充值 话费 微信商户号

# Conflicts:
#	hai-cweb/src/main/java/com/cweb/controller/pay/CzOrderController.java
#	hai-cweb/src/main/java/com/cweb/controller/pay/ThirdOrderController.java
dev-discount
袁野 2 years ago
parent 149c503efb
commit 3bf7fcf3ea
  1. 2
      hai-cweb/src/main/java/com/cweb/controller/HighUserController.java
  2. 2
      hai-schedule/src/main/java/com/hai/schedule/HighOrderSchedule.java
  3. 20
      hai-service/src/main/java/com/hai/entity/HighOrder.java
  4. 2
      hai-service/src/main/java/com/hai/order/service/OrderCreateHandleService.java
  5. 3
      hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java
  6. 32
      hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java
  7. 2
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceImpl.java
  8. 2
      hai-service/src/main/java/com/hai/service/HighOrderService.java
  9. 8
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java
  10. 9
      hai-service/src/main/java/com/hai/service/impl/HighUserServiceImpl.java

@ -370,7 +370,7 @@ public class HighUserController {
HighUserModel userInfoModel = (HighUserModel) sessionObject.getObject();
PageHelper.startPage(pageNum,pageSize);
return ResponseMsgUtil.success(new PageInfo<>(highOrderService.promoteOrderList(userInfoModel.getHighUser().getId())));
return ResponseMsgUtil.success(new PageInfo<>(highOrderService.promoteOrderList(userInfoModel.getHighUser().getId().toString())));
} catch (Exception e) {
log.error("HighOrderController --> getBackendToken() error!", e);
return ResponseMsgUtil.exception(e);

@ -253,7 +253,7 @@ public class HighOrderSchedule {
* @Param []
* @return void
*/
@Scheduled(cron="0 0/10 * * * ?") //每 5分钟执行一次
@Scheduled(cron="0 0/1 * * * ?") //每 5分钟执行一次
public void integralRebateOrder() {
// 查询满足初步返利条件订单

@ -251,6 +251,26 @@ public class HighOrder implements Serializable {
private String ext6;
private String time;
private String goodsTypeName;
public String getGoodsTypeName() {
return goodsTypeName;
}
public void setGoodsTypeName(String goodsTypeName) {
this.goodsTypeName = goodsTypeName;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
private static final long serialVersionUID = 1L;
private List<HighChildOrder> highChildOrderList;

@ -54,7 +54,7 @@ public interface OrderCreateHandleService {
* @param createOrderChild
* @return
*/
HighChildOrder hltUnionCardRecharge(CreateOrderChildModel createOrderChild);
HighChildOrder hltUnionCardRecharge(HighOrder order, CreateOrderChildModel createOrderChild);
/**
* @Author Sum1Dream

@ -561,7 +561,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
}
@Override
public HighChildOrder hltUnionCardRecharge(CreateOrderChildModel createOrderChild) {
public HighChildOrder hltUnionCardRecharge(HighOrder order, CreateOrderChildModel createOrderChild) {
if (createOrderChild.getGoodsPrice() == null) {
log.error("HighOrderController --> hltUnionCardRecharge() error!", "请设置充值金额");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "请设置充值金额");
@ -581,6 +581,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
childOrder.setMemId(createOrderChild.getMemId());
childOrder.setMemName(createOrderChild.getMemName());
childOrder.setMemPhone(createOrderChild.getMemPhone());
childOrder.setOrderNo(order.getOrderNo());
childOrder.setChildOrderNo(OrderUtil.generateChildOrderNo());
childOrder.setGoodsType(OrderChildGoodsType.TYPE8.getNumber());
childOrder.setGoodsId(user.getId());

@ -203,7 +203,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE7.getNumber())) {
eCouponPackageHandle(order , childOrder);
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE8.getNumber())) {
hltUnionCardRechargeHandle(order);
hltUnionCardRechargeHandle(order , childOrder);
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE9.getNumber())) {
} else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE10.getNumber())) {
@ -415,44 +415,18 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
* @Param [order]
* @Return void
*/
private void hltUnionCardRechargeHandle(HighOrder order) throws Exception {
private void hltUnionCardRechargeHandle(HighOrder order , HighChildOrder highChildOrder) throws Exception {
// 汇联通充值
String goodsDesc = "汇联通充值"+order.getPayPrice()+"元";
String tranDesc = "";
String businessType = "ghk_deposit";
// 汇联通卡充值
JSONObject deposit = HuiLianTongUnionCardConfig.deposit(order.getOrderNo(), order.getMemCardNo(), order.getPayPrice(), businessType, order.getPaySerialNo(), tranDesc);
JSONObject deposit = HuiLianTongUnionCardConfig.deposit(order.getOrderNo(), highChildOrder.getGoodsSpecName(), order.getPayPrice(), businessType, order.getPaySerialNo(), goodsDesc);
// 汇联通充值回调解析
HuiLianTongUnionCardConfig.resolveResponse(deposit.getString("data"));
// Map<String,Object> dataMap = new HashMap<>();
// dataMap.put("orderNo", order.getOrderNo());
// dataMap.put("cardType", "ghk");
// dataMap.put("cardNo", order.getMemCardNo());
// dataMap.put("checkPassword", "N");
// dataMap.put("tranAmount", order.getPayPrice());
// dataMap.put("tranChannel", "HiSen");
// dataMap.put("businessType", businessType);
// dataMap.put("goodsDesc", goodsDesc);
// dataMap.put("tranDesc", tranDesc);
// HighGasOrderPush payPush = new HighGasOrderPush();
// payPush.setType(OrderPushType.type7.getType());
// payPush.setOrderNo(order.getOrderNo());
// payPush.setCreateTime(new Date());
// payPush.setCode(deposit.getString("respCode"));
// payPush.setRequestContent(JSON.toJSONString(dataMap));
// payPush.setReturnContent(deposit.toJSONString());
// highGasOrderPushMapper.insert(payPush);
//
// if (!Objects.equals(deposit.getString("respCode"), "0000")) {
// throw ErrorHelp.genException(SysCode.System , ErrorCode.COMMON_ERROR , deposit.getString("respMessage"));
// }
// // 记录回调信息
// if (!dataObject.getBoolean("success")) {
// throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, dataObject.getString("message"));
// }
}
/**

@ -226,7 +226,7 @@ public class OrderServiceImpl implements OrderService {
// 贵州汇联通工会卡充值
} else if (child.getGoodsType().equals(OrderChildGoodsType.TYPE8.getNumber())) {
order.setProductType(OrderProductType.PRODUCT_TYPE8.getNumber());
HighChildOrder childOrder = orderCreateHandleService.hltUnionCardRecharge(child);
HighChildOrder childOrder = orderCreateHandleService.hltUnionCardRecharge(order , child);
childOrderList.add(childOrder);
order.setTitle(childOrder.getGoodsName());

@ -548,7 +548,7 @@ public interface HighOrderService {
* @Param [java.lang.Long]
* @return java.util.List<com.hai.entity.HighOrder>
*/
List<HighOrder> promoteOrderList(Long identificationCode) throws Exception;
List<HighOrder> promoteOrderList(String identificationCode) throws Exception;
/**
* @Author Sum1Dream

@ -2242,20 +2242,20 @@ public class HighOrderServiceImpl implements HighOrderService {
}
@Override
public List<HighOrder> promoteOrderList(Long identificationCode) throws Exception {
public List<HighOrder> promoteOrderList(String identificationCode) throws Exception {
HighOrderExample example = new HighOrderExample();
HighOrderExample.Criteria criteria = example.createCriteria();
//criteria.andIdentificationCodeEqualTo(identificationCode).andOrderStatusEqualTo(3);
criteria.andPromoteCodeEqualTo(identificationCode).andOrderStatusEqualTo(3);
List<HighOrder> list = highOrderMapper.selectByExample(example);
/*
for (HighOrder order : list) {
order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm"));
List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId());
order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType()));
}*/
}
return list;
}

@ -121,10 +121,11 @@ public class HighUserServiceImpl implements HighUserService {
}
SecRegion region = commonService.getRegionsByName(loginLog.getProvinceName());
if (region != null) {
// 绑定推广关联关系
distributionUserRelService.insertDistributionRebate(user.getId(), popularizeUserId, region.getRegionId().toString());
}
distributionUserRelService.insertDistributionRebate(user.getId(), popularizeUserId, "500000");
// if (region != null) {
// // 绑定推广关联关系
// distributionUserRelService.insertDistributionRebate(user.getId(), popularizeUserId, region.getRegionId().toString());
// }
}
loginLog.setUserId(user.getId());
userLoginLogMapper.insert(loginLog);

Loading…
Cancel
Save