20231127_qiuyh_隐患举报地点调整为下拉
| | |
| | | */ |
| | | @Excel(sort = 2,title = "隐患地点") |
| | | private String dangerLocation; |
| | | private String dictId; |
| | | |
| | | /** |
| | | * 隐患标题 |
| | |
| | | @PostMapping("selectAppInfo") |
| | | BasicResult selectAppInfo(@RequestBody Map map){ |
| | | String regionInspectionId = map.get("regionInspectionId").toString(); |
| | | String userId = map.get("userId").toString(); |
| | | return regionInspectionRecordService.selectAppInfo(regionInspectionId,userId); |
| | | return regionInspectionRecordService.selectAppInfo(regionInspectionId,null); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | //小程序巡检打卡列表 |
| | | List<Map> selectAppList(Map map); |
| | | |
| | | String selectPlatUserId(String userId); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public BasicResult selectAppInfo(String regionInspectionId, String userId) { |
| | | SysUserInfo sysUserInfo = UserInfoUtils.getInstance().getUserInfo(); |
| | | userId = sysUserInfo.getUserId(); |
| | | RegionInspectionEntity obj = regionInspectionRecordMapper.selectInfo(regionInspectionId, userId); |
| | | List<RegionInspectionHazardInformEntity> regionList = new ArrayList<>(); |
| | | if (obj.getRegionIds()!=null){ |
| | |
| | | SysUserInfo sysUserInfo = UserInfoUtils.getInstance().getUserInfo(); |
| | | String companyId = sysUserInfo.getCompanyId(); |
| | | String userId = sysUserInfo.getUserId(); |
| | | map.put("userId",userId); |
| | | String platUserId = regionInspectionRecordMapper.selectPlatUserId(userId); |
| | | map.put("userId",platUserId); |
| | | map.put("companyId",companyId); |
| | | int pageNum = (int) map.get("pageNum"); |
| | | int pageSize = (int) map.get("pageSize"); |
| | |
| | | <select id="selectInfo" resultType="com.thhy.secure.modules.biz.hiddenDanger.entity.HiddenDangerEntity"> |
| | | select |
| | | t.id, |
| | | t.dangerLocation, |
| | | sd.dict_name dangerLocation, |
| | | sd.dict_id dictId, |
| | | t.title, |
| | | t.createTime, |
| | | t.auditStatus, |
| | |
| | | from t_hidden_danger t |
| | | LEFT JOIN sys_users su ON su.user_id = t.createUser |
| | | LEFT JOIN sys_users su1 ON su1.user_id = t.updateUser |
| | | LEFT JOIN sys_dict sd on sd.dict_id = t.dangerLocation |
| | | where t.id=#{id} |
| | | </select> |
| | | |
| | |
| | | <select id="selectPageList" resultType="com.thhy.secure.modules.biz.hiddenDanger.entity.HiddenDangerEntity"> |
| | | SELECT |
| | | t.id, |
| | | t.dangerLocation, |
| | | sd.dict_name dangerLocation, |
| | | sd.dict_id dictId, |
| | | t.title, |
| | | t.createTime, |
| | | t.auditStatus, |
| | |
| | | from t_hidden_danger t |
| | | LEFT JOIN sys_users su ON su.user_id = t.createUser |
| | | LEFT JOIN sys_users su1 ON su1.user_id = t.updateUser |
| | | LEFT JOIN sys_dict sd on sd.dict_id = t.dangerLocation |
| | | WHERE |
| | | t.isUse = 1 |
| | | and t.companyId = #{companyId} |
| | |
| | | <select id="selectAppList" resultType="com.thhy.secure.modules.biz.hiddenDanger.entity.HiddenDangerEntity"> |
| | | SELECT |
| | | t.id, |
| | | t.dangerLocation, |
| | | sd.dict_name dangerLocation, |
| | | sd.dict_id dictId, |
| | | t.title, |
| | | t.createTime, |
| | | t.auditStatus, |
| | |
| | | from t_hidden_danger t |
| | | LEFT JOIN sys_users su ON su.user_id = t.createUser |
| | | LEFT JOIN sys_users su1 ON su1.user_id = t.updateUser |
| | | LEFT JOIN sys_dict sd on sd.dict_id = t.dangerLocation |
| | | WHERE |
| | | t.isUse = 1 |
| | | and t.companyId = #{companyId} |
| | |
| | | a.id |
| | | </select> |
| | | |
| | | <select id="selectPlatUserId" resultType="java.lang.String"> |
| | | SELECT |
| | | plat_id platId |
| | | FROM sys_users |
| | | WHERE user_id= #{userId,jdbcType=VARCHAR} |
| | | </select> |
| | | </mapper> |