<select id="getDriverAttendanceFine" resultType="java.math.BigDecimal"> <![CDATA[select SUM(driver_fine_fine_amount) from sl_driver_fine where driver_fine_driver_id=10 and driver_fine_fine_date > DATE_FORMAT(#{beginDate},‘%Y-%m-%d %H:%i‘) and driver_fine_fine_date < DATE_FORMAT(#{endDate},‘%Y-%m-%d %H:%i‘) ]]> </select>
CDATA内部的所有内容都会被解析器忽略
原文地址:https://www.cnblogs.com/zhengxq21/p/10250908.html
时间: 2024-09-29 19:32:00