|
|
|
@ -357,7 +357,7 @@ public class DutyServiceImpl implements DutyService {
|
|
|
|
|
Optional<WeekDutyRecord> optional = dutyRecordRepository.findById(recordId, PK.of(String.format(PK.WEEK_DUTY_RECORD, schoolId)));
|
|
|
|
|
WeekDutyRecord weekDutyRecord = optional.orElseThrow(() -> new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "评价记录不存在"));
|
|
|
|
|
WeekDutyRecord.WeekDutyItem item = weekDutyRecord.getNodes().stream()
|
|
|
|
|
.filter(x -> nodeId.equals(x.getDutyTreeNode().getId()))
|
|
|
|
|
.filter(x -> nodeId.equals(x.getId()))
|
|
|
|
|
.findFirst().
|
|
|
|
|
orElseThrow(() -> new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "评价记录不存在"));
|
|
|
|
|
if (!userId.equals(item.getCreatorId())) {
|
|
|
|
|