Browse Source

fix 联锁历史数据总状态查询

LLL 4 months ago
parent
commit
ada348a9b5

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

@@ -50,6 +50,7 @@
             <if test="dto.loopHealthLevel != null and dto.loopHealthLevel != ''"> and s.loop_health_level = #{dto.loopHealthLevel}</if>
             <if test="dto.beginTime != null"> and s.tag_time &gt; #{dto.beginTime} </if>
             <if test="dto.endTime != null"> and s.tag_time &lt; #{dto.endTime} </if>
+            <if test="dto.bypass != null and dto.bypass != ''"> and d.bypass = #{dto.bypass}</if>
         </where>
         order by s.tag_time desc
     </select>