dev_xd
姜玉琦 2025-03-14 00:14:41 +08:00
parent c0dbc27d5f
commit b26778ca05
27 changed files with 226 additions and 80 deletions

View File

@ -28,9 +28,9 @@ public class WxMenuConfigRole extends BaseEntity
/** 角色名称 */ /** 角色名称 */
private String roleName; private String roleName;
/** 用户主键 */ /** 用户类型 */
@Excel(name = "用户主键") @Excel(name = "用户类型")
private Long userId; private String userType;
public void setSmcid(Long smcid) public void setSmcid(Long smcid)
{ {
@ -50,14 +50,13 @@ public class WxMenuConfigRole extends BaseEntity
{ {
return roleId; return roleId;
} }
public void setUserId(Long userId)
{ public String getUserType() {
this.userId = userId; return userType;
} }
public Long getUserId() public void setUserType(String userType) {
{ this.userType = userType;
return userId;
} }
public String getRoleName() { public String getRoleName() {
@ -73,7 +72,7 @@ public class WxMenuConfigRole extends BaseEntity
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("smcid", getSmcid()) .append("smcid", getSmcid())
.append("roleId", getRoleId()) .append("roleId", getRoleId())
.append("userId", getUserId()) .append("userType", getUserType())
.toString(); .toString();
} }
} }

View File

@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="WxMenuConfigRole" id="WxMenuConfigRoleResult"> <resultMap type="WxMenuConfigRole" id="WxMenuConfigRoleResult">
<result property="smcid" column="sub_smcid" /> <result property="smcid" column="sub_smcid" />
<result property="roleId" column="sub_role_id" /> <result property="roleId" column="sub_role_id" />
<result property="userId" column="sub_user_id" /> <result property="userType" column="sub_user_type" />
</resultMap> </resultMap>
<sql id="selectWxMenuConfigVo"> <sql id="selectWxMenuConfigVo">
@ -37,17 +37,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectWxMenuConfigVo"/> <include refid="selectWxMenuConfigVo"/>
<where> <where>
<if test="projectId != null "> and mc.project_id = #{projectId}</if> <if test="projectId != null "> and mc.project_id = #{projectId}</if>
<if test="activeComId != null "> and pi.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and mc.project_id = #{activeProjectId}</if> <if test="activeProjectId != null "> and mc.project_id = #{activeProjectId}</if>
<if test="menuName != null and menuName != ''"> and mc.menu_name like concat('%', #{menuName}, '%')</if> <if test="menuName != null and menuName != ''"> and mc.menu_name like concat('%', #{menuName}, '%')</if>
<if test="menuType != null and menuType != ''"> and mc.menu_type = #{menuType}</if> <if test="menuType != null and menuType != ''"> and mc.menu_type = #{menuType}</if>
<if test='activeTags == "sys"'> and mc.project_id is null</if>
</where> </where>
order by mc.menu_sort order by mc.menu_sort
</select> </select>
<select id="selectWxMenuConfigById" parameterType="Long" resultMap="WxMenuConfigWxMenuConfigRoleResult"> <select id="selectWxMenuConfigById" parameterType="Long" resultMap="WxMenuConfigWxMenuConfigRoleResult">
select a.id, a.project_id, a.menu_name, a.menu_identi, a.menu_img, a.menu_url, a.del_flag, a.menu_sort, a.create_time, a.menu_type, select a.id, a.project_id, pi.project_name, a.menu_name, a.menu_identi, a.menu_img, a.menu_url, a.del_flag, a.menu_sort, a.create_time, a.menu_type,
b.smcid as sub_smcid, b.role_id as sub_role_id, b.user_id as sub_user_id b.smcid as sub_smcid, b.role_id as sub_role_id, b.user_type as sub_user_type
from wx_menu_config a from wx_menu_config a
left join pro_project_info pi on pi.id = a.project_id
left join wx_menu_config_role b on b.smcid = a.id left join wx_menu_config_role b on b.smcid = a.id
where a.id = #{id} where a.id = #{id}
</select> </select>
@ -117,9 +120,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<insert id="batchWxMenuConfigRole"> <insert id="batchWxMenuConfigRole">
insert into wx_menu_config_role( smcid, role_id, user_id) values insert into wx_menu_config_role( smcid, role_id, user_type) values
<foreach item="item" index="index" collection="list" separator=","> <foreach item="item" index="index" collection="list" separator=",">
( #{item.smcid}, #{item.roleId}, #{item.userId}) ( #{item.smcid}, #{item.roleId}, #{item.userType})
</foreach> </foreach>
</insert> </insert>
@ -137,7 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join wx_menu_config_role smcr on smcr.smcid = smc.id left join wx_menu_config_role smcr on smcr.smcid = smc.id
left join sys_user_role ur on ur.role_id = smcr.role_id left join sys_user_role ur on ur.role_id = smcr.role_id
where smc.del_flag = 0 where smc.del_flag = 0
and (ur.user_id = #{currentUserId} or smcr.user_id = #{currentUserId}) and ur.user_id = #{currentUserId}
<if test="activeProjectId != null"> and smc.project_id = #{activeProjectId}</if> <if test="activeProjectId != null"> and smc.project_id = #{activeProjectId}</if>
<if test="menuType != null and menuType != ''"> and smc.menu_type = #{menuType}</if> <if test="menuType != null and menuType != ''"> and smc.menu_type = #{menuType}</if>
order by smc.menu_sort asc order by smc.menu_sort asc

View File

@ -8,11 +8,11 @@
<result property="smcid" column="smcid" /> <result property="smcid" column="smcid" />
<result property="roleId" column="role_id" /> <result property="roleId" column="role_id" />
<result property="roleName" column="role_name" /> <result property="roleName" column="role_name" />
<result property="userId" column="user_id" /> <result property="userType" column="user_type" />
</resultMap> </resultMap>
<sql id="selectWxMenuConfigRoleVo"> <sql id="selectWxMenuConfigRoleVo">
select smcid, role_id, user_id from wx_menu_config_role select smcid, role_id, user_type from wx_menu_config_role
</sql> </sql>
<select id="selectWxMenuConfigRoleList" parameterType="WxMenuConfigRole" resultMap="WxMenuConfigRoleResult"> <select id="selectWxMenuConfigRoleList" parameterType="WxMenuConfigRole" resultMap="WxMenuConfigRoleResult">
@ -20,12 +20,12 @@
<where> <where>
<if test="smcid != null "> and smcid = #{smcid}</if> <if test="smcid != null "> and smcid = #{smcid}</if>
<if test="roleId != null "> and role_id = #{roleId}</if> <if test="roleId != null "> and role_id = #{roleId}</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userType != null "> and user_type = #{userType}</if>
</where> </where>
</select> </select>
<select id="findgRoleListBySmcIds" parameterType="WxMenuConfigRole" resultMap="WxMenuConfigRoleResult"> <select id="findgRoleListBySmcIds" parameterType="WxMenuConfigRole" resultMap="WxMenuConfigRoleResult">
select mcr.smcid, mcr.role_id, sr.role_name, mcr.user_id from wx_menu_config_role mcr select mcr.smcid, mcr.role_id, sr.role_name, mcr.user_type from wx_menu_config_role mcr
left join sys_role sr on sr.role_id = mcr.role_id left join sys_role sr on sr.role_id = mcr.role_id
where mcr.smcid in where mcr.smcid in
<foreach collection="smcIds" item="smcId" open="(" separator="," close=")"> <foreach collection="smcIds" item="smcId" open="(" separator="," close=")">
@ -43,12 +43,12 @@
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="smcid != null">smcid,</if> <if test="smcid != null">smcid,</if>
<if test="roleId != null">role_id,</if> <if test="roleId != null">role_id,</if>
<if test="userId != null">user_id,</if> <if test="userType != null">user_type,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="smcid != null">#{smcid},</if> <if test="smcid != null">#{smcid},</if>
<if test="roleId != null">#{roleId},</if> <if test="roleId != null">#{roleId},</if>
<if test="userId != null">#{userId},</if> <if test="userType != null">#{userType},</if>
</trim> </trim>
</insert> </insert>
@ -56,7 +56,7 @@
update wx_menu_config_role update wx_menu_config_role
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="roleId != null">role_id = #{roleId},</if> <if test="roleId != null">role_id = #{roleId},</if>
<if test="userId != null">user_id = #{userId},</if> <if test="userType != null">user_type = #{userType},</if>
</trim> </trim>
where smcid = #{smcid} where smcid = #{smcid}
</update> </update>

View File

@ -1,5 +1,6 @@
package com.yanzhu.flowable.listener; package com.yanzhu.flowable.listener;
import com.alibaba.fastjson2.JSON;
import com.yanzhu.common.core.constant.SecurityConstants; import com.yanzhu.common.core.constant.SecurityConstants;
import com.yanzhu.common.core.text.Convert; import com.yanzhu.common.core.text.Convert;
import com.yanzhu.common.redis.service.RedisService; import com.yanzhu.common.redis.service.RedisService;
@ -40,6 +41,7 @@ public class GlobalEventListener extends AbstractFlowableEngineEventListener {
@Override @Override
protected void processCompleted(FlowableEngineEntityEvent event) { protected void processCompleted(FlowableEngineEntityEvent event) {
System.out.println(JSON.toJSONString(event.getType()));
log.info("任务流程审批完成...{}",event.getProcessInstanceId()); log.info("任务流程审批完成...{}",event.getProcessInstanceId());
super.processCompleted(event); super.processCompleted(event);
Boolean isCompleted = Convert.toBool(redisService.getCacheObject(FlowCacheConstants.STOP_PROCESS+event.getProcessInstanceId()),true); Boolean isCompleted = Convert.toBool(redisService.getCacheObject(FlowCacheConstants.STOP_PROCESS+event.getProcessInstanceId()),true);

View File

@ -4,6 +4,7 @@ import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.yanzhu.common.core.constant.CacheConstants; import com.yanzhu.common.core.constant.CacheConstants;
import com.yanzhu.common.core.domain.R; import com.yanzhu.common.core.domain.R;
import com.yanzhu.common.core.enums.ApproveStatus;
import com.yanzhu.common.core.enums.UseStateEnums; import com.yanzhu.common.core.enums.UseStateEnums;
import com.yanzhu.common.core.text.Convert; import com.yanzhu.common.core.text.Convert;
import com.yanzhu.common.core.utils.DateUtils; import com.yanzhu.common.core.utils.DateUtils;
@ -245,6 +246,16 @@ public class ProProjectInfoSubdeptsUsersController extends BaseController
return R.ok(proProjectInfoSubdeptsUsersService.findUserGroSign(busKey)); return R.ok(proProjectInfoSubdeptsUsersService.findUserGroSign(busKey));
} }
/**
*
* @param proUserId
* @return
*/
@PostMapping("/editApproveStatus/{proUserId}")
public void updateApproveStatus(@PathVariable("proUserId") Long proUserId){
proProjectInfoSubdeptsUsersService.updateApproveStatus(proUserId);
}
/** /**
* *
* @param ids * @param ids

View File

@ -182,11 +182,36 @@ public interface IProProjectInfoSubdeptsUsersService
*/ */
int editDefaultProjectById(Long id); int editDefaultProjectById(Long id);
/**
*
* @param id
* @return
*/
Boolean findUserComSign(Long id); Boolean findUserComSign(Long id);
/**
*
* @param id
* @return
*/
Boolean findUserProSign(Long id); Boolean findUserProSign(Long id);
/**
*
* @param id
* @return
*/
Boolean findUserGroSign(Long id); Boolean findUserGroSign(Long id);
/**
*
* @param proUserId
*/
void updateApproveStatus(Long proUserId);
/**
*
* @param id
*/
void fileSign(Long id); void fileSign(Long id);
} }

View File

@ -46,8 +46,8 @@ public class BasSignetServiceImpl implements IBasSignetService
public List<BasSignet> selectBasSignetList(BasSignet basSignet) public List<BasSignet> selectBasSignetList(BasSignet basSignet)
{ {
if(Objects.isNull(basSignet.getProjectId())){ if(Objects.isNull(basSignet.getProjectId())){
basSignet.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); basSignet.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
basSignet.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); basSignet.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
} }
return basSignetMapper.selectBasSignetList(basSignet); return basSignetMapper.selectBasSignetList(basSignet);
} }

View File

@ -43,8 +43,8 @@ public class BasTemplateServiceImpl implements IBasTemplateService
@Override @Override
public List<BasTemplate> selectBasTemplateList(BasTemplate basTemplate) public List<BasTemplate> selectBasTemplateList(BasTemplate basTemplate)
{ {
basTemplate.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); basTemplate.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
basTemplate.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); basTemplate.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return basTemplateMapper.selectBasTemplateList(basTemplate); return basTemplateMapper.selectBasTemplateList(basTemplate);
} }

View File

@ -48,8 +48,8 @@ public class BusExamInfoServiceImpl implements IBusExamInfoService
@Override @Override
public List<BusExamInfo> selectBusExamInfoList(BusExamInfo busExamInfo) public List<BusExamInfo> selectBusExamInfoList(BusExamInfo busExamInfo)
{ {
busExamInfo.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); busExamInfo.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
busExamInfo.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); busExamInfo.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return busExamInfoMapper.selectBusExamInfoList(busExamInfo); return busExamInfoMapper.selectBusExamInfoList(busExamInfo);
} }

View File

@ -53,8 +53,8 @@ public class BusExamQuestionServiceImpl implements IBusExamQuestionService
@Override @Override
public List<BusExamQuestion> selectBusExamQuestionList(BusExamQuestion busExamQuestion) public List<BusExamQuestion> selectBusExamQuestionList(BusExamQuestion busExamQuestion)
{ {
busExamQuestion.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); busExamQuestion.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
busExamQuestion.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); busExamQuestion.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return busExamQuestionMapper.selectBusExamQuestionList(busExamQuestion); return busExamQuestionMapper.selectBusExamQuestionList(busExamQuestion);
} }

View File

@ -79,8 +79,8 @@ public class BusExamUserServiceImpl implements IBusExamUserService
@Override @Override
public List<BusExamUser> selectBusExamUserList(BusExamUser busExamUser) public List<BusExamUser> selectBusExamUserList(BusExamUser busExamUser)
{ {
busExamUser.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); busExamUser.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
busExamUser.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); busExamUser.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return busExamUserMapper.selectBusExamUserList(busExamUser); return busExamUserMapper.selectBusExamUserList(busExamUser);
} }

View File

@ -64,8 +64,8 @@ public class BusTrainingVideoServiceImpl implements IBusTrainingVideoService
@Override @Override
public List<BusTrainingVideo> selectBusTrainingVideoList(BusTrainingVideo busTrainingVideo) public List<BusTrainingVideo> selectBusTrainingVideoList(BusTrainingVideo busTrainingVideo)
{ {
busTrainingVideo.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); busTrainingVideo.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
busTrainingVideo.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); busTrainingVideo.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return busTrainingVideoMapper.selectBusTrainingVideoList(busTrainingVideo); return busTrainingVideoMapper.selectBusTrainingVideoList(busTrainingVideo);
} }
@ -77,8 +77,8 @@ public class BusTrainingVideoServiceImpl implements IBusTrainingVideoService
*/ */
@Override @Override
public List<Map<String, Object>> findBusTrainingVideoByLevel(BusTrainingVideo busTrainingVideo){ public List<Map<String, Object>> findBusTrainingVideoByLevel(BusTrainingVideo busTrainingVideo){
busTrainingVideo.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); busTrainingVideo.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
busTrainingVideo.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); busTrainingVideo.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return busTrainingVideoMapper.findBusTrainingVideoByLevel(busTrainingVideo); return busTrainingVideoMapper.findBusTrainingVideoByLevel(busTrainingVideo);
} }

View File

@ -68,8 +68,8 @@ public class BusTrainingVideoUserServiceImpl implements IBusTrainingVideoUserSer
@Override @Override
public List<BusTrainingVideoUser> selectBusTrainingVideoUserList(BusTrainingVideoUser busTrainingVideoUser) public List<BusTrainingVideoUser> selectBusTrainingVideoUserList(BusTrainingVideoUser busTrainingVideoUser)
{ {
busTrainingVideoUser.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); busTrainingVideoUser.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
busTrainingVideoUser.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); busTrainingVideoUser.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return busTrainingVideoUserMapper.selectBusTrainingVideoUserList(busTrainingVideoUser); return busTrainingVideoUserMapper.selectBusTrainingVideoUserList(busTrainingVideoUser);
} }

View File

@ -77,8 +77,8 @@ public class DevAiProjectConfigServiceImpl implements IDevAiProjectConfigService
@Override @Override
public List<DevAiProjectConfig> selectDevAiProjectConfigList(DevAiProjectConfig devAiProjectConfig) public List<DevAiProjectConfig> selectDevAiProjectConfigList(DevAiProjectConfig devAiProjectConfig)
{ {
devAiProjectConfig.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); devAiProjectConfig.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devAiProjectConfig.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); devAiProjectConfig.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return devAiProjectConfigMapper.selectDevAiProjectConfigList(devAiProjectConfig); return devAiProjectConfigMapper.selectDevAiProjectConfigList(devAiProjectConfig);
} }

View File

@ -65,8 +65,8 @@ public class DevAiProjectDataServiceImpl implements IDevAiProjectDataService
@Override @Override
public List<DevAiProjectData> selectDevAiProjectDataList(DevAiProjectData devAiProjectData) public List<DevAiProjectData> selectDevAiProjectDataList(DevAiProjectData devAiProjectData)
{ {
devAiProjectData.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); devAiProjectData.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devAiProjectData.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); devAiProjectData.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return devAiProjectDataMapper.selectDevAiProjectDataList(devAiProjectData); return devAiProjectDataMapper.selectDevAiProjectDataList(devAiProjectData);
} }

View File

@ -34,6 +34,7 @@ import javax.annotation.PostConstruct;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* Service * Service
@ -179,31 +180,38 @@ public class ProProjectInfoServiceImpl implements IProProjectInfoService
WxMenuConfig wxMenuConfigQuery = new WxMenuConfig(); WxMenuConfig wxMenuConfigQuery = new WxMenuConfig();
wxMenuConfigQuery.setActiveTags("sys"); wxMenuConfigQuery.setActiveTags("sys");
List<WxMenuConfig> wxMenuConfigList = wxMenuConfigMapper.selectWxMenuConfigList(wxMenuConfigQuery); List<WxMenuConfig> wxMenuConfigList = wxMenuConfigMapper.selectWxMenuConfigList(wxMenuConfigQuery);
List<WxMenuConfig> myMenuConfigList = new ArrayList<>(); List<WxMenuConfigRole> myMenuConfigRoleList = new ArrayList<>();
if(StringUtils.isNotEmpty(wxMenuConfigList)){ if(StringUtils.isNotEmpty(wxMenuConfigList)){
List<Long> smcIds = wxMenuConfigList.stream().map(WxMenuConfig::getId).collect(Collectors.toList());
myMenuConfigRoleList = wxMenuConfigRoleMapper.findgRoleListBySmcIds(smcIds);
for(WxMenuConfig wxMenuConfig:wxMenuConfigList){ for(WxMenuConfig wxMenuConfig:wxMenuConfigList){
Long _oldId = wxMenuConfig.getId();
wxMenuConfig.setProjectId(proProjectInfo.getId()); wxMenuConfig.setProjectId(proProjectInfo.getId());
wxMenuConfigMapper.insertWxMenuConfig(wxMenuConfig); wxMenuConfigMapper.insertWxMenuConfig(wxMenuConfig);
myMenuConfigList.add(wxMenuConfig); for(WxMenuConfigRole role:myMenuConfigRoleList){
if(_oldId==role.getSmcid()){
role.setSmcid(wxMenuConfig.getId());
}
}
} }
} }
//初始化项目角色信息... //初始化项目角色信息...
this.insertProRole(UserTypeEnums.FBWTDL.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.FBWTDL.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.FBWTDL.getKeys(),UserTypeEnums.FBWTDL.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.FBXMJL.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.FBXMJL.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.FBXMJL.getKeys(),UserTypeEnums.FBXMJL.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.FBBZZZ.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.FBBZZZ.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.FBBZZZ.getKeys(),UserTypeEnums.FBBZZZ.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.FBLWRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.FBLWRY.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.FBLWRY.getKeys(),UserTypeEnums.FBLWRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.FBCLRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.FBCLRY.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.FBCLRY.getKeys(),UserTypeEnums.FBCLRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.FBAQRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.FBAQRY.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.FBAQRY.getKeys(),UserTypeEnums.FBAQRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.JSDWRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.JSDWRY.getInfo(),proProjectInfo.getId(),myMenuConfigList); this.insertProRole(UserTypeEnums.JSDWRY.getKeys(),UserTypeEnums.JSDWRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.JLDWRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.JLDWRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.JLDWRY.getKeys(),UserTypeEnums.JLDWRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.SGDWRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.SGDWRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.SGDWRY.getKeys(),UserTypeEnums.SGDWRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.CLFBRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.CLFBRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.CLFBRY.getKeys(),UserTypeEnums.CLFBRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.HQFBRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.HQFBRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.HQFBRY.getKeys(),UserTypeEnums.HQFBRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.TSSBRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.TSSBRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.TSSBRY.getKeys(),UserTypeEnums.TSSBRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.KTDWRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.KTDWRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.KTDWRY.getKeys(),UserTypeEnums.KTDWRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.SJDWRY.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.SJDWRY.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.SJDWRY.getKeys(),UserTypeEnums.SJDWRY.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
this.insertProRole(UserTypeEnums.OTHERS.getKeys()+"_"+proProjectInfo.getId(),UserTypeEnums.OTHERS.getInfo(),proProjectInfo.getId(),null); this.insertProRole(UserTypeEnums.OTHERS.getKeys(),UserTypeEnums.OTHERS.getInfo(),proProjectInfo.getId(),myMenuConfigRoleList);
loadingProjectsCache(); loadingProjectsCache();
return res; return res;
@ -218,10 +226,10 @@ public class ProProjectInfoServiceImpl implements IProProjectInfoService
* @param roleKey * @param roleKey
* @param deptId * @param deptId
*/ */
private void insertProRole(String roleKey,String roleName,Long deptId,List<WxMenuConfig> wxMenuConfigList){ private void insertProRole(String roleKey,String roleName,Long deptId,List<WxMenuConfigRole> wxMenuConfigRoleList){
SysRole sysRole = new SysRole(); SysRole sysRole = new SysRole();
sysRole.setRoleName(roleName); sysRole.setRoleName(roleName);
sysRole.setRoleKey(roleKey); sysRole.setRoleKey(roleKey+"_"+deptId);
sysRole.setRoleSort(100); sysRole.setRoleSort(100);
sysRole.setStatus(ShiFouEnums.FOU.getCodeStr()); sysRole.setStatus(ShiFouEnums.FOU.getCodeStr());
sysRole.setCreateBy("SYSTEM"); sysRole.setCreateBy("SYSTEM");
@ -231,12 +239,12 @@ public class ProProjectInfoServiceImpl implements IProProjectInfoService
sysRoleDept.setRoleId(sysRole.getRoleId()); sysRoleDept.setRoleId(sysRole.getRoleId());
sysRoleDept.setDeptId(deptId); sysRoleDept.setDeptId(deptId);
proProjectInfoMapper.insertProRoleDept(sysRoleDept); proProjectInfoMapper.insertProRoleDept(sysRoleDept);
if(StringUtils.isNotEmpty(wxMenuConfigList)){ if(StringUtils.isNotEmpty(wxMenuConfigRoleList)){
for(WxMenuConfig wxMenuConfig:wxMenuConfigList){ for(WxMenuConfigRole role:wxMenuConfigRoleList){
WxMenuConfigRole wxMenuConfigRole = new WxMenuConfigRole(); if(role.getUserType()!=null && role.getUserType().startsWith(roleKey)){
wxMenuConfigRole.setSmcid(wxMenuConfig.getId()); role.setRoleId(sysRole.getRoleId());
wxMenuConfigRole.setRoleId(sysRole.getRoleId()); wxMenuConfigRoleMapper.insertWxMenuConfigRole(role);
wxMenuConfigRoleMapper.insertWxMenuConfigRole(wxMenuConfigRole); }
} }
} }
} }

View File

@ -82,8 +82,8 @@ public class ProProjectInfoSubdeptsGroupServiceImpl implements IProProjectInfoSu
@Override @Override
public List<ProProjectInfoSubdeptsGroup> selectProProjectInfoSubdeptsGroupList(ProProjectInfoSubdeptsGroup proProjectInfoSubdeptsGroup) public List<ProProjectInfoSubdeptsGroup> selectProProjectInfoSubdeptsGroupList(ProProjectInfoSubdeptsGroup proProjectInfoSubdeptsGroup)
{ {
proProjectInfoSubdeptsGroup.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); proProjectInfoSubdeptsGroup.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
proProjectInfoSubdeptsGroup.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); proProjectInfoSubdeptsGroup.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return proProjectInfoSubdeptsGroupMapper.selectProProjectInfoSubdeptsGroupList(proProjectInfoSubdeptsGroup); return proProjectInfoSubdeptsGroupMapper.selectProProjectInfoSubdeptsGroupList(proProjectInfoSubdeptsGroup);
} }

View File

@ -94,8 +94,8 @@ public class ProProjectInfoSubdeptsServiceImpl implements IProProjectInfoSubdept
@Override @Override
public List<ProProjectInfoSubdepts> selectProProjectInfoSubdeptsList(ProProjectInfoSubdepts proProjectInfoSubdepts) public List<ProProjectInfoSubdepts> selectProProjectInfoSubdeptsList(ProProjectInfoSubdepts proProjectInfoSubdepts)
{ {
proProjectInfoSubdepts.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); proProjectInfoSubdepts.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
proProjectInfoSubdepts.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); proProjectInfoSubdepts.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
return proProjectInfoSubdeptsMapper.selectProProjectInfoSubdeptsList(proProjectInfoSubdepts); return proProjectInfoSubdeptsMapper.selectProProjectInfoSubdeptsList(proProjectInfoSubdepts);
} }

View File

@ -1317,6 +1317,21 @@ public class ProProjectInfoSubdeptsUsersServiceImpl implements IProProjectInfoSu
return false; return false;
} }
/**
*
* @param proUserId
*/
@Override
public void updateApproveStatus(Long proUserId){
try {
ProProjectInfoSubdeptsUsers proProjectInfoSubdeptsUsers = proProjectInfoSubdeptsUsersMapper.selectProProjectInfoSubdeptsUsersById(proUserId);
proProjectInfoSubdeptsUsers.setApproveStatus(ApproveStatus.refuse.getCode());
proProjectInfoSubdeptsUsersMapper.updateProProjectInfoSubdeptsUsers(proProjectInfoSubdeptsUsers);
}catch (Exception e){
e.printStackTrace();
}
}
/** /**
* ... * ...
* @param proSubdeptsUser * @param proSubdeptsUser

View File

@ -54,7 +54,8 @@ public class WxMenuConfigServiceImpl implements IWxMenuConfigService
@Override @Override
public List<WxMenuConfig> selectWxMenuConfigList(WxMenuConfig wxMenuConfig) public List<WxMenuConfig> selectWxMenuConfigList(WxMenuConfig wxMenuConfig)
{ {
wxMenuConfig.setActiveProjectId(SecurityUtils.getLoginUser().getProjectId()); wxMenuConfig.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
wxMenuConfig.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
List<WxMenuConfig> list = wxMenuConfigMapper.selectWxMenuConfigList(wxMenuConfig); List<WxMenuConfig> list = wxMenuConfigMapper.selectWxMenuConfigList(wxMenuConfig);
if(StringUtils.isNotEmpty(list)){ if(StringUtils.isNotEmpty(list)){
List<Long> smcIds = list.stream().map(WxMenuConfig::getId).collect(Collectors.toList()); List<Long> smcIds = list.stream().map(WxMenuConfig::getId).collect(Collectors.toList());

View File

@ -106,4 +106,13 @@ export function findProjectDeptUsers(proId) {
url: '/manage/proProjectInfoSubdeptsUsers/findAllSendUsers/' + proId, url: '/manage/proProjectInfoSubdeptsUsers/findAllSendUsers/' + proId,
method: 'get' method: 'get'
}) })
} }
// 修改人员审核状态
export function editApproveStatus(proUserId) {
return request({
url: '/manage/proProjectInfoSubdeptsUsers/editApproveStatus/' + proUserId,
method: 'post',
data: {}
})
}

View File

@ -8,6 +8,7 @@ import {
findCommentByProcInsId findCommentByProcInsId
} from '../../../api/flowable' } from '../../../api/flowable'
import { import {
editApproveStatus,
findProSubDeptsInfoById, findProSubDeptsInfoById,
findProSubDeptsUserInfoById findProSubDeptsUserInfoById
} from '../../../api/project' } from '../../../api/project'
@ -199,6 +200,7 @@ Page({
comment comment
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
editApproveStatus(this.data.options.businessKey);
app.toast("驳回申请成功!") app.toast("驳回申请成功!")
setTimeout(() => { setTimeout(() => {
this.returnToPage(); this.returnToPage();

View File

@ -135,7 +135,7 @@ Page({
}], }],
illnessStatus: '', illnessStatus: '',
supIllnessStatus: '', supIllnessStatus: '',
loadShow:false loadShow: false
}, },
/** /**
@ -506,7 +506,7 @@ Page({
let videoSize = this.data.eduVideoItem.length; let videoSize = this.data.eduVideoItem.length;
let currentVideo = this.data.videoIdx + 1; let currentVideo = this.data.videoIdx + 1;
if (currentVideo >= videoSize) { if (currentVideo >= videoSize) {
finishEduVideo(this.data.eduVideoItem[this.data.videoIdx].remark).then(res =>{ finishEduVideo(this.data.eduVideoItem[this.data.videoIdx].remark).then(res => {
//视频学习完成... //视频学习完成...
app.toast("学习完成,您可以开始考试了。", "none", 3000); app.toast("学习完成,您可以开始考试了。", "none", 3000);
}); });
@ -2053,6 +2053,62 @@ Page({
}) })
}, },
/**
* 重新登记
*/
wxSignBack() {
let title = "";
let _userPostList = [];
let sigId = this.data.form.userPost;
if (sigId == '1') {
title = "参建单位信息登记";
_userPostList.push({
"id": "1",
"text": "委托代理人"
});
} else if (sigId == '2' || sigId == '3') {
if (sigId == '2') {
_userPostList.push({
"id": "2",
"text": "项目经理"
});
} else {
_userPostList.push({
"id": "3",
"text": "班组长"
});
_userPostList.push({
"id": "5",
"text": "特殊工种"
});
_userPostList.push({
"id": "6",
"text": "材料员"
});
_userPostList.push({
"id": "8",
"text": "安全员"
});
}
title = "参建单位管理人员信息登记";
} else if (sigId == '4') {
title = "参建单位劳务人员信息登记";
_userPostList.push({
"id": "4",
"text": "劳务人员"
});
this.setData({
"form.craftType": '1'
});
}
this.setData({
title,
active: 0,
"parForm.subDeptName": this.data.form.subDeptName,
userPostList: _userPostList,
});
},
/** /**
* 查询 * 查询
* 用户详细信息 * 用户详细信息

View File

@ -934,7 +934,7 @@
<view class="kaoshimianban_9"> <view class="kaoshimianban_9">
<jyq-result wx:if="{{form.approveStatus!='100' && form.approveStatus!='11'}}" iconPath="https://xiangguan.sxyanzhu.com/profile/icon/dd.png" title="信息审核中" description="您的信息已登记完成,相关人员正在审核您的信息,请耐心等待。" actionText="下 载 承 诺 书" bind:action="downloadSignetFiles" /> <jyq-result wx:if="{{form.approveStatus!='100' && form.approveStatus!='11'}}" iconPath="https://xiangguan.sxyanzhu.com/profile/icon/dd.png" title="信息审核中" description="您的信息已登记完成,相关人员正在审核您的信息,请耐心等待。" actionText="下 载 承 诺 书" bind:action="downloadSignetFiles" />
<jyq-result wx:if="{{form.approveStatus=='100'}}" iconPath="https://xiangguan.sxyanzhu.com/profile/icon/cg.png" title="恭喜,审核通过" description="您的信息已登记完成。" actionText="下 载 承 诺 书" bind:action="downloadSignetFiles" descActionText="立 即 登 录" bind:descAction="wxSignLogin" /> <jyq-result wx:if="{{form.approveStatus=='100'}}" iconPath="https://xiangguan.sxyanzhu.com/profile/icon/cg.png" title="恭喜,审核通过" description="您的信息已登记完成。" actionText="下 载 承 诺 书" bind:action="downloadSignetFiles" descActionText="立 即 登 录" bind:descAction="wxSignLogin" />
<jyq-result wx:if="{{busExamInfos.passMark>busExamInfos.userMark}}" iconPath="https://xiangguan.sxyanzhu.com/profile/icon/sb.png" title="很遗憾!审核未通过" description="您的信息已登记完成,但未审核通过。" /> <jyq-result wx:if="{{form.approveStatus=='11'}}" iconPath="https://xiangguan.sxyanzhu.com/profile/icon/sb.png" title="很遗憾!审核未通过" description="您的信息已登记完成,但未审核通过。" actionText="下 载 承 诺 书" bind:action="downloadSignetFiles" descActionText="重 新 登 记" bind:descAction="wxSignBack" />
</view> </view>
</view> </view>
</view> </view>

View File

@ -53,6 +53,15 @@ export function editPhone(data) {
}) })
} }
// 修改人员审核状态
export function editApproveStatus(proUserId) {
return request({
url: '/manage/proProjectInfoSubdeptsUsers/editApproveStatus/'+proUserId,
method: 'post'
})
}
// 删除分包单位工人 // 删除分包单位工人
export function delProProjectInfoSubdeptsUsers(id) { export function delProProjectInfoSubdeptsUsers(id) {
return request({ return request({

View File

@ -360,6 +360,7 @@
>驳回申请</el-button >驳回申请</el-button
> >
<el-button <el-button
v-if="false"
icon="WarningFilled" icon="WarningFilled"
type="warning" type="warning"
size="small" size="small"
@ -380,7 +381,7 @@
<strong style="color: #f56c6c">驳回申请</strong> <strong style="color: #f56c6c">驳回申请</strong>
操作后代表您对当前任务不满意任务退回给申请人处理 操作后代表您对当前任务不满意任务退回给申请人处理
</p> </p>
<p> <p v-if="false">
<strong style="color: #e6a23c">驳回上级</strong> <strong style="color: #e6a23c">驳回上级</strong>
操作后代表您对当前任务不满意任务退回到上一阶段继续处理 操作后代表您对当前任务不满意任务退回到上一阶段继续处理
</p> </p>
@ -404,7 +405,7 @@
findCommentByProcInsId, findCommentByProcInsId,
} from "@/api/flowable/businessKey"; } from "@/api/flowable/businessKey";
import { getProProjectInfoSubdepts } from "@/api/manage/proProjectInfoSubdepts"; import { getProProjectInfoSubdepts } from "@/api/manage/proProjectInfoSubdepts";
import { getProProjectInfoSubdeptsUsers } from "@/api/manage/proProjectInfoSubdeptsUsers"; import { getProProjectInfoSubdeptsUsers, editApproveStatus } from "@/api/manage/proProjectInfoSubdeptsUsers";
import { getBusExamUserLast } from "@/api/manage/busExamUser"; import { getBusExamUserLast } from "@/api/manage/busExamUser";
import { getBusTrainingVideoUserLast } from "@/api/manage/busTrainingVideoUser"; import { getBusTrainingVideoUserLast } from "@/api/manage/busTrainingVideoUser";
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
@ -529,6 +530,7 @@
proxy.$modal.confirm('是否确认审批驳回流程编号为"' + dataOptions.value.taskId + '"的数据项至申请人?').then(function() { proxy.$modal.confirm('是否确认审批驳回流程编号为"' + dataOptions.value.taskId + '"的数据项至申请人?').then(function() {
return returnTask(form.value); return returnTask(form.value);
}).then(() => { }).then(() => {
editApproveStatus(dataOptions.value.businessKey);
doCanel(); doCanel();
emit('handle'); emit('handle');
proxy.$modal.msgSuccess("审批成功"); proxy.$modal.msgSuccess("审批成功");

View File

@ -147,7 +147,7 @@
v-model:limit="queryParams.pageSize" @pagination="getList" /> v-model:limit="queryParams.pageSize" @pagination="getList" />
<!-- 添加或修改项目信息对话框 --> <!-- 添加或修改项目信息对话框 -->
<el-dialog :title="title" v-model="open" width="1080px" append-to-body :close-on-click-modal="false" <el-dialog :title="title" v-model="open" v-loading="formLoading" width="1080px" append-to-body :close-on-click-modal="false"
:close-on-press-escape="false" class="project-info-edit-dlg"> :close-on-press-escape="false" class="project-info-edit-dlg">
<el-form ref="proProjectInfoRef" :model="form" :rules="rules" label-width="120px"> <el-form ref="proProjectInfoRef" :model="form" :rules="rules" label-width="120px">
<el-tabs v-model="activeTags" type="card" class="demo-tabs"> <el-tabs v-model="activeTags" type="card" class="demo-tabs">
@ -400,6 +400,7 @@ const mapRef = ref("");
const proProjectInfoList = ref([]); const proProjectInfoList = ref([]);
const open = ref(false); const open = ref(false);
const loading = ref(true); const loading = ref(true);
const formLoading = ref(false);
const showSearch = ref(true); const showSearch = ref(true);
const ids = ref([]); const ids = ref([]);
const single = ref(true); const single = ref(true);
@ -699,6 +700,7 @@ function getProjectDeptsList() {
function submitForm() { function submitForm() {
proxy.$refs["proProjectInfoRef"].validate(valid => { proxy.$refs["proProjectInfoRef"].validate(valid => {
if (valid) { if (valid) {
formLoading.value = true;
form.value.projectDeptsList = getProjectDeptsList(); form.value.projectDeptsList = getProjectDeptsList();
let postData = { let postData = {
...form.value ...form.value
@ -707,12 +709,14 @@ function submitForm() {
updateProProjectInfo(postData).then(response => { updateProProjectInfo(postData).then(response => {
proxy.$modal.msgSuccess("修改成功"); proxy.$modal.msgSuccess("修改成功");
open.value = false; open.value = false;
formLoading.value = false;
getList(); getList();
}); });
} else { } else {
addProProjectInfo(postData).then(response => { addProProjectInfo(postData).then(response => {
proxy.$modal.msgSuccess("新增成功"); proxy.$modal.msgSuccess("新增成功");
open.value = false; open.value = false;
formLoading.value = false;
getList(); getList();
}); });
} }