Commit 8b1ea657 authored by wanghao's avatar wanghao

1 隐患管理查询 之前存的是 user表的nikename, 如果 nikename改的话就查不到了,现在调整成 存id,根据id关联查 nikename 和 导出调整。

parent 032477c0
...@@ -38,13 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -38,13 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectTHiddenTroubleInfoVo"> <sql id="selectTHiddenTroubleInfoVo">
select hidden_trouble_id, work_id, hidden_trouble_name, hidden_trouble_level, hidden_trouble_type,hidden_source, select hidden_trouble_id, work_id, hidden_trouble_name, hidden_trouble_level, hidden_trouble_type,hidden_source,
longitude, latitude, picture_url, hidden_trouble_describe, report_time,reject_content,fuhe_group_num, longitude, latitude, picture_url, hidden_trouble_describe, report_time,reject_content,fuhe_group_num,
(select u.user_name from sys_user u where u.user_id = report_person) AS report_person_name, suer.nick_name as report_person, report_person_id,hidden_trouble_deal_status, hidden_trouble_deal_condition, fuhe_time,deal_video,
report_person, hidden_trouble_deal_status, hidden_trouble_deal_condition, fuhe_time,deal_video,
fuhe_person,deal_person,video_url, fuhe_person,deal_person,video_url,
hidden_trouble_deal_finish_time, is_del, remarks,beyond_enterprise_id,deal_url,is_report hidden_trouble_deal_finish_time, is_del, remarks,beyond_enterprise_id,deal_url,is_report
from t_hidden_trouble_info from t_hidden_trouble_info info left join sys_user suer on info.report_person_id = suer.user_id
</sql> </sql>
<select id="selectTHiddenTroubleInfoList" parameterType="THiddenTroubleInfo" resultMap="THiddenTroubleInfoResult"> <select id="selectTHiddenTroubleInfoList" parameterType="THiddenTroubleInfo" resultMap="THiddenTroubleInfoResult">
<include refid="selectTHiddenTroubleInfoVo"/> <include refid="selectTHiddenTroubleInfoVo"/>
<where> <where>
...@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="reportTime != null "> and report_time = #{reportTime}</if> <if test="reportTime != null "> and report_time = #{reportTime}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if> <if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if> <if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if> <if test="reportPerson != null and reportPerson != ''"> and suer.nick_name like concat('%', #{reportPerson}, '%')</if>
<if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if> <if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if>
<if test="hiddenTroubleDealCondition != null and hiddenTroubleDealCondition != ''"> and hidden_trouble_deal_condition = #{hiddenTroubleDealCondition}</if> <if test="hiddenTroubleDealCondition != null and hiddenTroubleDealCondition != ''"> and hidden_trouble_deal_condition = #{hiddenTroubleDealCondition}</if>
<if test="hiddenTroubleDealFinishTime != null "> and hidden_trouble_deal_finish_time = #{hiddenTroubleDealFinishTime}</if> <if test="hiddenTroubleDealFinishTime != null "> and hidden_trouble_deal_finish_time = #{hiddenTroubleDealFinishTime}</if>
...@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if> </if>
COUNT(*) AS countNum COUNT(*) AS countNum
FROM t_hidden_trouble_info FROM t_hidden_trouble_info info left join sys_user suer on info.report_person_id = suer.user_id
<where> <where>
is_del='0' is_del='0'
<if test="workId != null "> and work_id = #{workId}</if> <if test="workId != null "> and work_id = #{workId}</if>
...@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="hiddenTroubleType != null and hiddenTroubleType != ''"> and hidden_trouble_type = #{hiddenTroubleType}</if> <if test="hiddenTroubleType != null and hiddenTroubleType != ''"> and hidden_trouble_type = #{hiddenTroubleType}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if> <if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if> <if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if> <if test="reportPerson != null and reportPerson != ''"> and suer.nick_name like concat('%', #{reportPerson}, '%')</if>
<if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if> <if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if>
</where> </where>
</select> </select>
...@@ -107,15 +107,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -107,15 +107,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(CASE hidden_trouble_level WHEN '1' THEN 'I级' WHEN '2' THEN 'II级'WHEN '3' THEN 'III级'end) as hidden_trouble_level, (CASE hidden_trouble_level WHEN '1' THEN 'I级' WHEN '2' THEN 'II级'WHEN '3' THEN 'III级'end) as hidden_trouble_level,
(CASE hidden_trouble_type WHEN '1' THEN '漏气' WHEN '2' THEN '腐蚀'WHEN '3' THEN '裂缝' WHEN '4' THEN '设备故障' WHEN '5' THEN '安全距离不足' WHEN '6' THEN '管道承重'WHEN '7' THEN '其他'end) as hidden_trouble_type, (CASE hidden_trouble_type WHEN '1' THEN '漏气' WHEN '2' THEN '腐蚀'WHEN '3' THEN '裂缝' WHEN '4' THEN '设备故障' WHEN '5' THEN '安全距离不足' WHEN '6' THEN '管道承重'WHEN '7' THEN '其他'end) as hidden_trouble_type,
longitude, latitude, picture_url, hidden_trouble_describe, longitude, latitude, picture_url, hidden_trouble_describe,
report_time, (select u.user_name from sys_user u where u.user_id = report_person) AS report_person_name, report_person, report_time, report_person,
(CASE hidden_trouble_deal_status WHEN '1' THEN '待处理' WHEN '2' THEN '处理中'WHEN '3' THEN '已完成'end) as hidden_trouble_deal_status, (CASE hidden_trouble_deal_status WHEN '1' THEN '待处理' WHEN '2' THEN '处理中'WHEN '3' THEN '已完成'end) as hidden_trouble_deal_status,
hidden_trouble_deal_condition, hidden_trouble_deal_finish_time, is_del, remarks,is_report hidden_trouble_deal_condition, hidden_trouble_deal_finish_time, is_del, remarks,is_report
from t_hidden_trouble_info from t_hidden_trouble_info info left join sys_user suer on info.report_person_id = suer.user_id
<where> <where>
is_del='0' is_del='0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if> <if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if> <if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if> <if test="reportPerson != null and reportPerson != ''"> and suer.nick_name like concat('%', #{reportPerson}, '%')</if>
<if test="hiddenSource!=null"> and hidden_source = #{hiddenSource}</if> <if test="hiddenSource!=null"> and hidden_source = #{hiddenSource}</if>
<if test="reportBeginTime != null and reportEndTime!=null">and report_time BETWEEN #{reportBeginTime} and #{reportEndTime}</if> <if test="reportBeginTime != null and reportEndTime!=null">and report_time BETWEEN #{reportBeginTime} and #{reportEndTime}</if>
</where> </where>
......
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
</el-dialog> </el-dialog>
<!-- 燃气隐患详情对话框 --> <!-- 燃气隐患详情对话框 -->
<el-dialog :title="detailsTitle" :visible.sync="detailsOpen" width="800px" append-to-body> <el-dialog :title="detailsTitle" :visible.sync="detailsOpen" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="hiddenDangerRules" label-width="150px"> <el-form ref="form" :model="form" :rules="hiddenDangerRules" label-width="150px">
<el-row> <el-row>
...@@ -337,6 +337,7 @@ ...@@ -337,6 +337,7 @@
<el-form-item label="上传照片" :disabled="true"> <el-form-item label="上传照片" :disabled="true">
<FileUpload <FileUpload
:disabled="true" :disabled="true"
v-if="detailsOpen"
listType="picture" listType="picture"
@resFun="getFileInfo" @resFun="getFileInfo"
@remove="listRemove" @remove="listRemove"
...@@ -374,6 +375,7 @@ ...@@ -374,6 +375,7 @@
<el-form-item label="上传照片" :disabled="true" v-if="form.hiddenTroubleDealStatus==3"> <el-form-item label="上传照片" :disabled="true" v-if="form.hiddenTroubleDealStatus==3">
<FileUpload <FileUpload
:disabled="true" :disabled="true"
v-if="detailsOpen"
listType="picture" listType="picture"
@resFun="getFileInfon" @resFun="getFileInfon"
@remove="listRemoven" @remove="listRemoven"
...@@ -506,6 +508,7 @@ ...@@ -506,6 +508,7 @@
<el-form-item label="上传照片"> <el-form-item label="上传照片">
<FileUpload <FileUpload
listType="picture" listType="picture"
v-if="open"
@resFun="getFileInfo" @resFun="getFileInfo"
@remove="listRemove" @remove="listRemove"
:fileArr="fileList" :fileArr="fileList"
...@@ -732,7 +735,7 @@ ...@@ -732,7 +735,7 @@
// pictureUrlList // pictureUrlList
// fileList // fileList
/**上传图片*/ /**上传图片*/
getFileInfo(res){ getFileInfo(res){
this.form.dealPlan = res.fileName; this.form.dealPlan = res.fileName;
this.pictureUrlList.push(res.url) this.pictureUrlList.push(res.url)
this.form.pictureUrl=this.pictureUrlList.join(","); this.form.pictureUrl=this.pictureUrlList.join(",");
...@@ -745,7 +748,7 @@ ...@@ -745,7 +748,7 @@
}, },
/**处理隐患 上传图片*/ /**处理隐患 上传图片*/
getFileInfon(res){ getFileInfon(res){
this.form.dealPlan = res.fileName; this.form.dealPlan = res.fileName;
this.pictureUrlListn.push(res.url) this.pictureUrlListn.push(res.url)
this.form.dealUrl=this.pictureUrlListn.join(","); this.form.dealUrl=this.pictureUrlListn.join(",");
...@@ -908,7 +911,7 @@ ...@@ -908,7 +911,7 @@
this.reset(); this.reset();
// 隐患信息 上传照片清空 // 隐患信息 上传照片清空
this.filelist = []; this.fileList = [];
this.pictureUrlList = []; this.pictureUrlList = [];
// 隐患处理 上传照片清空 // 隐患处理 上传照片清空
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment