提交代码

dev_xd
姜玉琦 2025-05-28 17:40:16 +08:00
parent a7f771da34
commit 751aa30884
37 changed files with 174 additions and 46 deletions

View File

@ -74,6 +74,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and dtdc.project_id = #{projectId}</if>
<if test="comId != null "> and dtdc.com_id = #{comId}</if>
<if test="deptId != null "> and dtdc.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtdc.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtdc.project_id = #{activeProjectId}</if>
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
<if test="comName != null and comName != ''"> and dtdc.com_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
<if test="deviceKey != null and deviceKey != ''"> and dtdc.device_key = #{deviceKey}</if>

View File

@ -75,6 +75,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and dtdl.project_id = #{projectId}</if>
<if test="comId != null "> and dtdl.com_id = #{comId}</if>
<if test="deptId != null "> and dtdl.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtdl.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtdl.project_id = #{activeProjectId}</if>
<if test="projectName != null and projectName != ''"> and dtdl.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
<if test="comName != null and comName != ''"> and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
<if test="deviceKey != null and deviceKey != ''"> and dtdl.device_key = #{deviceKey}</if>

View File

@ -89,6 +89,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and dtdl.project_id = #{projectId}</if>
<if test="comId != null "> and dtdl.com_id = #{comId}</if>
<if test="deptId != null "> and dtdl.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtdl.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtdl.project_id = #{activeProjectId}</if>
<if test="projectName != null and projectName != ''"> and dtdl.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
<if test="comName != null and comName != ''"> and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
<if test="deviceKey != null and deviceKey != ''"> and dtdl.device_key = #{deviceKey}</if>

View File

@ -106,6 +106,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and dtdr.project_id = #{projectId}</if>
<if test="comId != null "> and dtdr.com_id = #{comId}</if>
<if test="deptId != null "> and dtdr.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtdr.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtdr.project_id = #{activeProjectId}</if>
<if test="projectName != null and projectName != ''"> and dtdr.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
<if test="comName != null and comName != ''"> and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
<if test="deviceKey != null and deviceKey != ''"> and dtdr.device_key = #{deviceKey}</if>

View File

@ -94,6 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and dtdr.project_id = #{projectId}</if>
<if test="comId != null "> and dtdr.com_id = #{comId}</if>
<if test="deptId != null "> and dtdr.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtdr.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtdr.project_id = #{activeProjectId}</if>
<if test="projectName != null and projectName != ''"> and dtdr.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
<if test="comName != null and comName != ''"> and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
<if test="deviceKey != null and deviceKey != ''"> and dtdr.device_key = #{deviceKey}</if>

View File

@ -79,6 +79,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and dtdw.project_id = #{projectId}</if>
<if test="comId != null "> and dtdw.com_id = #{comId}</if>
<if test="deptId != null "> and dtdw.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtdw.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtdw.project_id = #{activeProjectId}</if>
<if test="projectName != null and projectName != ''"> and dtdw.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
<if test="comName != null and comName != ''"> and dtdw.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
<if test="deviceKey != null and deviceKey != ''"> and dtdw.device_key = #{deviceKey}</if>

View File

@ -75,17 +75,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDevTowerProjectConfigList" parameterType="DevTowerProjectConfig" resultMap="DevTowerProjectConfigResult">
<include refid="selectDevTowerProjectConfigVo"/>
<where>
dtpc.is_del = 0
<if test="projectId != null "> and dtpc.project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and sp.projectName like concat('%', #{projectName}, '%')</if>
<if test="comId != null "> and dtpc.com_id = #{comId}</if>
<if test="deptId != null "> and dtpc.dept_id = #{deptId}</if>
<if test="activeComId != null "> and dtpc.com_id = #{activeComId}</if>
<if test="activeProjectId != null "> and dtpc.project_id = #{activeProjectId}</if>
<if test="comName != null and comName != ''"> and sd.dept_name like concat('%', #{comName}, '%')</if>
<if test="deviceSn != null and deviceSn != ''"> and dtpc.device_sn like concat('%', #{deviceSn}, '%')</if>
<if test="deviceName != null and deviceName != ''"> and dtpc.device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceSource != null and deviceSource != ''"> and dtpc.device_source = #{deviceSource}</if>
<if test="towerId != null and towerId != ''"> and dtpc.tower_id = #{towerId}</if>
<if test="towerType != null and towerType != ''"> and dtpc.tower_type = #{towerType}</if>
and dtpc.is_del = 0
</where>
order by dtpc.id desc
</select>

View File

@ -164,6 +164,7 @@
// for (int i = 0; i < arr.size(); i++) {
// JSONObject json = arr.getJSONObject(i);
// String subDeptType = convertSubDeptType(json.getString("corpType"));
// // 总包单位不同步
// if(!"1".equals(subDeptType)){
// rowId = json.getLong("id");
// QuartzProSubdepts quartzProSubdeptsQuery = new QuartzProSubdepts();
@ -173,6 +174,7 @@
// List<QuartzProSubdepts> list = quartzProSubdeptsService.selectQuartzProSubdeptsList(quartzProSubdeptsQuery);
// if(StringUtils.isNotEmpty(list)){
// QuartzProSubdepts quartzProSubdepts = list.get(0);
// quartzProSubdepts.setSubDeptType(subDeptType);
// quartzProSubdepts.setSubDeptName(json.getString("corpName"));
// quartzProSubdepts.setSubDeptCode(json.getString("corpCode"));
// quartzProSubdepts.setSubDeptLeaderName(json.getString("pmName"));
@ -188,6 +190,7 @@
// subDeptInfos.put("businessAddress",json.getString("businessAddress"));
// subDeptInfos.put("officePhone",json.getString("officePhone"));
// quartzProSubdepts.setSubDeptInfos(JSON.toJSONString(subDeptInfos));
// quartzProSubdepts.setSource(code.toUpperCase());
// quartzProSubdeptsService.updateQuartzProSubdepts(quartzProSubdepts);
// }else{
// QuartzProSubdepts quartzProSubdepts = new QuartzProSubdepts();
@ -211,7 +214,7 @@
// quartzProSubdepts.setSubDeptInfos(JSON.toJSONString(subDeptInfos));
// quartzProSubdepts.setUseStatus(UseStateEnums.IN.getCode());
// quartzProSubdepts.setApproveStatus(ApproveStatus.passed.getCode());
// quartzProSubdepts.setSource(code);
// quartzProSubdepts.setSource(code.toUpperCase());
// quartzProSubdeptsService.insertQuartzProSubdepts(quartzProSubdepts);
// }
// }
@ -284,13 +287,15 @@
// long rowId = 0;
// for (int i = 0; i < arr.size(); i++) {
// JSONObject json = arr.getJSONObject(i);
// String subDeptType = convertSubDeptType(json.getString("corpType"));
// QuartzProSubdeptsGroup quartzProSubdeptsGroupQuery = new QuartzProSubdeptsGroup();
// quartzProSubdeptsGroupQuery.setComId(it.getComId());
// quartzProSubdeptsGroupQuery.setProjectId(it.getProjectId());
// quartzProSubdeptsGroupQuery.setGroupName(json.getString("teamName"));
// List<QuartzProSubdeptsGroup> list = quartzProSubdeptsGroupService.selectQuartzProSubdeptsGroupList(quartzProSubdeptsGroupQuery);
// if(StringUtils.isNotEmpty(list)){
//
// QuartzProSubdeptsGroup quartzProSubdeptsGroup = list.get(0);
// quartzProSubdeptsGroup
// }else{
//
// }
@ -316,6 +321,66 @@
// }
// }
//
// /**
// * 转换工种类型
// * @param jobTypes
// * @return
// */
// private Map<String, String> convertSubJobTypes(String jobTypes){
// Map<String, String> dataMap = new HashMap<>();
// switch (jobTypes){
// case "3001" : dataMap.put("type","2");dataMap.put("post","1015"); break;
// case "3002" : dataMap.put("type","2");dataMap.put("post","1014"); break;
// case "3003" :
// case "3004" : dataMap.put("type","2");dataMap.put("post","2021"); break;
// case "3005" : dataMap.put("type","2");dataMap.put("post","2022"); break;
// case "3006" : dataMap.put("type","2");dataMap.put("post","1013"); break;
// case "3007" : dataMap.put("type","1");dataMap.put("post","1006"); break;
// case "3008" : dataMap.put("type","1");dataMap.put("post","1004"); break;
// case "3009" : dataMap.put("type","1");dataMap.put("post","1001"); break;
// case "3010" : dataMap.put("type","1");dataMap.put("post","1003"); break;
// case "3011" : dataMap.put("type","1");dataMap.put("post","1017"); break;
// case "3012" : dataMap.put("type","1");dataMap.put("post","1007"); break;
// case "3013" : dataMap.put("type","1");dataMap.put("post","1008"); break;
// case "3014" : dataMap.put("type","1");dataMap.put("post","1009"); break;
// case "3015" : dataMap.put("type","1");dataMap.put("post","1012"); break;
// case "3016" : dataMap.put("type","3");dataMap.put("post","3024"); break;
// case "3017" : dataMap.put("type","1");dataMap.put("post","1010"); break;
// case "3018" : dataMap.put("type","3");dataMap.put("post","3025"); break;
// case "3071" :
// case "3019" : dataMap.put("type","2");dataMap.put("post","2017"); break;
// case "3020" : dataMap.put("type","2");dataMap.put("post","2018"); break;
// case "3021" : dataMap.put("type","2");dataMap.put("post","2016"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3032" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// case "3031" : dataMap.put("type","2");dataMap.put("post","2019"); break;
// default : subDeptType = "99"; break;
// }
// return subDeptType;
// }
//
// private String getWorkTypeName(String appid, String token, String type, String key) {
// String ckey = "attendance_jgw_work_type_" + type;
// Object obj = redisService.getCacheObject(ckey);

View File

@ -37,13 +37,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectQuartzProSubdeptsGroupVo">
select psg.id, psg.com_id, sd.dept_name as com_name, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, dic0.dict_label as sub_dept_type_name, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, dic1.dict_label as craft_type_name, psg.craft_post, dic2.dict_label as craft_post_name, 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, psg.source
select psg.id, psg.com_id, sd.dept_name as com_name, 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, psg.source
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 = psg.com_id
left join sys_dict_data dic0 on psg.`sub_dept_type`=dic0.`dict_value` and dic0.`dict_type`='sub_dept_type'
left join sys_dict_data dic1 on psg.`craft_type`=dic1.`dict_value` and dic1.`dict_type`='pro_craft_type'
left join sys_dict_data dic2 on psg.`craft_post`=dic2.`dict_value` and dic2.`dict_type`='pro_craft_post'
</sql>
<select id="selectQuartzProSubdeptsGroupList" parameterType="QuartzProSubdeptsGroup" resultMap="QuartzProSubdeptsGroupResult">

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -67,7 +67,7 @@ public class DevAiProjectDataServiceImpl implements IDevAiProjectDataService
public List<DevAiProjectData> selectDevAiProjectDataList(DevAiProjectData devAiProjectData)
{
if(devAiProjectData.getProjectId()==null){
devAiProjectData.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//devAiProjectData.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devAiProjectData.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devAiProjectDataMapper.selectDevAiProjectDataList(devAiProjectData);

View File

@ -43,8 +43,10 @@ public class DevIotConfigPointServiceImpl implements IDevIotConfigPointService
@Override
public List<DevIotConfigPoint> selectDevIotConfigPointList(DevIotConfigPoint devIotConfigPoint)
{
devIotConfigPoint.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devIotConfigPoint.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
if(devIotConfigPoint.getProjectId()==null){
//devIotConfigPoint.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devIotConfigPoint.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devIotConfigPointMapper.selectDevIotConfigPointList(devIotConfigPoint);
}

View File

@ -46,7 +46,7 @@ public class DevIotConfigServiceImpl implements IDevIotConfigService
public List<DevIotConfig> selectDevIotConfigList(DevIotConfig devIotConfig)
{
if(devIotConfig.getProjectId()==null){
devIotConfig.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//devIotConfig.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devIotConfig.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devIotConfigMapper.selectDevIotConfigList(devIotConfig);

View File

@ -43,7 +43,7 @@ public class DevIotDatasServiceImpl implements IDevIotDatasService
public List<DevIotDatas> selectDevIotDatasList(DevIotDatas devIotDatas)
{
if(devIotDatas.getProjectId()==null){
devIotDatas.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//devIotDatas.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devIotDatas.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devIotDatasMapper.selectDevIotDatasList(devIotDatas);

View File

@ -51,7 +51,7 @@ public class DevIotWarningServiceImpl implements IDevIotWarningService
public List<DevIotWarning> selectDevIotWarningList(DevIotWarning devIotWarning)
{
if(devIotWarning.getProjectId()==null){
devIotWarning.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//devIotWarning.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devIotWarning.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devIotWarningMapper.selectDevIotWarningList(devIotWarning);

View File

@ -2,6 +2,7 @@ package com.yanzhu.manage.service.impl;
import com.yanzhu.common.core.utils.DateUtils;
import com.yanzhu.common.core.utils.StringUtils;
import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.device.domain.DevTowerDataCollide;
import com.yanzhu.device.domain.DevTowerDataCollideDetail;
import com.yanzhu.device.mapper.DevTowerDataCollideMapper;
@ -45,6 +46,10 @@ public class DevTowerDataCollideServiceImpl implements IDevTowerDataCollideServi
@Override
public List<DevTowerDataCollide> selectDevTowerDataCollideList(DevTowerDataCollide devTowerDataCollide)
{
if(devTowerDataCollide.getProjectId()==null){
//devTowerDataCollide.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerDataCollide.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerDataCollideMapper.selectDevTowerDataCollideList(devTowerDataCollide);
}

View File

@ -1,6 +1,7 @@
package com.yanzhu.manage.service.impl;
import com.yanzhu.common.core.utils.DateUtils;
import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.device.domain.DevTowerDataLimit;
import com.yanzhu.device.mapper.DevTowerDataLimitMapper;
import com.yanzhu.manage.service.IDevTowerDataLimitService;
@ -41,6 +42,10 @@ public class DevTowerDataLimitServiceImpl implements IDevTowerDataLimitService
@Override
public List<DevTowerDataLimit> selectDevTowerDataLimitList(DevTowerDataLimit devTowerDataLimit)
{
if(devTowerDataLimit.getProjectId()==null){
//devTowerDataLimit.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerDataLimit.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerDataLimitMapper.selectDevTowerDataLimitList(devTowerDataLimit);
}

View File

@ -1,6 +1,7 @@
package com.yanzhu.manage.service.impl;
import com.yanzhu.common.core.utils.DateUtils;
import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.device.domain.DevTowerDataLocal;
import com.yanzhu.device.mapper.DevTowerDataLocalMapper;
import com.yanzhu.manage.service.IDevTowerDataLocalService;
@ -41,6 +42,10 @@ public class DevTowerDataLocalServiceImpl implements IDevTowerDataLocalService
@Override
public List<DevTowerDataLocal> selectDevTowerDataLocalList(DevTowerDataLocal devTowerDataLocal)
{
if(devTowerDataLocal.getProjectId()==null){
//devTowerDataLocal.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerDataLocal.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerDataLocalMapper.selectDevTowerDataLocalList(devTowerDataLocal);
}

View File

@ -1,6 +1,7 @@
package com.yanzhu.manage.service.impl;
import com.yanzhu.common.core.utils.DateUtils;
import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.device.domain.DevTowerDataRound;
import com.yanzhu.device.mapper.DevTowerDataRoundMapper;
import com.yanzhu.manage.service.IDevTowerDataRoundService;
@ -41,6 +42,10 @@ public class DevTowerDataRoundServiceImpl implements IDevTowerDataRoundService
@Override
public List<DevTowerDataRound> selectDevTowerDataRoundList(DevTowerDataRound devTowerDataRound)
{
if(devTowerDataRound.getProjectId()==null){
//devTowerDataRound.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerDataRound.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerDataRoundMapper.selectDevTowerDataRoundList(devTowerDataRound);
}

View File

@ -1,6 +1,7 @@
package com.yanzhu.manage.service.impl;
import com.yanzhu.common.core.utils.DateUtils;
import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.device.domain.DevTowerDataRound;
import com.yanzhu.device.domain.DevTowerDataRun;
import com.yanzhu.device.mapper.DevTowerDataCollideMapper;
@ -55,6 +56,10 @@ public class DevTowerDataRunServiceImpl implements IDevTowerDataRunService
@Override
public List<DevTowerDataRun> selectDevTowerDataRunList(DevTowerDataRun devTowerDataRun)
{
if(devTowerDataRun.getProjectId()==null){
//devTowerDataRun.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerDataRun.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerDataRunMapper.selectDevTowerDataRunList(devTowerDataRun);
}

View File

@ -1,6 +1,7 @@
package com.yanzhu.manage.service.impl;
import com.yanzhu.common.core.utils.DateUtils;
import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.device.domain.DevTowerDataWarning;
import com.yanzhu.device.mapper.DevTowerDataWarningMapper;
import com.yanzhu.manage.service.IDevTowerDataWarningService;
@ -41,6 +42,10 @@ public class DevTowerDataWarningServiceImpl implements IDevTowerDataWarningServi
@Override
public List<DevTowerDataWarning> selectDevTowerDataWarningList(DevTowerDataWarning devTowerDataWarning)
{
if(devTowerDataWarning.getProjectId()==null){
//devTowerDataWarning.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerDataWarning.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerDataWarningMapper.selectDevTowerDataWarningList(devTowerDataWarning);
}

View File

@ -82,6 +82,10 @@ public class DevTowerProjectConfigServiceImpl implements IDevTowerProjectConfigS
@Override
public List<DevTowerProjectConfig> selectDevTowerProjectConfigList(DevTowerProjectConfig devTowerProjectConfig)
{
if(devTowerProjectConfig.getProjectId()==null){
//devTowerProjectConfig.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
devTowerProjectConfig.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return devTowerProjectConfigMapper.selectDevTowerProjectConfigList(devTowerProjectConfig);
}

View File

@ -84,7 +84,7 @@ public class ProProjectInfoSubdeptsGroupServiceImpl implements IProProjectInfoSu
public List<ProProjectInfoSubdeptsGroup> selectProProjectInfoSubdeptsGroupList(ProProjectInfoSubdeptsGroup proProjectInfoSubdeptsGroup)
{
if(proProjectInfoSubdeptsGroup.getProjectId()==null){
proProjectInfoSubdeptsGroup.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//proProjectInfoSubdeptsGroup.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
proProjectInfoSubdeptsGroup.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return proProjectInfoSubdeptsGroupMapper.selectProProjectInfoSubdeptsGroupList(proProjectInfoSubdeptsGroup);
@ -100,7 +100,7 @@ public class ProProjectInfoSubdeptsGroupServiceImpl implements IProProjectInfoSu
public List<Map<String, Object>> findProProjectInfoSubdeptsGroupCount(ProProjectInfoSubdeptsGroup proProjectInfoSubdeptsGroup)
{
if(proProjectInfoSubdeptsGroup.getProjectId()==null){
proProjectInfoSubdeptsGroup.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//proProjectInfoSubdeptsGroup.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
proProjectInfoSubdeptsGroup.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return proProjectInfoSubdeptsGroupMapper.findProProjectInfoSubdeptsGroupCount(proProjectInfoSubdeptsGroup);

View File

@ -98,7 +98,7 @@ public class ProProjectInfoSubdeptsServiceImpl implements IProProjectInfoSubdept
public List<ProProjectInfoSubdepts> selectProProjectInfoSubdeptsList(ProProjectInfoSubdepts proProjectInfoSubdepts)
{
if(proProjectInfoSubdepts.getProjectId()==null){
proProjectInfoSubdepts.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//proProjectInfoSubdepts.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
proProjectInfoSubdepts.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return proProjectInfoSubdeptsMapper.selectProProjectInfoSubdeptsList(proProjectInfoSubdepts);
@ -114,7 +114,7 @@ public class ProProjectInfoSubdeptsServiceImpl implements IProProjectInfoSubdept
public List<Map<String, Object>> findProProjectInfoSubdeptsCount(ProProjectInfoSubdepts proProjectInfoSubdepts)
{
if(proProjectInfoSubdepts.getProjectId()==null){
proProjectInfoSubdepts.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
//proProjectInfoSubdepts.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId());
proProjectInfoSubdepts.setActiveProjectId(SecurityUtils.getLoginUser().getSysUser().getActiveProjectId());
}
return proProjectInfoSubdeptsMapper.findProProjectInfoSubdeptsCount(proProjectInfoSubdepts);

View File

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

View File

@ -298,8 +298,8 @@ export default {
this.dict = this.useDict('sys_common_isdel');
this.userStore = useUserStore()
this.isAdmin = this.userStore.isAdmin;
this.queryParams.projectId = this.userStore.currentPrjId;
this.queryParams.comId = this.userStore.currentComId;
//this.queryParams.projectId = this.userStore.currentPrjId;
//this.queryParams.comId = this.userStore.currentComId;
this.currentPrjId = this.userStore.currentPrjId;
this.queryProjectChange();
this.getList();

View File

@ -299,8 +299,8 @@ export default {
this.dict = this.useDict('sys_common_isdel');
this.userStore = useUserStore()
this.isAdmin = this.userStore.isAdmin;
this.queryParams.projectId = this.userStore.currentPrjId;
this.queryParams.comId = this.userStore.currentComId;
//this.queryParams.projectId = this.userStore.currentPrjId;
//this.queryParams.comId = this.userStore.currentComId;
this.currentPrjId = this.userStore.currentPrjId;
this.queryProjectChange();
this.getList();

View File

@ -274,8 +274,8 @@ export default {
this.dict = this.useDict('sys_common_isdel', 'device_tower_warning');
this.userStore = useUserStore()
this.isAdmin = this.userStore.isAdmin;
this.queryParams.projectId = this.userStore.currentPrjId;
this.queryParams.comId = this.userStore.currentComId;
//this.queryParams.projectId = this.userStore.currentPrjId;
//this.queryParams.comId = this.userStore.currentComId;
this.currentPrjId = this.userStore.currentPrjId;
this.queryProjectChange();
this.getList();

View File

@ -285,8 +285,8 @@ export default {
this.dict = this.useDict('sys_common_isdel', 'device_tower_warning', 'device_braking_status', 'device_rotation_state');
this.userStore = useUserStore()
this.isAdmin = this.userStore.isAdmin;
this.queryParams.projectId = this.userStore.currentPrjId;
this.queryParams.comId = this.userStore.currentComId;
//this.queryParams.projectId = this.userStore.currentPrjId;
//this.queryParams.comId = this.userStore.currentComId;
this.queryProjectChange();
this.currentPrjId = this.userStore.currentPrjId;
this.getList();

View File

@ -429,9 +429,9 @@ export default {
);
this.userStore = useUserStore();
this.isAdmin = this.userStore.isAdmin;
this.queryParams.projectId = this.userStore.currentPrjId;
this.queryParams.comId = this.userStore.currentComId;
this.queryParams.deptId = "";
//this.queryParams.projectId = this.userStore.currentPrjId;
//this.queryParams.comId = this.userStore.currentComId;
//this.queryParams.deptId = "";
this.queryProjectChange();
this.currentPrjId = this.userStore.currentPrjId;
this.getList();