This commit is contained in:
hanrenchun 2025-06-09 20:01:20 +08:00
parent 6cdd8462f6
commit cf2cfa2bb6
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,8 @@ public class ApprovalProcessController extends BaseController {
if (togUserIds.contains(",")) { if (togUserIds.contains(",")) {
String[] split = togUserIds.split(","); String[] split = togUserIds.split(",");
for (String s : split) { for (String s : split) {
s = s.trim(); // 移除首尾空格 s = s.trim();
System.out.println("拆分的字:"+s);// 移除首尾空格
if (!s.isEmpty()) { if (!s.isEmpty()) {
SysUser user = sysUserService.selectUserById(Long.parseLong(s)); SysUser user = sysUserService.selectUserById(Long.parseLong(s));
userList.add(user); userList.add(user);