@@ -32,11 +32,12 @@ public interface TabAbnormalMapper extends BaseMapper<Abnormal> {
@Select(value="select ta.equipno as equipno , ta.evalue as evalue , ta.alarmlevel as alarmlevel ,td.equipname ,td.eqdanwei as eqdanwei ,DATE_FORMAT(ta.time,'%Y-%m-%d %H:%i:%s') as time from tab_abnormal ta join tb_drybeachequipinfor td on ta.equipno = td.equipno where ta.state='1' and td.tailingid=#{tailingid} ORDER BY ta.time DESC")
@Update(value="update tab_abnormal set state = '2' ,jcreason= #{jcreason},jcbjtime=#{jcbjtime},reason=#{reason},ifselect=1 where equipno =#{equipno} and state = 1 ")
@Update(value="update tab_abnormal set state = '2' ,jcreason= #{jcreason},jcbjtime=#{jcbjtime},reason=#{reason},updatetime=#{now},ifselect=1 where equipno =#{equipno} and state = 1 ")
intjcbj(@Param(value="jcreason")Stringjcreason,
@Param(value="jcbjtime")Stringjcbjtime,
@Param(value="reason")Stringreason,
@Param(value="equipno")Stringequipno);
@Param(value="equipno")Stringequipno,
@Param(value="now")Stringnow);
@Select(value="select b.name,b.code ,\n"+
"sum(case when alarmlevel =1 then 1 else 0 end )as \"red\",\n"+