(select DICT_DATA_VALUE from systemctl_dictionarie_value where IS_DELETED=0 and AGENCY_CODE='JXIOP' and DICT_CODE='COMPANY_LEVEL' and privilege_company.`LEVEL`=systemctl_dictionarie_value.DICT_DATA_KEY )levelName,
(select DICT_DATA_VALUE from systemctl_dictionarie_value where IS_DELETED=0 and AGENCY_CODE='JXIOP' and DICT_CODE='COMPANY_TYPE' and privilege_company.COMPANY_TYPE=systemctl_dictionarie_value.DICT_DATA_KEY) companyTypeName
from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<iftest="dto.companyName!=null">
and privilege_company.COMPANY_NAME like concat(concat("%",#{dto.companyName}),"%")
</if>
<iftest="dto.level!=null">
and privilege_company.LEVEL=#{dto.level}
</if>
<iftest="dto.companyType!=null">
and privilege_company.COMPANY_TYPE=#{dto.companyType}
</if>
<iftest="dto.orgCode!=null">
and privilege_company.ORG_CODE like concat(concat(#{dto.orgCode}),"%")