Junjie
2023-12-25 2dc3f0507d6e883d16b1c3c095ca06455a6fa1a7
src/main/java/com/zy/asrs/mapper/BasLiftOptMapper.java
@@ -2,6 +2,8 @@
import com.zy.asrs.entity.BasLiftOpt;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -16,4 +18,10 @@
    List<Map<String, Object>> selectRunStatistic();//获取提升机每天运行数据
    @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);
}