提交 e36d2148 authored 作者: huyufan's avatar huyufan

处理支付回调

上级 56e9227a
...@@ -19,6 +19,7 @@ import com.clx.performance.param.pc.owner.ThawAccountParam; ...@@ -19,6 +19,7 @@ import com.clx.performance.param.pc.owner.ThawAccountParam;
import com.clx.performance.service.IntegralMqService; import com.clx.performance.service.IntegralMqService;
import com.clx.performance.service.OrderChildLogService; import com.clx.performance.service.OrderChildLogService;
import com.clx.performance.service.OrderGoodsTruckBindService; import com.clx.performance.service.OrderGoodsTruckBindService;
import com.clx.performance.service.OwnerAccountService;
import com.clx.performance.service.breakcontract.BreakContractSettlementOwnerService; import com.clx.performance.service.breakcontract.BreakContractSettlementOwnerService;
import com.clx.performance.service.child.OrderChildPostService; import com.clx.performance.service.child.OrderChildPostService;
import com.clx.user.enums.driver.DriverInfoEnum; import com.clx.user.enums.driver.DriverInfoEnum;
...@@ -67,6 +68,8 @@ public class OrderCancelComponent implements InitializingBean { ...@@ -67,6 +68,8 @@ public class OrderCancelComponent implements InitializingBean {
private final SettlementOwnerDetailDao settlementOwnerDetailDao; private final SettlementOwnerDetailDao settlementOwnerDetailDao;
private final OwnerAccountService ownerAccountService;
public List<String> ownerProcess(OrderCancelParam param) { public List<String> ownerProcess(OrderCancelParam param) {
String orderNo = param.getOrderNo(); String orderNo = param.getOrderNo();
List<OrderGoods> orderGoodsList = null; List<OrderGoods> orderGoodsList = null;
...@@ -106,6 +109,8 @@ public class OrderCancelComponent implements InitializingBean { ...@@ -106,6 +109,8 @@ public class OrderCancelComponent implements InitializingBean {
thawAccountParam.setOrderType(OwnerAccountEnum.OrderChildTypeStatus.NETWORK.getCode()); thawAccountParam.setOrderType(OwnerAccountEnum.OrderChildTypeStatus.NETWORK.getCode());
} }
thawAccountParam.setOrderNo(orderNo); thawAccountParam.setOrderNo(orderNo);
log.info("执行解冻账户,参数:{}", JSONUtil.parse(thawAccountParam));
ownerAccountService.ownerAccountThaw(thawAccountParam);
break; break;
case 2: //取消未拉运吨数的货单 case 2: //取消未拉运吨数的货单
log.info("2:货主取消未拉运吨数的货单"); log.info("2:货主取消未拉运吨数的货单");
......
...@@ -67,6 +67,7 @@ public class TransportSyncController { ...@@ -67,6 +67,7 @@ public class TransportSyncController {
String decrypt = ThirdComponent.decrypt(bean.getData()); String decrypt = ThirdComponent.decrypt(bean.getData());
log.info("payStatusNotify 解密后:{}", decrypt); log.info("payStatusNotify 解密后:{}", decrypt);
PayStatusNotifyDTO payStatusNotifyDTO = JSONUtil.toBean(decrypt, PayStatusNotifyDTO.class); PayStatusNotifyDTO payStatusNotifyDTO = JSONUtil.toBean(decrypt, PayStatusNotifyDTO.class);
log.info("支付回调payStatusNotifyDTO:{}", JSONUtil.parse(payStatusNotifyDTO));
orderChildSyncTransportRecordService.updateStatus(payStatusNotifyDTO); orderChildSyncTransportRecordService.updateStatus(payStatusNotifyDTO);
return ThirdComponent.encrypt(JSON.toJSONString(Result.ok())); return ThirdComponent.encrypt(JSON.toJSONString(Result.ok()));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论