feiyu02
2024-01-10 30a53b41f09d2eefd33513a409d472c2166ba1ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cn.flightfeather.supervision.domain.ds2.mapper
 
import cn.flightfeather.supervision.domain.ds2.entity.LedgerRecord
import cn.flightfeather.supervision.domain.util.MyMapper
import org.apache.ibatis.annotations.Select
 
@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("select count(*) from ea_t_ledgerrecord as a left join ea_t_ledgersubtype as b on a.LS_SubTypeId = b.LS_SubTypeId " +
            "where a.LR_SubmitID = #{param1} and a.LR_Year = #{param2} and a.LR_Month = #{param3} and b.L_NeedUpdate = true")
    fun getNeedUpdateCount(userId: String?, year: Int, month: Byte): Int
}