<?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.sckw.company.mapper.KwBusinessDeptMapper">
    <select id="findList" resultType="com.sckw.company.entity.res.KwBusinessDeptListRes" parameterType="com.sckw.company.entity.req.KwBusinessDeptListReq">
        select id, `name` from kw_business_dept
        <where>
            del_flag = 0
            <if test="params.name != null and params.name != ''">
                and `name` like concat('%',#{params.name,jdbcType=VARCHAR},'%')
            </if>
        </where>
    </select>

</mapper>