feiyu02
2024-08-15 196bb14112448857a885e32dc4149e308e00b01a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}