Explorar o código

员工权限-范围权限

姜永辉 %!s(int64=2) %!d(string=hai) anos
pai
achega
f737b596a8

+ 1 - 1
src/main/java/com/dk/mdm/mapper/mst/StaffPurviewMapper.xml

@@ -173,7 +173,7 @@
                 #{item.staffId}::uuid,
                 #{item.purviewCode},
                 #{item.flgNolimit},
-                #{item.dataIds},
+                #{item.dataIds, typeHandler=UuidListTypeHandler},
                 #{item.cpId},
             </trim>
             )

+ 1 - 1
src/main/java/com/dk/mdm/model/pojo/mst/Staff.java

@@ -85,7 +85,7 @@ public class Staff extends PageInfo<Staff> implements Serializable {
     @Excel(name = "角色")
     @ApiModelProperty(value = "角色")
     @TableField(typeHandler = UuidListTypeHandler.class)
-    private String roleIds;
+    private List<String> roleIds;
 
 
     /**

+ 1 - 1
src/main/java/com/dk/mdm/model/pojo/mst/StaffPurview.java

@@ -68,7 +68,7 @@ public class StaffPurview extends PageInfo<StaffPurview> implements Serializable
     @Excel(name = "数据ID")
     @ApiModelProperty(value = "数据ID")
     @TableField(typeHandler = UuidListTypeHandler.class)
-    private String dataIds;
+    private List<String> dataIds;
 
 
     /**

+ 1 - 1
src/main/java/com/dk/mdm/model/vo/mst/StaffVO.java

@@ -105,7 +105,7 @@ public class StaffVO extends PageInfo<StaffVO> implements Serializable {
      */
     @ApiModelProperty(value = "员工状态list")
     @TableField(typeHandler = UuidListTypeHandler.class)
-    private String roleIds;
+    private List<String>  roleIds;
 
     /**
      * 工厂ID

+ 0 - 1
src/main/java/com/dk/mdm/service/mst/StaffService.java

@@ -79,7 +79,6 @@ public class StaffService extends BaseService<Staff> {
     public ResponseResultVO<?> insert(StaffVO staffVO) {
         // 转化实体
         Staff staff = staffConvert.convertToPo(staffVO);
-
         return super.insert(staff);
     }