当前项目中用到哪个项目资源,那么当前项目就依赖要用到资源的项目(直接依赖和间接依赖)
https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md
public PageInfo<Resource> findAllResourceByPage(ResourceVO resourceVO) {
PageHelper.startPage(resourceVO.getCurrentPage(), resourceVO.getPageSize());
List<Resource> resourceList = resourceMapper.findAllResourceByPage(resourceVO);
PageInfo<Resource> pageInfo = new PageInfo<>(resourceList);
return pageInfo;
}
<select id="findCourseByCondition" resultType="org.example.domain.Course"
parameterType="org.example.domain.CourseVO">
select * from course
<where>
<if test="courseName != null and courseName !=''">
and course_name like concat('%', #{courseName},'%')
</if>
<!-- 加 "or status == 0" 解决传入为0时,当作'' -->
<!-- <if test="status != null and status !='' or status == 0">-->
<if test="status != null">
and status = #{status, jdbcType=INTEGER}
</if>
<if test="true">
and is_del != 1
</if>
</where>
</select>
Promise函数内部获取数据的问题
https://blog.csdn.net/qq_43842093/article/details/121728251
1. 参数是映射到VO对象,向dao层传VO对象
2. 直接接收参数,dao层使用@Param映射到对应字段
https://blog.csdn.net/xiaoyaotan_111/article/details/76422923