Blame view

yudao-module-infra/src/test/resources/codegen/vue3_master_erp/java/InfraStudentContactMapper 1.16 KB
46305340   YunaiV   reactor(infra):增加...
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
30
31
32
33
34
  package cn.iocoder.yudao.module.infra.dal.mysql.demo;
  
  import java.util.*;
  
  import cn.iocoder.yudao.framework.common.pojo.PageResult;
  import cn.iocoder.yudao.framework.common.pojo.PageParam;
  import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
  import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
  import cn.iocoder.yudao.module.infra.dal.dataobject.demo.InfraStudentContactDO;
  import org.apache.ibatis.annotations.Mapper;
  
  /**
   * 学生联系人 Mapper
   *
   * @author 芋道源码
   */
  @Mapper
  public interface InfraStudentContactMapper extends BaseMapperX<InfraStudentContactDO> {
  
      default PageResult<InfraStudentContactDO> selectPage(PageParam reqVO, Long studentId) {
          return selectPage(reqVO, new LambdaQueryWrapperX<InfraStudentContactDO>()
              .eq(InfraStudentContactDO::getStudentId, studentId)
              .orderByDesc(InfraStudentContactDO::getId));
      }
  
      default int deleteByStudentId(Long studentId) {
          return delete(InfraStudentContactDO::getStudentId, studentId);
      }
  
  	default int deleteByStudentIds(List<Long> studentIds) {
  	    return deleteBatch(InfraStudentContactDO::getStudentId, studentIds);
  	}
  
  }