Commit 2ac4cdf6 authored by 332784038@qq.com's avatar 332784038@qq.com

审批状态跟新调整

parent 58c8500e
...@@ -4033,6 +4033,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl ...@@ -4033,6 +4033,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
} }
if (Objects.nonNull(auditType)) { if (Objects.nonNull(auditType)) {
// TODO 这里可能出现并行的审批任务,当结束一个审批任务变更为0时,需要同步查询当前正在进行的其他审批任务
currentOrderDO.setAuditType(auditType); currentOrderDO.setAuditType(auditType);
if (StringUtils.isNotBlank(auditResult)) { if (StringUtils.isNotBlank(auditResult)) {
......
...@@ -56,6 +56,7 @@ import org.apache.commons.lang3.StringUtils; ...@@ -56,6 +56,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.servlet.ServletOutputStream; import javax.servlet.ServletOutputStream;
...@@ -560,7 +561,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont ...@@ -560,7 +561,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
} }
} }
orderApprovalMapper.updateById(orderApprovalDO); orderApprovalMapper.updateById(orderApprovalDO);
orderService.updateStatus(orderApprovalDO.getOrderId(), "", null, null, null, null, orderApprovalDO.getType(), OrderApprovalTypeResultEnum.typeAndResultOf(orderApprovalDO.getType(), result).getDesc(), false); orderService.updateStatus(orderApprovalDO.getOrderId(), "", null, null, null, null, 0, OrderApprovalTypeResultEnum.typeAndResultOf(orderApprovalDO.getType(), result).getDesc(), false);
orderBusinessService.addOrderOperateLog(orderApprovalDO.getOrderId(), "订单操作", msg, list); orderBusinessService.addOrderOperateLog(orderApprovalDO.getOrderId(), "订单操作", msg, list);
} }
...@@ -594,6 +595,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont ...@@ -594,6 +595,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public void orderCargoControlApply(OrderCargoControlApplyVO orderCargoControlApplyVO) { public void orderCargoControlApply(OrderCargoControlApplyVO orderCargoControlApplyVO) {
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser(); LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
Integer userType = loginUser != null ? loginUser.getUserType() : null; Integer userType = loginUser != null ? loginUser.getUserType() : null;
......
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