Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-09-16 10:53:34 +08:00
commit 5c90ce83ba
2 changed files with 11 additions and 1 deletions

View File

@ -100,7 +100,10 @@ public class AbilityCenterControllerV3 {
if (page.getTotal() <= 0) { //
return new Result().error("联系管理员添加流程");
}
// 前端传了部门id更新该用户部门id
if (abilityBatchApplicationDTO.getDeptId() != null) {
jdbcTemplate.update(String.format("UPDATE sys_user SET dept_id = %d WHERE id = %d;", 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()) {
return new Result().error("无应用资源");
@ -140,6 +143,10 @@ public class AbilityCenterControllerV3 {
if (page.getTotal() <= 0) { //
return new Result().error("联系管理员添加流程");
}
// 前端传了部门id更新该用户部门id
if (abilityBatchApplicationDTO.getDeptId() != null) {
jdbcTemplate.update(String.format("UPDATE sys_user SET dept_id = %d WHERE id = %d;", abilityBatchApplicationDTO.getDeptId(), abilityBatchApplicationDTO.getUserId()));
}
final String applyFlag = UUID.randomUUID().toString();
abilityBatchApplicationDTO.setApplyFlag(applyFlag); // 同一次的申请标识
logger.info("申请入参{}", JSON.toJSONString(abilityBatchApplicationDTO));

View File

@ -75,4 +75,7 @@ public class TAbilityBatchApplicationDTO extends AuditingBaseDTO implements Seri
@ApiModelProperty(value = "资源所属部门信息")
private SysDeptDTO resourceOwnerDept;
@ApiModelProperty(value = "申请人部门id")
private Long deptId;
}