修改公告逻辑

This commit is contained in:
lulz1 2024-04-24 15:05:10 +08:00
parent e537c75406
commit 465df7284e
2 changed files with 3 additions and 3 deletions

View File

@ -80,6 +80,7 @@ public class SystemController {
return Result.Success(SUCCESS, null);
}
}
systemAnnouncement.setSystemAnnouncementEmployeeList(null);
return Result.Success(SUCCESS, systemAnnouncement);
}

View File

@ -35,7 +35,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
@ -207,7 +206,7 @@ public class LegEventHandler implements LegEventService {
String orderNo = data.getSelfOrderNo();
RouteOrder routeOrder = routeRequestDomainService.getRouteOrder(orderNo);
if (routeOrder == null) {
throw new OrderException(NOT_FOUND + ",单号:orderNo");
throw new OrderException(NOT_FOUND + ",单号:" + orderNo);
}
String employeeNo = routeOrder.getUserId();
User byUserEmployeeNo = userRepository.findByUserEmployeeNo(employeeNo);