This commit is contained in:
wangliwen 2022-08-18 18:14:08 +08:00
parent 92542c2ad8
commit 368d78f48f
2 changed files with 82 additions and 74 deletions

View File

@ -233,8 +233,11 @@ public class AbilityCenterControllerV3 {
auditingBaseDTO.setCompleteEntry(Boolean.TRUE); // 首次录入
auditingBaseDTO.setFlowType("能力申请");
// TODO
if (user.getDeptId() != null) {
SysDeptDTO applyUserDeptDTO = sysDeptService.get(user.getDeptId()); // 发起人的部门
applyUserDeptDTO.getType(); // 发起人
sysDeptDTO.getType(); // 资源所属部门
}
Map<String, Object> variables = oMapper.convertValue(auditingBaseDTO, Map.class);

View File

@ -25,16 +25,16 @@ public class SysDeptDTO extends TreeNode implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id")
@Null(message="{id.null}", groups = AddGroup.class)
@NotNull(message="{id.require}", groups = UpdateGroup.class)
@Null(message = "{id.null}", groups = AddGroup.class)
@NotNull(message = "{id.require}", groups = UpdateGroup.class)
private Long id;
@ApiModelProperty(value = "上级ID")
@NotNull(message="{sysdept.pid.require}", groups = DefaultGroup.class)
@NotNull(message = "{sysdept.pid.require}", groups = DefaultGroup.class)
private Long pid;
@ApiModelProperty(value = "部门名称")
@NotBlank(message="{sysdept.name.require}", groups = DefaultGroup.class)
@NotBlank(message = "{sysdept.name.require}", groups = DefaultGroup.class)
private String name;
@ApiModelProperty(value = "类型1省级部门2市级部门3区级部门4企业")
@ -82,6 +82,11 @@ public class SysDeptDTO extends TreeNode implements Serializable {
this.name = name;
}
/**
* 类型1省级部门2市级部门3区级部门4企业
*
* @return
*/
public Integer getType() {
return type;
}