diff --git a/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/enums/UserTypeEnums.java b/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/enums/UserTypeEnums.java index a5184898..8df1504d 100644 --- a/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/enums/UserTypeEnums.java +++ b/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/enums/UserTypeEnums.java @@ -5,20 +5,22 @@ package com.yanzhu.common.core.enums; */ public enum UserTypeEnums { - ZSRY("00", "正式人员"), - LSRY("08", "临时人员"), - FBWTDL("80", "分包代理人"), - FBXMJL("79", "分包项目经理"), - FBBZZZ("78", "分包班组组长"), - FBLWRY("77", "分包劳务人员"); + ZSRY("00", "正式人员",""), + LSRY("08", "临时人员",""), + FBWTDL("80", "分包代理人","fbwtdl"), + FBXMJL("79", "分包项目经理","fbxmjl"), + FBBZZZ("78", "分包班组组长","fbbzzz"), + FBLWRY("77", "分包劳务人员",""); private final String code; private final String info; + private final String keys; - UserTypeEnums(String code, String info) + UserTypeEnums(String code, String info, String keys) { this.code = code; this.info = info; + this.keys = keys; } public String getCode() @@ -31,4 +33,9 @@ public enum UserTypeEnums { return info; } + public String getKeys() + { + return keys; + } + } diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/domain/my/FlowTaskEntity.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/domain/my/FlowTaskEntity.java index 1447fa18..737186a5 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/domain/my/FlowTaskEntity.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/domain/my/FlowTaskEntity.java @@ -55,6 +55,9 @@ public class FlowTaskEntity extends BaseEntity { @ApiModelProperty("流程发起人名称") private String startUserName; + @ApiModelProperty("流程发起人班组") + private Long startUserGroupId; + @ApiModelProperty("流程发起人单位") private String startDeptName; @@ -406,4 +409,12 @@ public class FlowTaskEntity extends BaseEntity { public void setBusinessMk3(String businessMk3) { this.businessMk3 = businessMk3; } + + public Long getStartUserGroupId() { + return startUserGroupId; + } + + public void setStartUserGroupId(Long startUserGroupId) { + this.startUserGroupId = startUserGroupId; + } } diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/mapper/FlowBusinessKeyMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/mapper/FlowBusinessKeyMapper.java index f8a62a36..f0cf5a97 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/mapper/FlowBusinessKeyMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/flowable/mapper/FlowBusinessKeyMapper.java @@ -1,6 +1,7 @@ package com.yanzhu.flowable.mapper; import com.yanzhu.flowable.domain.my.FlowTaskEntity; +import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; @@ -66,4 +67,11 @@ public interface FlowBusinessKeyMapper { */ public List> selectMyFinishedFlowTask(FlowTaskEntity flowTaskEntity); + /** + * 查询我的已办任务 + * @param proId 项目主键 + * @param userId 用户主键 + * @return + */ + public List> selectMySubdeptsGroups(@Param("proId")Long proId, @Param("userId")Long userId); } diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java index 3178416b..2bc488dc 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java @@ -123,6 +123,15 @@ public interface SysRoleMapper */ public List findDeptRoleListByDeptId(Long deptId); + /** + * 根据部门ID查询角色列表 + * + * @param deptId 部门ID + * @param roleKey 角色标识 + * @return 角色列表 + */ + public List findDeptRoleListByDeptIdAndKey(@Param("deptId") Long deptId, @Param("roleKey") String roleKey); + /** * 根据公司ID查询角色列表 * diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml index d1d560d9..6b1c53af 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml @@ -69,7 +69,9 @@ and fa.startProId = #{startProId} and fa.startProName like concat('%', #{startProName}, '%') and fa.category = '1' - and fa.category in ('2','3','4') + and fa.category in ('2','3','4') + and bus.sub_dept_group = #{startUserGroupId} + AND (fa.ASSIGNEE_ = #{assigneeId} OR ( @@ -145,4 +147,11 @@ order by fa.endTime desc + + + + + \ No newline at end of file diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml index 9d2e159c..46ed69dd 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml @@ -89,6 +89,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by r.role_sort + +