This commit is contained in:
wangliwen 2022-09-16 14:21:00 +08:00
parent 71611ec1d6
commit a0508e76ff
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ public class AbilityCenterControllerV3 {
}
// 前端传了部门id更新该用户部门id
if (abilityBatchApplicationDTO.getDeptId() != null) {
jdbcTemplate.update(String.format("UPDATE sys_user SET dept_id = %d WHERE id = %d;", abilityBatchApplicationDTO.getDeptId(), abilityBatchApplicationDTO.getUserId()));
jdbcTemplate.update(String.format("UPDATE sys_user SET dept_id = %d WHERE id = %s;", abilityBatchApplicationDTO.getDeptId(), abilityBatchApplicationDTO.getUserId()));
}
List<Map<String, Object>> system_ = jdbcTemplate.queryForList("SELECT `name` AS resourceName,id AS resourceId FROM tb_data_resource WHERE type = '应用资源' AND del_flag = 0;");
if (system_.isEmpty()) {
@ -145,7 +145,7 @@ public class AbilityCenterControllerV3 {
}
// 前端传了部门id更新该用户部门id
if (abilityBatchApplicationDTO.getDeptId() != null) {
jdbcTemplate.update(String.format("UPDATE sys_user SET dept_id = %d WHERE id = %d;", abilityBatchApplicationDTO.getDeptId(), abilityBatchApplicationDTO.getUserId()));
jdbcTemplate.update(String.format("UPDATE sys_user SET dept_id = %d WHERE id = %s;", abilityBatchApplicationDTO.getDeptId(), abilityBatchApplicationDTO.getUserId()));
}
final String applyFlag = UUID.randomUUID().toString();
abilityBatchApplicationDTO.setApplyFlag(applyFlag); // 同一次的申请标识