员工分页查询业务代码开发

This commit is contained in:
zvv
2026-03-26 16:51:00 +08:00
parent edcc7685d1
commit c43c334209
6 changed files with 95 additions and 4 deletions

View File

@@ -1,5 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.sky.mapper.EmployeeMapper">
<select id="pageQuery" resultType="com.sky.entity.Employee">
select * from employee
<where>
<if test="name != null and name != '' ">
and name like concat('%', #{name}, '%')
</if>
</where>
order by create_time desc
</select>
</mapper>