File was renamed from ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentDao.java |
| | |
| | | package com.ycl.dao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import com.ycl.entity.NewsDepartment;
|
| | |
|
| | | /**
|
| | | * 部门(机构)表(NewsDepartment)表数据库访问层
|
| | | *
|
| | | * @author makejava
|
| | | * @since 2022-11-17 11:38:27
|
| | | */
|
| | | public interface NewsDepartmentDao extends BaseMapper<NewsDepartment> {
|
| | |
|
| | | /**
|
| | | * 批量新增数据(MyBatis原生foreach方法)
|
| | | *
|
| | | * @param entities List<NewsDepartment> 实例对象列表
|
| | | * @return 影响行数
|
| | | */
|
| | | int insertBatch(@Param("entities") List<NewsDepartment> entities);
|
| | |
|
| | | /**
|
| | | * 批量新增或按主键更新数据(MyBatis原生foreach方法)
|
| | | *
|
| | | * @param entities List<NewsDepartment> 实例对象列表
|
| | | * @return 影响行数
|
| | | * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
|
| | | */
|
| | | int insertOrUpdateBatch(@Param("entities") List<NewsDepartment> entities);
|
| | |
|
| | | }
|
| | |
|
| | | package com.ycl.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ycl.entity.NewsDepartment; |
| | | |
| | | /** |
| | | * 部门(机构)表(NewsDepartment)表数据库访问层 |
| | | * |
| | | * @author makejava |
| | | * @since 2022-11-17 11:38:27 |
| | | */ |
| | | public interface NewsDepartmentDao extends BaseMapper<NewsDepartment> { |
| | | |
| | | /** |
| | | * 批量新增数据(MyBatis原生foreach方法) |
| | | * |
| | | * @param entities List<NewsDepartment> 实例对象列表 |
| | | * @return 影响行数 |
| | | */ |
| | | int insertBatch(@Param("entities") List<NewsDepartment> entities); |
| | | |
| | | /** |
| | | * 批量新增或按主键更新数据(MyBatis原生foreach方法) |
| | | * |
| | | * @param entities List<NewsDepartment> 实例对象列表 |
| | | * @return 影响行数 |
| | | * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 |
| | | */ |
| | | int insertOrUpdateBatch(@Param("entities") List<NewsDepartment> entities); |
| | | |
| | | } |
| | | |