diff --git a/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysDept.java b/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysDept.java index 54b1f74d..f0666cd0 100644 --- a/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysDept.java +++ b/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysDept.java @@ -22,6 +22,9 @@ public class SysDept extends BaseEntity /** 部门ID */ private Long deptId; + /** 公司编号 */ + private Long comId; + /** 父部门ID */ private Long parentId; @@ -77,6 +80,14 @@ public class SysDept extends BaseEntity this.deptId = deptId; } + public Long getComId() { + return comId; + } + + public void setComId(Long comId) { + this.comId = comId; + } + public Long getParentId() { return parentId; @@ -229,6 +240,7 @@ public class SysDept extends BaseEntity public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("deptId", getDeptId()) + .append("comId", getComId()) .append("parentId", getParentId()) .append("ancestors", getAncestors()) .append("deptName", getDeptName()) diff --git a/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysUser.java b/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysUser.java index be77b67a..b1719c19 100644 --- a/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysUser.java +++ b/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysUser.java @@ -25,6 +25,10 @@ public class SysUser extends BaseEntity @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") private Long userId; + /** 公司编号 */ + @Excel(name = "公司编号", type = Type.IMPORT) + private Long comId; + /** 部门ID */ @Excel(name = "部门编号", type = Type.IMPORT) private Long deptId; @@ -49,6 +53,18 @@ public class SysUser extends BaseEntity @Excel(name = "证件号码") private String cardCode; + /** 用户肖像 */ + @Excel(name = "用户肖像") + private String userPicture; + + /** 证件正面 */ + @Excel(name = "证件正面") + private String cardImgPos; + + /** 证件反面 */ + @Excel(name = "证件反面") + private String cardImgInv; + /** 用户详情 */ @Excel(name = "用户详情") private String userInfos; @@ -135,6 +151,14 @@ public class SysUser extends BaseEntity return userId != null && 1L == userId; } + public Long getComId() { + return comId; + } + + public void setComId(Long comId) { + this.comId = comId; + } + public Long getDeptId() { return deptId; @@ -194,6 +218,30 @@ public class SysUser extends BaseEntity this.cardCode = cardCode; } + public String getUserPicture() { + return userPicture; + } + + public void setUserPicture(String userPicture) { + this.userPicture = userPicture; + } + + public String getCardImgPos() { + return cardImgPos; + } + + public void setCardImgPos(String cardImgPos) { + this.cardImgPos = cardImgPos; + } + + public String getCardImgInv() { + return cardImgInv; + } + + public void setCardImgInv(String cardImgInv) { + this.cardImgInv = cardImgInv; + } + public String getUserInfos() { return userInfos; } @@ -348,6 +396,7 @@ public class SysUser extends BaseEntity @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("comId", getComId()) .append("userId", getUserId()) .append("deptId", getDeptId()) .append("userName", getUserName()) @@ -355,6 +404,9 @@ public class SysUser extends BaseEntity .append("userType", getUserType()) .append("cardType", getCardType()) .append("cardCode", getCardCode()) + .append("userPicture", getUserPicture()) + .append("cardImgPos", getCardImgPos()) + .append("cardImgInv", getCardImgInv()) .append("userInfos", getUserInfos()) .append("email", getEmail()) .append("phonenumber", getPhonenumber()) diff --git a/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/web/domain/BaseEntity.java b/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/web/domain/BaseEntity.java index cd717c82..857c2fa8 100644 --- a/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/web/domain/BaseEntity.java +++ b/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/web/domain/BaseEntity.java @@ -39,7 +39,13 @@ public class BaseEntity implements Serializable private String remark; /** 选中页签 */ - private String activeName; + private String activeTags; + + /** 选中页签 */ + private String activeComId; + + /** 选中页签 */ + private String activeProjectId; /** 所属单位 */ private Long activeDeptId; @@ -122,12 +128,28 @@ public class BaseEntity implements Serializable this.params = params; } - public String getActiveName() { - return activeName; + public String getActiveTags() { + return activeTags; } - public void setActiveName(String activeName) { - this.activeName = activeName; + public void setActiveTags(String activeTags) { + this.activeTags = activeTags; + } + + public String getActiveComId() { + return activeComId; + } + + public void setActiveComId(String activeComId) { + this.activeComId = activeComId; + } + + public String getActiveProjectId() { + return activeProjectId; + } + + public void setActiveProjectId(String activeProjectId) { + this.activeProjectId = activeProjectId; } public Long getActiveDeptId() { diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdepts.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdepts.java index 48da6134..2804fc6c 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdepts.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdepts.java @@ -18,13 +18,13 @@ public class ProProjectInfoSubdepts extends BaseEntity /** 主键 */ private Long id; - /** 单位主键 */ - @Excel(name = "单位主键") - private Long deptId; + /** 公司主键 */ + @Excel(name = "公司主键") + private Long comId; - /** 单位名称 */ - @Excel(name = "单位名称") - private String deptName; + /** 公司名称 */ + @Excel(name = "公司名称") + private String comName; /** 项目主键 */ @Excel(name = "项目主键") @@ -91,16 +91,16 @@ public class ProProjectInfoSubdepts extends BaseEntity { return id; } - public void setDeptId(Long deptId) - { - this.deptId = deptId; + + public Long getComId() { + return comId; } - public Long getDeptId() - { - return deptId; + public void setComId(Long comId) { + this.comId = comId; } - public void setProjectId(Long projectId) + + public void setProjectId(Long projectId) { this.projectId = projectId; } @@ -218,12 +218,12 @@ public class ProProjectInfoSubdepts extends BaseEntity return isDel; } - public String getDeptName() { - return deptName; + public String getComName() { + return comName; } - public void setDeptName(String deptName) { - this.deptName = deptName; + public void setComName(String comName) { + this.comName = comName; } public String getProjectName() { @@ -238,7 +238,7 @@ public class ProProjectInfoSubdepts extends BaseEntity public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) - .append("deptId", getDeptId()) + .append("comId", getComId()) .append("projectId", getProjectId()) .append("subDeptId", getSubDeptId()) .append("subDeptType", getSubDeptType()) diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsGroup.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsGroup.java index 1ad26027..af1a99ec 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsGroup.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsGroup.java @@ -18,6 +18,10 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity /** 主键 */ private Long id; + /** 公司主键 */ + @Excel(name = "公司主键") + private Long comId; + /** 项目主键 */ @Excel(name = "项目主键") private Long projectId; @@ -30,8 +34,8 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity @Excel(name = "分包单位") private Long subDeptId; - /** 分包单位类型 */ - @Excel(name = "分包单位类型") + /** 单位类型 */ + @Excel(name = "单位类型") private String subDeptType; /** 分包单位名称 */ @@ -95,7 +99,16 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity { return id; } - public void setProjectId(Long projectId) + + public Long getComId() { + return comId; + } + + public void setComId(Long comId) { + this.comId = comId; + } + + public void setProjectId(Long projectId) { this.projectId = projectId; } @@ -252,6 +265,7 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) + .append("comId", getComId()) .append("projectId", getProjectId()) .append("subDeptId", getSubDeptId()) .append("subDeptType", getSubDeptType()) diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsUsers.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsUsers.java index ab46d9bc..05ce0e52 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsUsers.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProProjectInfoSubdeptsUsers.java @@ -21,6 +21,10 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity /** 主键 */ private Long id; + /** 公司主键 */ + @Excel(name = "公司主键") + private Long comId; + /** 项目主键 */ @Excel(name = "项目主键") private Long projectId; @@ -33,6 +37,10 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity @Excel(name = "分包单位") private Long subDeptId; + /** 单位类型 */ + @Excel(name = "单位类型") + private String subDeptType; + /** 分包单位名称 */ @Excel(name = "分包单位名称") private String subDeptName; @@ -41,6 +49,10 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity @Excel(name = "用户主键") private Long userId; + /** 工人类型 */ + @Excel(name = "工人类型") + private String userType; + /** 工人姓名 */ @Excel(name = "工人姓名") private String userName; @@ -265,6 +277,30 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity this.projectName = projectName; } + public Long getComId() { + return comId; + } + + public void setComId(Long comId) { + this.comId = comId; + } + + public String getSubDeptType() { + return subDeptType; + } + + public void setSubDeptType(String subDeptType) { + this.subDeptType = subDeptType; + } + + public String getUserType() { + return userType; + } + + public void setUserType(String userType) { + this.userType = userType; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) 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 3506bea9..e1073c36 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 @@ -45,8 +45,8 @@ and fa.businessKey in (select DISTINCT projectId from sur_project_unit_info where unitId=#{nowDept} and del_flag=0) and fa.startUserId = #{nowUser} - and fa.finishTime is null - and fa.finishTime is not null + and fa.finishTime is null + and fa.finishTime is not null order by fa.createTime desc diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsGroupMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsGroupMapper.xml index 34b8edf1..e8798343 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsGroupMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsGroupMapper.xml @@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -31,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select psg.id, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, psg.craft_post, psg.group_leader_name, psg.group_leader_code, psg.group_leader_phone, psg.use_status, psg.approve_status, psg.qr_code, psg.is_del, psg.create_by, psg.create_time, psg.update_by, psg.update_time, psg.remark from pro_project_info_subdepts_group psg + select psg.id, psg.com_id, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, psg.craft_post, psg.group_leader_name, psg.group_leader_code, psg.group_leader_phone, psg.use_status, psg.approve_status, psg.qr_code, psg.is_del, psg.create_by, psg.create_time, psg.update_by, psg.update_time, psg.remark from pro_project_info_subdepts_group psg left join pro_project_info pi on pi.id = psg.project_id left join sys_dept sd on sd.dept_id = pi.dept_id @@ -39,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - and ps.dept_id = #{deptId} - and sd.dept_id = #{activeDeptId} + and ps.com_id = #{comId} and ps.project_id = #{projectId} and pi.project_name like concat('%', #{projectName}, '%') and ps.sub_dept_id = #{subDeptId} @@ -65,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" insert into pro_project_info_subdepts - dept_id, + com_id, project_id, sub_dept_id, sub_dept_type, @@ -86,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" remark, - #{deptId}, + #{comId}, #{projectId}, #{subDeptId}, #{subDeptType}, @@ -111,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update pro_project_info_subdepts - dept_id = #{deptId}, + com_id = #{comId}, project_id = #{projectId}, sub_dept_id = #{subDeptId}, sub_dept_type = #{subDeptType}, diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml index 02a5d0bc..a5f15562 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml @@ -6,11 +6,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + @@ -32,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select psu.id, psu.project_id, pi.project_name, psu.sub_dept_id, psu.sub_dept_name, psu.user_id, psu.user_name, psu.craft_type, psu.craft_post, psu.edu_status, psu.edu_file_path, psu.edu_sign_path, psu.edu_date, psu.approve_status, psu.use_status, psu.sub_step, psu.illness_status, psu.sup_illness_status, psu.is_del, psu.create_by, psu.create_time, psu.update_by, psu.update_time, psu.remark from pro_project_info_subdepts_users psu + select psu.id, psu.com_id, psu.project_id, pi.project_name, psu.sub_dept_id, psu.sub_dept_type, psu.sub_dept_name, psu.user_id, psu.user_type, psu.user_name, psu.craft_type, psu.craft_post, psu.edu_status, psu.edu_file_path, psu.edu_sign_path, psu.edu_date, psu.approve_status, psu.use_status, psu.sub_step, psu.illness_status, psu.sup_illness_status, psu.is_del, psu.create_by, psu.create_time, psu.update_by, psu.update_time, psu.remark from pro_project_info_subdepts_users psu left join pro_project_info pi on pi.id = psu.project_id left join sys_dept sd on sd.dept_id = pi.dept_id @@ -40,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select u.user_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.card_type, u.card_code, u.user_infos, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u + select u.user_id, u.com_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.card_type, u.card_code, u.user_picture, u.card_img_pos, u.card_img_inv, u.user_infos, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u left join sys_dept d on u.dept_id = d.dept_id where u.del_flag = '0' @@ -102,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select * from pro_project_info_users where user_id=#{userId} and is_del=0 and use_status=1 order by create_time desc + select * from pro_project_info_users where user_id=#{userId} and is_del=0 and use_status=1 order by sort_by asc \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/components/Process/designer.vue b/yanzhu-ui-vue3/src/components/Process/designer.vue index b63777b8..ac2dbef2 100644 --- a/yanzhu-ui-vue3/src/components/Process/designer.vue +++ b/yanzhu-ui-vue3/src/components/Process/designer.vue @@ -6,7 +6,7 @@ - + @@ -80,7 +80,7 @@ const modelerStore = useModelerStore() const { proxy } = getCurrentInstance(); -const activeName = ref('common'); +const activeTags = ref('common'); const executionListenerCount = ref(0); const taskListenerCount = ref(0); const elementId = ref(""); @@ -123,7 +123,7 @@ const { formData, rules } = toRefs(data); // 监听数据 watch(elementId, newVal => { - activeName.value = "common"; + activeTags.value = "common"; } ) diff --git a/yanzhu-ui-vue3/src/views/flowable/task/finished/detail/index.vue b/yanzhu-ui-vue3/src/views/flowable/task/finished/detail/index.vue index 85b422d5..d298b9cc 100644 --- a/yanzhu-ui-vue3/src/views/flowable/task/finished/detail/index.vue +++ b/yanzhu-ui-vue3/src/views/flowable/task/finished/detail/index.vue @@ -7,7 +7,7 @@ 关闭 - + @@ -107,7 +107,7 @@ const { proxy } = getCurrentInstance(); // 模型xml数据 const flowData = ref({}); // 切换tab标签 -const activeName = ref('1'); +const activeTags = ref('1'); // 遮罩层 const loading = ref(true); // 流程流转数据 diff --git a/yanzhu-ui-vue3/src/views/flowable/task/myProcess/detail/index.vue b/yanzhu-ui-vue3/src/views/flowable/task/myProcess/detail/index.vue index 15d02ae9..25194d67 100644 --- a/yanzhu-ui-vue3/src/views/flowable/task/myProcess/detail/index.vue +++ b/yanzhu-ui-vue3/src/views/flowable/task/myProcess/detail/index.vue @@ -7,7 +7,7 @@ 关闭 - + @@ -110,7 +110,7 @@ const { proxy } = getCurrentInstance(); // 模型xml数据 const flowData = ref({}); // 切换tab标签 -const activeName = ref('1'); +const activeTags = ref('1'); // 遮罩层 const loading = ref(true); // 流程流转数据 diff --git a/yanzhu-ui-vue3/src/views/flowable/task/myProcess/send/index.vue b/yanzhu-ui-vue3/src/views/flowable/task/myProcess/send/index.vue index 028e9c1e..5b5b08a4 100644 --- a/yanzhu-ui-vue3/src/views/flowable/task/myProcess/send/index.vue +++ b/yanzhu-ui-vue3/src/views/flowable/task/myProcess/send/index.vue @@ -7,7 +7,7 @@ 关闭 - + @@ -53,7 +53,7 @@ const { proxy } = getCurrentInstance(); // 模型xml数据 const flowData = ref({}); // 切换tab标签 -const activeName = ref('1'); +const activeTags = ref('1'); // 遮罩层 const loading = ref(true); // 流程定义编号 diff --git a/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue b/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue index 33f58a23..d02213de 100644 --- a/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue +++ b/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue @@ -9,7 +9,7 @@ 关闭 - + @@ -199,7 +199,7 @@ const { proxy } = getCurrentInstance(); // 模型xml数据 const flowData = ref({}); // 切换tab标签 -const activeName = ref('1'); +const activeTags = ref('1'); // 遮罩层 const loading = ref(true); // 流程流转数据 diff --git a/yanzhu-ui-vue3/src/views/manage/busTrainingVideo/index.vue b/yanzhu-ui-vue3/src/views/manage/busTrainingVideo/index.vue index 54e5dda8..b232ffe7 100644 --- a/yanzhu-ui-vue3/src/views/manage/busTrainingVideo/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/busTrainingVideo/index.vue @@ -171,7 +171,7 @@ - + diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue index 83be78ac..ff1aa20d 100644 --- a/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue @@ -151,7 +151,7 @@ @@ -440,7 +440,7 @@ const single = ref(true); const multiple = ref(true); const total = ref(0); const title = ref(""); -const activeName = ref('base') +const activeTags = ref('base') const addressInfos = ref(""); const projectDeptsList = ref([]); const checkedProjectDepts = ref([]); diff --git a/yanzhu-ui-vue3/src/views/tool/gen/editTable.vue b/yanzhu-ui-vue3/src/views/tool/gen/editTable.vue index ddcbfd5b..dc7619ec 100644 --- a/yanzhu-ui-vue3/src/views/tool/gen/editTable.vue +++ b/yanzhu-ui-vue3/src/views/tool/gen/editTable.vue @@ -1,6 +1,6 @@