@@ -31,9 +31,10 @@
on
p.region_id = r.id
where
- true
- and
pclr.mt_company_id = #{mtCompanyId}
+ <if test = "endTimeDateStr != null and endTimeDateStr != ''">
+ and p.create_date <![CDATA[ <= ]]> #{endTimeDateStr}
+ </if>
</select>
</mapper>