@@ -28,8 +28,8 @@ public interface DrybeachequipinforMapper extends BaseMapper<Drybeachequipinfor>
...
@@ -28,8 +28,8 @@ public interface DrybeachequipinforMapper extends BaseMapper<Drybeachequipinfor>
@Update("update tb_drybeachequipinfor set state = 0 where equipno=#{equipno} ")
@Update("update tb_drybeachequipinfor set state = 0 where equipno=#{equipno} ")
intjcbj(Stringequipno);
intjcbj(Stringequipno);
@Select(value="select tailingno as value ,tailingname as name from tb_tailpondinfor")
@Select(value="select b.tailingno as value ,b.tailingname as name FROM `tab_user_tailpon` a join tb_tailpondinfor b on a.tailingno=b.tailingno where a.username=#{username}")
ArrayList<Dic>gettailingid();
ArrayList<Dic>gettailingid(Stringusername);
@Select(value="select code as value ,name from sys_devicetype where must ='0' or type='t_8' ")
@Select(value="select code as value ,name from sys_devicetype where must ='0' or type='t_8' ")
ArrayList<Dic>getdevicetype();
ArrayList<Dic>getdevicetype();
...
@@ -84,4 +84,6 @@ public interface DrybeachequipinforMapper extends BaseMapper<Drybeachequipinfor>
...
@@ -84,4 +84,6 @@ public interface DrybeachequipinforMapper extends BaseMapper<Drybeachequipinfor>
@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' ORDER BY ta.time DESC")
@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")
@@ -43,7 +43,7 @@ public interface TailpondinforMapper extends BaseMapper<Tailpondinfor> {
...
@@ -43,7 +43,7 @@ public interface TailpondinforMapper extends BaseMapper<Tailpondinfor> {
@Select(value="select username as value ,nick_name as name from sys_user where username !='admin' order by user_id desc")
@Select(value="select username as value ,nick_name as name from sys_user where username !='admin' order by user_id desc")
ArrayList<HashMap<String,Object>>getUsername();
ArrayList<HashMap<String,Object>>getUsername();
@Select(value="SELECT a.* FROM `tb_tailpondinfor` a JOIN tab_user_tailpon b ON a.tailingno = b.tailingno JOIN sys_user c ON c.username = b.username WHERE c.username = #{username}")
@Select(value="SELECT a.* FROM `tb_tailpondinfor` a JOIN tab_user_tailpon b ON a.tailingno = b.tailingno JOIN sys_user c ON c.username = b.username WHERE c.username = #{username} order by id desc")