| | |
| | | |
| | | @Override |
| | | public Boolean add(LogReportDto sysLogReport) { |
| | | if (ObjectUtils.isEmpty(sysLogReport.getCcUserIds())) { |
| | | throw new RuntimeException("请选择抄送人"); |
| | | } |
| | | String collect = sysLogReport.getCcUserIds().stream() |
| | | .map(String::valueOf) // Long → String |
| | | .collect(Collectors.joining(","));// 拼接为 "1,2,3" |
| | |
| | | |
| | | @Override |
| | | public Boolean updateSysLogReportDto(LogReportDto sysLogReport) { |
| | | if (ObjectUtils.isEmpty(sysLogReport.getCcUserIds())) { |
| | | throw new RuntimeException("请选择抄送人"); |
| | | } |
| | | String collect = sysLogReport.getCcUserIds().stream() |
| | | .map(String::valueOf) // Long → String |
| | | .collect(Collectors.joining(","));// 拼接为 "1,2,3" |