Bläddra i källkod

历史数据查询加上按系统id、装置id查询

LLL 9 månader sedan
förälder
incheckning
e5629fb74b

+ 3 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/history/mapper/xml/InterlockDetailHistoryMapper.xml

@@ -21,6 +21,9 @@
         s.interlock_status, s.loop_health_level, d.bypass, s.tag_time
         from interlock_detail_history d left join interlock_summary_history s on d.summaryid = s.id
         <where>
+            <if test="dto.interlockSystemId != null and dto.interlockSystemId != ''"> and d.interlock_system_id =  #{dto.interlockSystemId}</if>
+            <if test="dto.interlockApparatusId != null and dto.interlockApparatusId != ''"> and d.interlock_apparatus_id =  #{dto.interlockApparatusId}</if>
+
             <if test="dto.interlockname != null and dto.interlockname != ''"> and d.interlockname like concat('%', #{dto.interlockname}, '%')</if>
             <if test="dto.interlockCondition != null and dto.interlockCondition != ''"> and d.interlock_condition = #{dto.interlockCondition}</if>
             <if test="dto.interlockConditionTag != null and dto.interlockConditionTag != ''"> and d.interlock_condition_tag like concat('%',#{dtodtodto.interlockConditionTag},'%')</if>