Commit c73e8a92 authored by shangtx's avatar shangtx

feat: 订单多次支付

parent 202f32a0
......@@ -237,11 +237,13 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
int result = serviceOrderMapper.updateByPrimaryKeySelective(order);
// 通知客服
var logCondition = new ServiceOrderLog();
logCondition.setOrderId(order.getId());
logCondition.setProcessId(ServiceOrderStatusEnum.SEND.getStatus());
var orderLog = serviceOrderLogMapper.selectOne(logCondition);
if (orderLog != null) {
var logCondition = new Condition(ServiceOrderLog.class);
logCondition.createCriteria().andEqualTo("orderId", order.getId())
.andEqualTo("processId", ServiceOrderStatusEnum.SEND.getStatus());
logCondition.setOrderByClause("create_time desc limit 1");
var orderLogs = serviceOrderLogMapper.selectByCondition(logCondition);
if (!orderLogs.isEmpty()) {
var orderLog = orderLogs.get(0);
if (ServiceOrderOpSourceEnum.WEB.getId().equals(orderLog.getSource())) {
var sysUser = sysUserMapper.selectByPrimaryKey(orderLog.getHostId());
if (StringUtils.isNotEmpty(sysUser.getPhone())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment