jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devrent/DevRentMapper.java
@@ -8,6 +8,8 @@ import cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO; import org.apache.ibatis.annotations.Mapper; import cn.lihu.jh.module.ecg.controller.admin.devrent.vo.*; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; /** * 装机拆机 Mapper @@ -32,4 +34,7 @@ .orderByDesc(DevRentDO::getId)); } } @Select("select * from lihu.dev_rent where dev_id=#{devId} order by rent_time desc limit 1") DevRentDO getLatestRent( @Param("devId") String devId ); }