数据库模糊查询concat 使用
<select id="find4" resultType="project.Dao.Department">
select * from department
where id like concat('%',#{id},'%') and departmentName like concat('%',#{name},'%')
order by ${group} desc
</select>
mybatis #{name}占位符替换 ${group} 为原值替换