Commit 459d0f2c authored by 高建强's avatar 高建强

item:修改预案数据同步

parent 046619f5
...@@ -25,7 +25,7 @@ public class PlanOperationRecordSyncBo extends BasicEntityBo { ...@@ -25,7 +25,7 @@ public class PlanOperationRecordSyncBo extends BasicEntityBo {
/** /**
* 运行模式(0、模拟,1、自动) * 运行模式(0、模拟,1、自动)
*/ */
private String planPattern; private Integer planPattern;
/** /**
* 开始时间 * 开始时间
...@@ -50,7 +50,7 @@ public class PlanOperationRecordSyncBo extends BasicEntityBo { ...@@ -50,7 +50,7 @@ public class PlanOperationRecordSyncBo extends BasicEntityBo {
/** /**
* 运行状态(0、运行中,1、完毕,3、中断) * 运行状态(0、运行中,1、完毕,3、中断)
*/ */
private String status; private Integer status;
/** /**
* 启动人名称 * 启动人名称
*/ */
...@@ -66,7 +66,7 @@ public class PlanOperationRecordSyncBo extends BasicEntityBo { ...@@ -66,7 +66,7 @@ public class PlanOperationRecordSyncBo extends BasicEntityBo {
/** /**
* 执行方式(0、预案验证 1、火灾处置) * 执行方式(0、预案验证 1、火灾处置)
*/ */
private String executionType; private Integer executionType;
/** /**
* 装备名称 * 装备名称
*/ */
......
...@@ -90,32 +90,7 @@ ...@@ -90,32 +90,7 @@
</select> </select>
<select id="getPlanOperationRecordSyncBoList" resultType="com.yeejoin.amos.fas.business.bo.PlanOperationRecordSyncBo" parameterType="java.util.Map"> <select id="getPlanOperationRecordSyncBoList" resultType="com.yeejoin.amos.fas.business.bo.PlanOperationRecordSyncBo" parameterType="java.util.Map">
SELECT SELECT
por.id, por.*,
por.plan_id,
CASE por.plan_pattern
WHEN 4 THEN '模拟'
WHEN 5 THEN '自动'
ELSE '未知' END AS plan_pattern,
CASE por.`status`
WHEN 1 THEN '运行中'
WHEN 2 THEN '完成'
WHEN 3 THEN '中断'
ELSE '未知' END AS `status`,
CASE por.execution_type
WHEN 0 THEN '预案验证'
WHEN 1 THEN '火灾处置'
ELSE '未知' END AS execution_type,
por.start_time,
por.end_time,
por.create_date,
por.batch_no,
por.is_delete,
por.start_user_name,
por.start_user_id,
por.equipment_code,
por.equipment_name,
por.equipment_id,
por.fire_equipment_id,
pd.plan_name, pd.plan_name,
e.`name` AS fireEquipmentName e.`name` AS fireEquipmentName
FROM FROM
......
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