| | |
| | | package cn.lihu.jh.module.ecg.dal.mysql.devmanage; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.*; |
| | | |
| | | import cn.lihu.jh.framework.common.pojo.PageResult; |
| | |
| | | import cn.lihu.jh.module.ecg.controller.admin.devmanage.vo.*; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | /** |
| | | * 设备 Mapper |
| | |
| | | @Select("select * from lihu.device where dev_id=#{devId}") |
| | | DeviceDO getDeviceByDevId(@Param("devId") String devId); |
| | | |
| | | @Update("update lihu.device set state=#{state}, state_date=#{stateDate} where dev_id=#{devId}") |
| | | Integer updateDevState(@Param("devId") String devId, @Param("state") Integer state, @Param("stateDate") LocalDate stateDate); |
| | | |
| | | } |