| | |
| | | <select id="list" resultType="map"> |
| | | select * from sys_dept |
| | | <if test="condition != null and condition != ''"> |
| | | where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%') |
| | | where fullname like CONCAT('%',#{condition},'%') |
| | | </if> |
| | | order by num ASC |
| | | </select> |
| | | <select id="getList" resultType="com.stylefeng.guns.modular.system.model.Dept"> |
| | | select t1.* from sys_dept t1 |
| | | where 1=1 |
| | | <if test="null != req.deptName and '' != req.deptName"> |
| | | and t1.fullname like CONCAT('%', #{req.deptName}, '%') |
| | | </if> |
| | | order by t1.insertTime desc |
| | | |
| | | </select> |
| | | <select id="getList1" resultType="com.stylefeng.guns.modular.system.model.Dept"> |
| | | select t1.* from sys_dept t1 |
| | | where 1=1 |
| | | <if test="null != req.deptName and '' != req.deptName"> |
| | | and t1.fullname like CONCAT('%', #{req.deptName}, '%') |
| | | </if> |
| | | order by t1.insertTime desc |
| | | </select> |
| | | |
| | | </mapper> |