邱宇豪
2023-11-27 b79b3b5376bc5a54d897390718ddfee173c4eb32
20231127_qiuyh_隐患举报地点调整为下拉
已修改6个文件
29 ■■■■ 文件已修改
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/hiddenDanger/entity/HiddenDangerEntity.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/controller/RegionInspectionRecordController.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/mapper/RegionInspectionRecordMapper.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/service/impl/RegionInspectionRecordServiceImpl.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/resources/mapping/HiddenDangerMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/resources/mapping/RegionInspectionRecordMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/hiddenDanger/entity/HiddenDangerEntity.java
@@ -27,6 +27,7 @@
     */
    @Excel(sort = 2,title = "隐患地点")
    private String dangerLocation;
    private String dictId;
    /**
     * 隐患标题
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/controller/RegionInspectionRecordController.java
@@ -85,8 +85,7 @@
    @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);
    }
    /**
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/mapper/RegionInspectionRecordMapper.java
@@ -43,4 +43,6 @@
    //小程序巡检打卡列表
    List<Map> selectAppList(Map map);
    String selectPlatUserId(String userId);
}
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/service/impl/RegionInspectionRecordServiceImpl.java
@@ -158,6 +158,8 @@
    @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){
@@ -196,7 +198,8 @@
        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");
hd/pipe/secure/src/main/resources/mapping/HiddenDangerMapper.xml
@@ -137,7 +137,8 @@
    <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,
@@ -152,6 +153,7 @@
        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>
@@ -159,7 +161,8 @@
    <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,
@@ -174,6 +177,7 @@
         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}
@@ -187,7 +191,8 @@
    <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,
@@ -202,6 +207,7 @@
        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}
hd/pipe/secure/src/main/resources/mapping/RegionInspectionRecordMapper.xml
@@ -311,4 +311,10 @@
                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>