feiyu02
2022-11-15 23bd719cebe5feeff4e48fde925b0b39755eea93
src/main/kotlin/cn/flightfeather/supervision/domain/mapper/LedgerRecordMapper.kt
@@ -2,6 +2,7 @@
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
@@ -11,4 +12,14 @@
    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>
}