...
This commit is contained in:
parent
71611ec1d6
commit
a0508e76ff
|
@ -102,7 +102,7 @@ public class AbilityCenterControllerV3 {
|
||||||
}
|
}
|
||||||
// 前端传了部门id,更新该用户部门id
|
// 前端传了部门id,更新该用户部门id
|
||||||
if (abilityBatchApplicationDTO.getDeptId() != null) {
|
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;");
|
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()) {
|
if (system_.isEmpty()) {
|
||||||
|
@ -145,7 +145,7 @@ public class AbilityCenterControllerV3 {
|
||||||
}
|
}
|
||||||
// 前端传了部门id,更新该用户部门id
|
// 前端传了部门id,更新该用户部门id
|
||||||
if (abilityBatchApplicationDTO.getDeptId() != null) {
|
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();
|
final String applyFlag = UUID.randomUUID().toString();
|
||||||
abilityBatchApplicationDTO.setApplyFlag(applyFlag); // 同一次的申请标识
|
abilityBatchApplicationDTO.setApplyFlag(applyFlag); // 同一次的申请标识
|
||||||
|
|
Loading…
Reference in New Issue