Commit 59600b76 by 刘鑫

fix(工作队): 工作队添加人员修改 冲突日期校验类型转换错误

1 parent 2c4d0cd3
......@@ -248,7 +248,7 @@ public class BusinessTeamServiceImpl implements BusinessTeamService {
//返回任何一个有工作日冲突的工作队
List<String> fixedWorkDayOfWeek = List.of(team.getWorkdays().split(","));
List<String> workDays = targetTeamWorkDayOfWeek.stream().filter(dayOfWeek -> fixedWorkDayOfWeek.stream().anyMatch(fixDay -> Objects.equals(fixDay, dayOfWeek)))
.map(DateUtils::toWeekChinese)
.map(dayStr -> DateUtils.toWeekChinese(Integer.parseInt(dayStr)))
.collect(Collectors.toList());
if (!CollectionUtils.isEmpty(workDays)) {
warnMessage.add(MessageFormat.format(message, engineerCode, team.getTeamName(), StringUtils.join(workDays, ",")));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!