|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<Map<String, Object>> selectRunErrorStatistic(int time);//获取提升机每天运行异常数据 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Insert("insert into asr_bas_lift_opt_storage select * from asr_bas_lift_opt where id in (select id from asr_bas_lift_opt where DATEDIFF(day, send_time, GETDATE()) > #{day})") | 
|---|
|  |  |  | int saveToStorage(Integer day); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Delete("delete from asr_bas_lift_opt where id in (select id from asr_bas_lift_opt where DATEDIFF(day, send_time, GETDATE()) > #{day})") | 
|---|
|  |  |  | int deleteByDay(Integer day); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | BasLiftOpt selectByDeviceWrk(String deviceWrk, Integer liftNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int saveToStorage(Integer day); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int deleteByDay(Integer day); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | return this.baseMapper.selectByDeviceWrk(deviceWrk, liftNo); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public int saveToStorage(Integer day) { | 
|---|
|  |  |  | return this.baseMapper.saveToStorage(day); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public int deleteByDay(Integer day) { | 
|---|
|  |  |  | return this.baseMapper.deleteByDay(day); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|