package cn.flightfeather.supervision.domain.mapper
|
|
import cn.flightfeather.supervision.domain.entity.LedgerRecord
|
import cn.flightfeather.supervision.domain.util.MyMapper
|
import org.apache.ibatis.annotations.Delete
|
import org.apache.ibatis.annotations.Select
|
import tk.mybatis.mapper.common.Mapper
|
|
@org.apache.ibatis.annotations.Mapper
|
interface LedgerRecordMapper : MyMapper<LedgerRecord> {
|
|
fun selectByUser(userId: String, year: Int, month: Byte, subTypeId: Int?, sceneType: String, startIndex: Int?, perPage: Int): MutableList<LedgerRecord>
|
|
fun getLedgerImgs(userId: String, ledgerType: List<Int>):List<LedgerRecord>
|
|
@Select("set @row_number:=0;")
|
fun setRowNumber()
|
|
@Select("set @median_group:='';")
|
fun setGroup()
|
/**
|
* 获取每个激活状态的用户需要复制的每种台账的最新一条记录
|
*/
|
fun getNeedCopyLedgers(): List<LedgerRecord>
|
}
|