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 f8d5ffd872
commit 22d8ff4e84
  1. 12
      hai-bweb/src/main/java/com/bweb/controller/OutRechargePriceController.java
  2. 3
      hai-cweb/src/main/java/com/cweb/controller/HighThirdPartyController.java
  3. 7
      hai-service/src/main/java/com/hai/config/ThirdProductConfig.java
  4. 2
      hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java
  5. 4
      hai-service/src/main/java/com/hai/order/service/impl/OrderPayServiceImpl.java
  6. 2
      hai-service/src/main/java/com/hai/order/service/impl/OrderRefundServiceImpl.java
  7. 2
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java
  8. 3
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

@ -129,7 +129,6 @@ public class OutRechargePriceController {
object.getString("operatorType") == null ||
object.getJSONArray("rechargePlatform") == null ||
object.getJSONArray("productPlatform") == null ||
// object.getInteger("rechargeType") == null ||
object.getJSONArray("payType") == null ||
object.getInteger("rechargeWay") == null
) {
@ -147,17 +146,6 @@ public class OutRechargePriceController {
outRechargePriceService.insertRechargePrice(object);
BsOperationLog bsOperationLog = new BsOperationLog();
bsOperationLog.setOperationType(1);
bsOperationLog.setBeforeContent(String.valueOf(object));
bsOperationLog.setAfterContent("新增数据");
bsOperationLog.setOperatorId(userInfoModel.getSecUser().getId());
bsOperationLog.setOperatorName(userInfoModel.getSecUser().getUserName());
bsOperationLog.setEntityName("OutRechargePrice");
bsOperationLogService.insertOperationLog(bsOperationLog);
return ResponseMsgUtil.success("新增成功");
} catch (Exception e) {

@ -302,11 +302,10 @@ public class HighThirdPartyController {
@ApiOperation(value = "查询第三方产品详情")
public ResponseData getThirdPartyByDetail(@RequestParam(name = "platformId", required = true) Integer platformId,
@RequestParam(name = "productType", required = true) Integer productType,
@RequestParam(name = "productId", required = false) Long productId,
@RequestParam(name = "companyId", required = true) Long companyId) {
try {
return ResponseMsgUtil.success(thirdProductConfig.getThirdPartyByDetail(platformId , productType , companyId , productId));
return ResponseMsgUtil.success(thirdProductConfig.getThirdPartyByDetail(platformId , productType , companyId));
} catch (Exception e) {
log.error("HighUserCardController --> oilCardRefund() error!", e);

@ -49,12 +49,11 @@ public class ThirdProductConfig {
}
// 产品折扣比例
public BsProductConfig getProductConfig(Integer productType , Long companyId , Long productId) {
public BsProductConfig getProductConfig(Integer productType , Long companyId) {
Map<String, Object> listMap = new HashMap<>();
listMap.put("productType", productType);
listMap.put("companyId", companyId);
listMap.put("productId", productId);
List<BsProductConfig> productConfigs = apiProductService.getProductConfig(listMap);
@ -64,8 +63,8 @@ public class ThirdProductConfig {
return null;
}
public JSONObject getThirdPartyByDetail(Integer platformId , Integer productType , Long companyId , Long productId) {
BsProductConfig productConfig = getProductConfig(productType, companyId , productId);
public JSONObject getThirdPartyByDetail(Integer platformId , Integer productType , Long companyId) {
BsProductConfig productConfig = getProductConfig(productType, companyId);
if (productConfig == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂未配置当前内容");

@ -614,7 +614,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
String orderNo;
// 查询详单订单的实际
JSONObject productDetail = thirdProductConfig.getThirdPartyByDetail(object.getInteger("platformId"), object.getInteger("productType"), object.getLong("companyId") , object.getLong("productId"));
JSONObject productDetail = thirdProductConfig.getThirdPartyByDetail(object.getInteger("platformId"), object.getInteger("productType"), object.getLong("companyId"));
// 获取token 千猪请求接口token
JSONObject userToken = QianZhuConfig.getTokenV2(user.getId().toString(), user.getName(), user.getPhone());

@ -74,6 +74,10 @@ public class OrderPayServiceImpl implements OrderPayService {
goodsDesc = "购买优惠券包";
tranDesc = "购买" + order.getHighChildOrderList().get(0).getGoodsName() + "优惠券包";
} else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE9.getNumber())) {
goodsDesc = "购买话费";
tranDesc = "购买" + order.getHighChildOrderList().get(0).getGoodsName();
} else {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时无法支付,请使用其他支付方式");
}

@ -161,7 +161,7 @@ public class OrderRefundServiceImpl implements OrderRefundService {
} else if (orderPayType.getNumber().equals(OrderPayType.PAY_TYPE4.getNumber())) {
JSONObject refund = HuiLianTongUnionCardConfig.refund(refundOrderNo, order.getPaySerialNo());
JSONObject refund = HuiLianTongUnionCardConfig.refund(refundOrderNo, order.getOrderNo());
if (!refund.getString("respCode").equals("0000")) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR,refund.getString("respMessage"));
}

@ -1426,7 +1426,7 @@ public class HighOrderServiceImpl implements HighOrderService {
BigDecimal marketPrice = new BigDecimal(0);
// 查询详单订单的实际
JSONObject productDetail = thirdProductConfig.getThirdPartyByDetail(object.getInteger("platformId"), object.getInteger("productType"), object.getLong("companyId") , object.getLong("productId"));
JSONObject productDetail = thirdProductConfig.getThirdPartyByDetail(object.getInteger("platformId"), object.getInteger("productType"), object.getLong("companyId"));
highOrder.setProductType(object.getInteger("productType"));

@ -1007,13 +1007,14 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
// 判断是否充值提交成功
if (childOrder.getStatus() == 102) {
outRechargeOrder.setRechargeStatus(201);
outRechargeOrder.setPayStatus(102);
}
if (childOrder.getStatus() == 103) {
outRechargeOrder.setRechargeStatus(205);
outRechargeOrder.setPayStatus(102);
}
outRechargeOrderService.updateOrder(outRechargeOrder);
System.out.println("话费定时任务 -> 需要重新充值:结束");
}
@Override

Loading…
Cancel
Save