All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nbcp.myoql.db.es.event.MongoUpdateAtEvent.kt Maven / Gradle / Ivy

The newest version!
//package nbcp.db.es
//
//import nbcp.myoql.db.DbEntityEventResult
//import nbcp.myoql.db.es.*
//import org.springframework.stereotype.Component
//import java.time.LocalDateTime
//
///**
// * 同步处理,更新的实体,添加 updateAt 字段。
// */
//@Component
//class EsUpdateAtEvent : IEsEntityUpdate {
//    override fun beforeUpdate(update: EsBaseUpdateClip): DbEntityEventResult {
//        update.setValue("updateAt", LocalDateTime.now())
//        return DbEntityEventResult(true, null)
//    }
//
//    override fun update(update: EsBaseUpdateClip, eventData: DbEntityEventResult) {
//    }
//}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy