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
package cn.flightfeather.supervision.lightshare.repository.impl
 
import cn.flightfeather.supervision.domain.entity.ScheduleSignRecord
import cn.flightfeather.supervision.domain.mapper.ScheduleSignRecordMapper
import cn.flightfeather.supervision.lightshare.repository.ScheduleSignRecordRepository
import org.springframework.stereotype.Repository
import tk.mybatis.mapper.entity.Example
import java.util.*
 
@Repository
class ScheduleSignRecordRepositoryImpl(private val scheduleSignRecordMapper: ScheduleSignRecordMapper) :
    ScheduleSignRecordRepository {
 
    override fun getRecord(userId: String?, scheduleId: Int?, sTime: Date?, eTime: Date?): List<ScheduleSignRecord?> {
        return scheduleSignRecordMapper.selectByExample(Example(ScheduleSignRecord::class.java).apply {
            createCriteria().andEqualTo("srScheduleId", scheduleId)
                .andEqualTo("srUserId", userId)
                .andBetween("srSignTime", sTime, eTime)
        })
    }
}