Browse Source

ias 取消订单

master
chenchaod 1 day ago
parent
commit
7e08ae9e12

+ 13
- 0
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/OrderCancelManager.java View File

import cn.com.taiji.core.model.comm.protocol.ias.order.OrderCancelRequest; import cn.com.taiji.core.model.comm.protocol.ias.order.OrderCancelRequest;
import cn.com.taiji.core.model.comm.protocol.ias.order.RetunInfoModel; import cn.com.taiji.core.model.comm.protocol.ias.order.RetunInfoModel;
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder; import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder;
import cn.com.taiji.core.repo.jpa.basic.QtkCardInfoRepo;
import cn.com.taiji.core.repo.jpa.basic.QtkObuInfoRepo;
import cn.com.taiji.core.repo.jpa.issue.IssueOrderRefundRepo; import cn.com.taiji.core.repo.jpa.issue.IssueOrderRefundRepo;
import cn.com.taiji.ias.dict.DataType; import cn.com.taiji.ias.dict.DataType;
import cn.com.taiji.ias.model.ServiceLogEvent; import cn.com.taiji.ias.model.ServiceLogEvent;
IssueOrderStep.ORDER_PAID, IssueOrderStep.ORDER_SIGNED, IssueOrderStep.WAITING_AUDIT, IssueOrderStep.ORDER_PAID, IssueOrderStep.ORDER_SIGNED, IssueOrderStep.WAITING_AUDIT,
IssueOrderStep.AUDIT_FAIL, IssueOrderStep.WAITING_SEND, IssueOrderStep.WAITING_ACTIVE); IssueOrderStep.AUDIT_FAIL, IssueOrderStep.WAITING_SEND, IssueOrderStep.WAITING_ACTIVE);
protected final String ORDERPAY = "orderPay"; protected final String ORDERPAY = "orderPay";
@Autowired
private QtkCardInfoRepo qtkCardInfoRepo;
@Autowired
private QtkObuInfoRepo qtkObuInfoRepo;




public OrderCancelManager() { public OrderCancelManager() {
if (!isEmpty(pays)) { if (!isEmpty(pays)) {
orderPayRepo.saveAll(pays); orderPayRepo.saveAll(pays);
} }
//20250827 超哥要求,取消时若有卡号或签号需要删除
if (hasText(order.getCardId())) {
qtkCardInfoRepo.deleteByCardId(order.getCardId());
}
if (hasText(order.getObuId())) {
qtkObuInfoRepo.deleteByObuId(order.getObuId());
}
transactionManager.persistTransaction(ISSUE_ORDER_SYNC, order.getOrderNo(), "订单取消"); transactionManager.persistTransaction(ISSUE_ORDER_SYNC, order.getOrderNo(), "订单取消");
} }



Loading…
Cancel
Save