问题描述 解决 <select id="selectStockWarning" resultType="java.lang.Integer"> select COUNT(id) from mall_stock where deleted = 0 and <![CDATA[`number` <= `warning`]]> </select> 将表达式放在 <![CDATA[表达式]]>中