ServiceCompanyFilesMapper.xml
754 Bytes
<?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.subsidy.mapper.ServiceCompanyFilesMapper">
<select id="companyFiles" resultType="com.subsidy.model.ServiceCompanyFilesDO">
SELECT
*
FROM
service_company_files t
WHERE
t.delete_date IS NULL
<if test="serviceCompanyId != null and serviceCompanyId != ''">
AND t.service_company_id = #{serviceCompanyId}
</if>
<if test="fileName != null and fileName != ''">
AND t.file_name like concat('%',#{fileName} ,'%')
</if>
and t.file_type = #{fileType}
</select>
</mapper>