public interface ConfigNotifyMapper
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBefore(LocalDateTime agingTime) |
List<ConfigNotifyPo> |
findNext500(long maxIdScanned) |
Long |
findTopByOrderByIdDesc() |
Integer |
saveConfig(ConfigNotifyPo configNotifyPo) |
@Insert(value="Insert into config_notify (config_name, config_item_id, notify_time) values (#{configName}, #{configItemId}, #{notifyTime})")
Integer saveConfig(ConfigNotifyPo configNotifyPo)
@Select(value="SELECT id from config_notify ORDER BY id DESC LIMIT 0,1;") Long findTopByOrderByIdDesc()
@Select(value="SELECT * from config_notify WHERE id > #{maxIdScanned} ORDER BY id ASC LIMIT 0,500;")
@Result(property="configName",column="config_name") @Result(property="configItemId",column="config_item_id") @Result(property="notifyTime",column="notify_time")
List<ConfigNotifyPo> findNext500(@Param(value="maxIdScanned")
long maxIdScanned)
@Delete(value="DELETE FROM config_notify WHERE notify_time < #{agingTime}")
void deleteBefore(@Param(value="agingTime")
LocalDateTime agingTime)
Copyright © 2021 Shoothzj. All rights reserved.