<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://www.72crm.com/mybatis-3.5.3-mapper.dtd">
<mapper namespace="com.kakarote.crm.mapper.CrmBusinessTypeMapper">

    <select id="queryBusinessStatusOptions" resultType="com.kakarote.crm.entity.PO.CrmBusinessType">
        select * from wk_crm_business_type where status = 1
        <if test="isAdmin == false">
            and (find_in_set(#{deptId},dept_ids) or dept_ids = '' or dept_ids is null)
        </if>
    </select>
</mapper>
