package cn.flightfeather.supervision.domain.mapper
|
|
import cn.flightfeather.supervision.domain.entity.SelfPatrolTask
|
import cn.flightfeather.supervision.domain.util.MyMapper
|
import cn.flightfeather.supervision.lightshare.vo.SelfPatrolTaskVo
|
import org.apache.ibatis.annotations.InsertProvider
|
import org.apache.ibatis.annotations.Mapper
|
import org.apache.ibatis.annotations.Options
|
import tk.mybatis.mapper.provider.SpecialProvider
|
|
@Mapper
|
interface SelfPatrolTaskMapper : MyMapper<SelfPatrolTask?> {
|
|
fun getPublishedTask(userId: String, year: Int?, month: Int?): List<SelfPatrolTaskVo>
|
|
}
|
|
/**
|
* 批量插入接口
|
*/
|
@Mapper
|
interface InsertUidListMapper<T> {
|
|
@Options(useGeneratedKeys = true, keyProperty = "spGuid")
|
@InsertProvider(type = SpecialProvider::class, method = "dynamicSQL")
|
fun insertUidList(recordList: List<T>?): Int
|
}
|