Browse Source

fit: 新增导入警员

main
wxc 1 year ago
parent
commit
1eae6c22e1
  1. 12
      src/main/java/com/biutag/supervision/controller/system/PoliceController.java

12
src/main/java/com/biutag/supervision/controller/system/PoliceController.java

@ -180,11 +180,13 @@ public class PoliceController {
}
policeService.updateById(supPolice);
}
String userId = saveOrUpdateUser(police);
// 角色
addRoleUser(userId, police.getRole());
// 权限
addAuth(police.getIdCode(), supPolice.getOrgId(), problemSources);
if ("三级机构专班".equals(police.getRole()) || "二级机构专班".equals(police.getRole())) {
String userId = saveOrUpdateUser(police);
// 角色
addRoleUser(userId, police.getRole());
// 权限
addAuth(police.getIdCode(), supPolice.getOrgId(), problemSources);
}
}
return Result.success(list);

Loading…
Cancel
Save