18 changed files with 332 additions and 23 deletions
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotEmpty; |
||||
|
|
||||
|
@Data |
||||
|
public class UpGovRoleFormDTO { |
||||
|
|
||||
|
/** |
||||
|
* 角色表id |
||||
|
*/ |
||||
|
@NotEmpty(message = "角色Id不能为空", groups = {Update.class}) |
||||
|
private String roleId; |
||||
|
/** |
||||
|
* 角色名称 |
||||
|
*/ |
||||
|
private String roleName; |
||||
|
/** |
||||
|
* 职责描述 |
||||
|
*/ |
||||
|
private String description; |
||||
|
/** |
||||
|
* token中userId |
||||
|
*/ |
||||
|
private String userId; |
||||
|
|
||||
|
public interface Update extends CustomerClientShowGroup {} |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
ALTER TABLE `gov_staff_role_template` |
||||
|
ADD COLUMN `DESCRIPTION` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色对应的职责说明' AFTER `FULL_TIME_ONLY`, |
||||
|
ADD COLUMN `SORT` int(11) NULL DEFAULT NULL COMMENT '排序' AFTER `DESCRIPTION`; |
||||
|
|
||||
|
|
||||
|
ALTER TABLE `gov_staff_role` |
||||
|
MODIFY COLUMN `FULL_TIME_ONLY` tinyint(1) NULL DEFAULT 1 COMMENT '是否只有全职 1对应true 0对应false' AFTER `ORG_TYPE`, |
||||
|
MODIFY COLUMN `SORT` int(11) NULL DEFAULT NULL COMMENT '排序' AFTER `FULL_TIME_ONLY`, |
||||
|
ADD COLUMN `DESCRIPTION` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色对应的职责说明' AFTER `FULL_TIME_ONLY`; |
Loading…
Reference in new issue