|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="org.jeecg.modules.detail.mapper.InterlockDetailMapper">
|
|
|
|
|
|
-
|
|
|
+
|
|
|
<select id="getPage2" parameterType="org.jeecg.modules.detail.dto.InterlockDetailQueryDTO" resultType="org.jeecg.modules.detail.vo.InterlockDetailQueryVO">
|
|
|
select d.id, d.summaryid, d.interlockname, d.interlock_condition, d.interlock_condition_tag, d.description,
|
|
|
d.instrument_status, d.interlock_set_value, d.current_value, d.if_bypass, d.input_status, d.output_status,
|
|
@@ -12,7 +12,7 @@
|
|
|
<if test="dto.summaryid != null and dto.summaryid != ''"> and d.summaryid = #{dto.summaryid}</if>
|
|
|
<if test="dto.interlockConditionTag != null and dto.interlockConditionTag != ''"> and d.interlock_condition_tag like concat('%',#{dto.interlockConditionTag},'%')</if>
|
|
|
</where>
|
|
|
-order by d.summaryid
|
|
|
+ order by d.create_time desc
|
|
|
</select>
|
|
|
|
|
|
|
|
@@ -29,6 +29,7 @@ order by d.summaryid
|
|
|
<if test="interlockSummaryVO.interlockStatus != null and interlockSummaryVO.interlockStatus != ''"> and s.interlock_status = #{interlockSummaryVO.interlockStatus}</if>
|
|
|
<if test="interlockSummaryVO.loopHealthLevel != null and interlockSummaryVO.loopHealthLevel != ''"> and s.loop_health_level = #{interlockSummaryVO.loopHealthLevel}</if>
|
|
|
</where>
|
|
|
+ order by s.create_time desc
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|