In sql, it is inevitable that you will encounter a situation of relatively large size. Because there will be problems in identifying the upper and lower case of the xml file, you need to escape or identify at this time. If you escape, it will not look good. At this time, you can use: <![CDATA[< =]]>
SELECT
a.id AS id,b.id AS gpid
FROM online_confirm a
LEFT JOIN contract b ON (a.electric_user_name = b.cus_name)
AND (
(a.retail_start_time <![CDATA[<=]]> #{onlineConfirmContractDTO.startTime}