|
|
@ -17,6 +17,7 @@ import com.hai.dao.HighUserCouponMapper; |
|
|
|
import com.hai.entity.*; |
|
|
|
import com.hai.entity.*; |
|
|
|
import com.hai.enum_type.MerStoreAmountSourceTypeEnum; |
|
|
|
import com.hai.enum_type.MerStoreAmountSourceTypeEnum; |
|
|
|
import com.hai.enum_type.MerStoreAmountTypeEnum; |
|
|
|
import com.hai.enum_type.MerStoreAmountTypeEnum; |
|
|
|
|
|
|
|
import com.hai.enum_type.MerchantStoreSourceType; |
|
|
|
import com.hai.enum_type.OrderPushType; |
|
|
|
import com.hai.enum_type.OrderPushType; |
|
|
|
import com.hai.model.HighMerchantStoreModel; |
|
|
|
import com.hai.model.HighMerchantStoreModel; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.model.ResponseData; |
|
|
@ -118,6 +119,9 @@ public class UnionPayController { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private ApiMemberProductService apiMemberProductService; |
|
|
|
private ApiMemberProductService apiMemberProductService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private ShellGroupService shellGroupService; |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/notify", method = RequestMethod.POST) |
|
|
|
@RequestMapping(value = "/notify", method = RequestMethod.POST) |
|
|
|
@ApiOperation(value = "银联支付 -> 异步回调") |
|
|
|
@ApiOperation(value = "银联支付 -> 异步回调") |
|
|
|
public void notify(@RequestBody String params,HttpServletRequest request, HttpServletResponse response) { |
|
|
|
public void notify(@RequestBody String params,HttpServletRequest request, HttpServletResponse response) { |
|
|
@ -343,6 +347,16 @@ public class UnionPayController { |
|
|
|
if (orderPushObject != null && orderPushObject.getString("code").equals("200")) { |
|
|
|
if (orderPushObject != null && orderPushObject.getString("code").equals("200")) { |
|
|
|
highChildOrder.setGasOrderNo(orderPushObject.getJSONObject("result").getString("orderNo")); |
|
|
|
highChildOrder.setGasOrderNo(orderPushObject.getJSONObject("result").getString("orderNo")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (store.getSourceType().equals(MerchantStoreSourceType.type3.getNumber())) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 推送壳牌
|
|
|
|
|
|
|
|
JSONObject syncPayment = shellGroupService.gasSyncPayment(order.getOrderNo(), |
|
|
|
|
|
|
|
store.getStoreKey(), |
|
|
|
|
|
|
|
order.getPayTime(), |
|
|
|
|
|
|
|
highChildOrder.getGasPriceGun(), |
|
|
|
|
|
|
|
highChildOrder.getGasOilNo(), |
|
|
|
|
|
|
|
highChildOrder.getGasGunNo(), |
|
|
|
|
|
|
|
order.getTotalPrice()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (highChildOrder.getGoodsType() == 4 || highChildOrder.getGoodsType() == 9) { |
|
|
|
if (highChildOrder.getGoodsType() == 4 || highChildOrder.getGoodsType() == 9) { |
|
|
|