21 lines
730 B
XML
21 lines
730 B
XML
|
<?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.isu.gaswellwatch.dao.DepartmentDao">
|
||
|
|
||
|
<select id="page" resultType="com.isu.gaswellwatch.vo.DepartmentVO">
|
||
|
select u.id, u.name, u.description, u.code, u.create_time, u.update_time
|
||
|
from department u
|
||
|
<where>
|
||
|
<if test="name!=null and name!='' ">
|
||
|
and u.name LIKE CONCAT('%',#{name},'%')
|
||
|
</if>
|
||
|
<if test="code!=null and code!='' ">
|
||
|
and u.code LIKE CONCAT('%',#{code},'%')
|
||
|
</if>
|
||
|
</where>
|
||
|
order by u.create_time desc
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|
||
|
|