Commit c73e8a92 authored by shangtx's avatar shangtx

feat: 订单多次支付

parent 202f32a0
...@@ -237,11 +237,13 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> { ...@@ -237,11 +237,13 @@ public class ServiceOrderBizService extends AbstractMapper<ServiceOrder> {
int result = serviceOrderMapper.updateByPrimaryKeySelective(order); int result = serviceOrderMapper.updateByPrimaryKeySelective(order);
// 通知客服 // 通知客服
var logCondition = new ServiceOrderLog(); var logCondition = new Condition(ServiceOrderLog.class);
logCondition.setOrderId(order.getId()); logCondition.createCriteria().andEqualTo("orderId", order.getId())
logCondition.setProcessId(ServiceOrderStatusEnum.SEND.getStatus()); .andEqualTo("processId", ServiceOrderStatusEnum.SEND.getStatus());
var orderLog = serviceOrderLogMapper.selectOne(logCondition); logCondition.setOrderByClause("create_time desc limit 1");
if (orderLog != null) { var orderLogs = serviceOrderLogMapper.selectByCondition(logCondition);
if (!orderLogs.isEmpty()) {
var orderLog = orderLogs.get(0);
if (ServiceOrderOpSourceEnum.WEB.getId().equals(orderLog.getSource())) { if (ServiceOrderOpSourceEnum.WEB.getId().equals(orderLog.getSource())) {
var sysUser = sysUserMapper.selectByPrimaryKey(orderLog.getHostId()); var sysUser = sysUserMapper.selectByPrimaryKey(orderLog.getHostId());
if (StringUtils.isNotEmpty(sysUser.getPhone())) { 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