From 16dc9b71a91fa8ca5bb85285a5d54cb3e28eb60f Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: 星期二, 18 六月 2024 17:21:51 +0800
Subject: [PATCH] 时间处理
---
src/main/resources/mybatis/tr/RiskListMapper.xml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 59 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mybatis/tr/RiskListMapper.xml b/src/main/resources/mybatis/tr/RiskListMapper.xml
index 0235815..966c6ec 100644
--- a/src/main/resources/mybatis/tr/RiskListMapper.xml
+++ b/src/main/resources/mybatis/tr/RiskListMapper.xml
@@ -337,4 +337,63 @@
select * from tr_risk_list
where risk_list_name = #{riskListName}
</select>
+
+
+ <resultMap type="com.ruoyi.project.tr.riskList.domain.RiskList" id="RiskListResultOfPlan">
+ <result property="riskListId" column="risk_list_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="riskListNum" column="risk_list_num" />
+ <result property="riskListName" column="risk_list_name" />
+ <result property="riskListIsSpecial" column="risk_list_is_special" />
+ <result property="riskListImgUrl" column="risk_list_img_url" />
+ <result property="riskListDeviceType" column="risk_list_device_type" />
+ <result property="riskListDeviceModel" column="risk_list_device_model" />
+ <result property="riskListWorkType" column="risk_list_work_type" />
+ <result property="riskListWorkFrequency" column="risk_list_work_frequency" />
+ <result property="riskListCraftsType" column="risk_list_crafts_type" />
+ <result property="riskListCraftsDescription" column="risk_list_crafts_description" />
+ <result property="regionId" column="region_id" />
+ <result property="regionName" column="region_name" />
+ <result property="deptId" column="dept_id" />
+ <result property="deptName" column="dept_name" />
+ <result property="riskTypeName" column="risk_type_name" />
+ <result property="userId" column="user_id" />
+ <result property="userName" column="user_name" />
+ <result property="riskType" column="risk_type" />
+ <result property="companyId" column="company_id" />
+ <result property="isEvaluation" column="is_evaluation" />
+
+ <result property="evaluationNowFengxianJibie" column="evaluation_now_fengxian_jibie" />
+ <result property="evaluationNowFengxianse" column="evaluation_now_fengxianse" />
+ <result property="evaluationNowJibie" column="evaluation_now_jibie" />
+ </resultMap>
+<!-- List<RiskList> getAllPlan(int riskType);-->
+ <select id="getAllPlan" resultMap="RiskListResultOfPlan">
+ SELECT
+ a.*,
+ c.evaluation_now_fengxian_jibie,
+ c.evaluation_now_fengxianse,
+ c.evaluation_now_jibie
+ FROM tr_risk_list a
+ LEFT JOIN tr_risk_evaluation_plan b ON b.evaluation_risk_id = a.risk_list_id
+ left join tr_risk_check_point c on c.plan_id = b.plan_id
+ where a.risk_type = 5
+ </select>
+
+<!-- ResultVO<List<RiskList>> listHazardSource();-->
+ <select id="listHazardSource" resultMap="RiskListResult">
+ SELECT * FROM tr_risk_list
+ where risk_list_num in('652310082001','652310082002','652310082003','652310082004','652310082005','652310082006',
+ '652310082007','652310082008','652310082009','652310082010','652310082011','652310082012','652310082013')
+ </select>
+<!-- RiskList getInfoByRiskListNum(String hazardCode);-->
+ <select id="getInfoByRiskListNum" resultMap="RiskListResult">
+ SELECT * FROM tr_risk_list
+ where risk_list_num = #{hazardCode}
+ </select>
</mapper>
+
--
Gitblit v1.9.2