fix:修复因地理信息确实导致无法审批的问题

This commit is contained in:
lulz1 2024-07-04 16:23:18 +08:00
parent cd0fcd4f1a
commit e1c3e640fe
1 changed files with 1 additions and 3 deletions

View File

@ -62,9 +62,7 @@ public class RouteApprovalDomainService {
public void approveRouteOfLegChangeAndAdd(LegApprovalParam param) {
RouteOrder routeOrder = routeRepository.queryById(param.getRouteId());
List<Leg> legItems = routeOrder.getLegItems();
if (legItems != null && !legItems.isEmpty() && legItems.get(0).getOriginLocation() == null) {
legDomainService.queryLocation(legItems);
}
legDomainService.queryLocation(legItems);
String approvalPlatformMark = getApprovalPlatformMark(routeOrder);
ApprovalSubmit.of(LEG_ADD_CHANGE_BATCH, approvalPlatformMark)
.approveData(routeOrder)