gaoluyang
5 天以前 d39e4f7d839167c16425086dfa2f8747bccfdff9
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
28
29
package cn.iocoder.yudao.module.srm.dal.mysql;
 
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.srm.dal.dataobject.SrmSupplierBankDO;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.List;
 
@Mapper
public interface SrmSupplierBankMapper extends BaseMapperX<SrmSupplierBankDO> {
 
    default List<SrmSupplierBankDO> selectListBySupplierId(Long supplierId) {
        return selectList(new LambdaQueryWrapperX<SrmSupplierBankDO>()
                .eq(SrmSupplierBankDO::getSupplierId, supplierId)
                .orderByAsc(SrmSupplierBankDO::getSort)
                .orderByAsc(SrmSupplierBankDO::getId));
    }
 
    default void deleteBySupplierId(Long supplierId) {
        delete(new LambdaQueryWrapperX<SrmSupplierBankDO>()
                .eq(SrmSupplierBankDO::getSupplierId, supplierId));
    }
 
    default long selectCountBySupplierId(Long supplierId) {
        return selectCount(SrmSupplierBankDO::getSupplierId, supplierId);
    }
 
}