时间:2021-07-01 10:21:17 帮助过:165人阅读
<select id="selectInParamRecord" parameterType="map" resultType="com.thinkgem.jeesite.modules.ada.entity.ParamRecordDto"> SELECT serial_num AS serialNum, creat_time AS createDate FROM t_gl_adapter_param_input WHERE service_type = ‘${insertIn.serviceType}‘ <if test="insertIn.createDate != null and insertIn.createDate != ‘‘"> <![CDATA[ and DATE_FORMAT(creat_time, ‘%Y-%m-%d‘)>=DATE_FORMAT(#{insertIn.createDate}, ‘%Y-%m-%d‘) ]]> </if> </select>
mysql mybatis 日期查询
标签:res type highlight ati sele for serial module _for