From 247a4a1f10f233c89a4bd054dee3cb9b7d4a76f1 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 19 十一月 2025 08:40:12 +0800
Subject: [PATCH] 新增数据上传准东
---
src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 117 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml b/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml
index 3d6550b..818b6eb 100644
--- a/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml
+++ b/src/main/resources/mybatis/tr/HiddenDangerCheckPointMapper.xml
@@ -100,9 +100,14 @@
<result property="companyId" column="company_id"/>
+
<result property="checkPerson" column="check_person"/>
<result property="findTime" column="find_time"/>
+ <result property="dangerSrc" column="danger_src"/>
+<!-- <result property="dangerSrcName" column="danger_src_name"/>-->
</resultMap>
+
+
<sql id="selectHiddenDangerCheckPointVo">
select a.id,a.check_point_id,a.check_id, a.create_by, a.create_time, a.update_by, a.update_time,a.remark,a.accept_status,
@@ -129,10 +134,13 @@
c.check_type,a.company_id,
b.type_cycle_num,b.type_cycle_type,
a.examine_user_id, a.examine_user_name,
- a.check_person, a.find_time
+ a.check_person, a.find_time,e.danger_src
+<!-- ,f.dict_label as danger_src_name-->
from tr_hidden_danger_check_point a
left join tr_hidden_danger_check c on c.check_id = a.check_id
left join tr_troubleshoot_type b on c.troubleshoot_type_id = b.type_id
+ left join prevent_risk_danger_info e on e.danger_check_point_id = a.id
+<!-- left join sys_dict_data f on f.dict_value = e.danger_src and f.dict_type = 'danger_source'-->
</sql>
<select id="selectHiddenDangerCheckPointList" parameterType="HiddenDangerCheckPoint"
@@ -145,6 +153,7 @@
<if test="planCreateUserId != null and planCreateUserId != ''">and c.plan_create_user_id =
#{planCreateUserId}
</if>
+ <if test="dangerSrc != null"> and e.danger_src = #{dangerSrc}</if>
<if test="planName != null and planName != ''">and c.plan_name like concat('%', #{planName}, '%')</if>
<if test="troubleshootTypeId != null ">and c.troubleshoot_type_id = #{troubleshootTypeId}</if>
<if test="troubleshootTypeName != null and troubleshootTypeName != ''">and c.troubleshoot_type_name like
@@ -354,6 +363,109 @@
</select>
+
+ <resultMap type="HiddenDangerCheckPoint" id="HiddenDangerCheckPointResultNew">
+ <result property="id" column="id"/>
+ <result property="checkPointId" column="check_point_id"/>
+ <result property="checkId" column="check_id"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="remark" column="remark"/>
+ <result property="planCreateUserId" column="plan_create_user_id"/>
+ <result property="planName" column="plan_name"/>
+ <result property="troubleshootTypeId" column="troubleshoot_type_id"/>
+ <result property="troubleshootTypeName" column="troubleshoot_type_name"/>
+ <result property="organizationDeptId" column="organization_dept_id"/>
+ <result property="organizationDeptName" column="organization_dept_name"/>
+ <result property="riskType" column="risk_type"/>
+ <result property="riskId" column="risk_id"/>
+ <result property="riskName" column="risk_name"/>
+ <result property="checkUserId" column="check_user_id"/>
+ <result property="checkUserName" column="check_user_name"/>
+ <result property="beCheckedDeptId" column="be_checked_dept_id"/>
+ <result property="beCheckedDeptName" column="be_checked_dept_name"/>
+ <result property="checkBeginTime" column="check_begin_time"/>
+ <result property="checkEndTime" column="check_end_time"/>
+ <result property="planFormulateStatus" column="plan_formulate_status"/>
+ <result property="planExecuteStatus" column="plan_execute_status"/>
+ <result property="checkStatus" column="check_status"/>
+ <result property="whetherDanger" column="whether_danger"/>
+ <result property="dangerName" column="danger_name"/>
+ <result property="dangerDescription" column="danger_description"/>
+ <result property="dangerLevel" column="danger_level"/>
+ <result property="troubleTypeId" column="trouble_type_id"/>
+ <result property="troubleTypeName" column="trouble_type_name"/>
+ <result property="dangerDeptId" column="danger_dept_id"/>
+ <result property="dangerDeptName" column="danger_dept_name"/>
+ <result property="dangerPlaceId" column="danger_place_id"/>
+ <result property="dangerPlaceName" column="danger_place_name"/>
+ <result property="checkTime" column="check_time"/>
+ <result property="preRectifyPhoto" column="pre_rectify_photo"/>
+ <result property="registerUserId" column="register_user_id"/>
+ <result property="registerUserName" column="register_user_name"/>
+ <result property="registerCreateTime" column="register_create_time"/>
+ <result property="registerSubmitTime" column="register_submit_time"/>
+ <result property="judgeUserId" column="judge_user_id"/>
+ <result property="judgeUserName" column="judge_user_name"/>
+ <result property="judgeCreateTime" column="judge_create_time"/>
+ <result property="judgeCreateUserId" column="judge_create_user_id"/>
+ <result property="dangerSources" column="danger_sources"/>
+ <result property="reportStatus" column="report_status"/>
+ <result property="examineUserId" column="examine_user_id"/>
+ <result property="examineUserName" column="examine_user_name"/>
+ <result property="examineStatus" column="examine_status"/>
+ <result property="examineOpinion" column="examine_opinion"/>
+ <result property="examineResult" column="examine_result"/>
+ <result property="examineCreateTime" column="examine_create_time"/>
+ <result property="treatMeasure" column="treat_measure"/>
+ <result property="rectifyUserId" column="rectify_user_id"/>
+ <result property="rectifyUserName" column="rectify_user_name"/>
+ <result property="rectifyDeptId" column="rectify_dept_id"/>
+ <result property="rectifyDeptName" column="rectify_dept_name"/>
+ <result property="rectifyDeadlineTime" column="rectify_deadline_time"/>
+ <result property="rectifyType" column="rectify_type"/>
+ <result property="rectifyAttachment" column="rectify_attachment"/>
+ <result property="rectifyMeasure" column="rectify_measure"/>
+ <result property="rectifyCondition" column="rectify_condition"/>
+ <result property="rectifyFund" column="rectify_fund"/>
+ <result property="rectifyCompleteTime" column="rectify_complete_time"/>
+ <result property="rectifyStatus" column="rectify_status"/>
+ <result property="rectifyCreateTime" column="rectify_create_time"/>
+ <result property="acceptUserId" column="accept_user_id"/>
+ <result property="acceptUserName" column="accept_user_name"/>
+ <result property="postRectifyPhoto" column="post_rectify_photo"/>
+ <result property="acceptResult" column="accept_result"/>
+ <result property="acceptOpinion" column="accept_opinion"/>
+ <result property="acceptFile" column="accept_file"/>
+ <result property="acceptCreateTime" column="accept_create_time"/>
+ <result property="acceptStatus" column="accept_status"/>
+ <result property="stage" column="stage"/>
+ <result property="scheduleCreateUserId" column="schedule_create_user_id"/>
+ <result property="scheduleCreateUserName" column="schedule_create_user_name"/>
+ <result property="scheduleCheckUserId" column="schedule_check_user_id"/>
+ <result property="scheduleCheckUserName" column="schedule_check_user_name"/>
+ <result property="scheduleCheckStatus" column="schedule_check_status"/>
+ <result property="jobId" column="job_id"/>
+ <result property="jobName" column="job_name"/>
+ <result property="jobGroup" column="job_group"/>
+ <result property="invokeTarget" column="invoke_target"/>
+ <result property="jobMessage" column="job_message"/>
+ <result property="status" column="status"/>
+ <result property="exceptionInfo" column="exception_info"/>
+ <result property="troubleshootTypeCycleNum" column="type_cycle_num"/>
+ <result property="troubleshootTypeCycleType" column="type_cycle_type"/>
+ <result property="checkType" column="check_type"/>
+ <result property="companyId" column="company_id"/>
+
+
+
+ <result property="checkPerson" column="check_person"/>
+ <result property="findTime" column="find_time"/>
+ <result property="dangerSrc" column="danger_src"/>
+ </resultMap>
+
<sql id="selectHiddenDangerCheckPointVoNewCount">
select a.id,a.check_point_id,a.check_id, a.create_by, a.create_time, a.update_by, a.update_time,a.remark,a.accept_status,
c.plan_create_user_id,
@@ -379,15 +491,16 @@
c.check_type,a.company_id,
b.type_cycle_num,b.type_cycle_type,
a.examine_user_id, a.examine_user_name,
- a.check_person, a.find_time
+ a.check_person, a.find_time,e.danger_src
from tr_hidden_danger_check_point a
left join tr_hidden_danger_check c on c.check_id = a.check_id
left join tr_troubleshoot_type b on c.troubleshoot_type_id = b.type_id
+ left join prevent_risk_danger_info e on e.danger_check_point_id = a.id
</sql>
<!-- todo 查隐患台账-->
<select id="selectHiddenDangerCheckPointListNewCount" parameterType="HiddenDangerCheckPoint"
- resultMap="HiddenDangerCheckPointResult">
+ resultMap="HiddenDangerCheckPointResultNew">
<include refid="selectHiddenDangerCheckPointVoNewCount"/>
<where>
<if test="id != null and id != ''">and a.id = #{id}</if>
@@ -396,6 +509,7 @@
<if test="registerUserName != null and registerUserName != ''">and a.register_user_name =
#{registerUserName}
</if>
+ <if test="dangerSrc != null"> and e.danger_src = #{dangerSrc}</if>
<if test="registerCreateTime != null ">and a.register_create_time = #{registerCreateTime}</if>
<if test="params.beginRegisterCreateTime != null and params.beginRegisterCreateTime != '' and params.endRegisterCreateTime != null and params.endRegisterCreateTime != ''">
and a.register_create_time between #{params.beginRegisterCreateTime} and
--
Gitblit v1.9.2