RenshejuHistoryMapper.xml 959 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.RenshejuHistoryMapper">

   <select id="dailyData" parameterType="string" resultType="com.subsidy.model.RenshejuHistoryDO">
        SELECT
            *
        FROM
            rensheju_history t
        WHERE
            t.delete_date IS NULL
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = DATE_FORMAT( now(), '%Y-%m-%d' )
            AND t.interface_name = #{post}
   </select>

    <select id="dailyDatas" parameterType="string" resultType="com.subsidy.model.RenshejuHistoryDO">
        SELECT
            *
        FROM
            rensheju_history t
        WHERE
            t.delete_date IS NULL
            AND DATE_FORMAT( t.create_date, '%Y-%m-%d' ) = DATE_FORMAT( now(), '%Y-%m-%d' )
            AND t.interface_name = #{post}
   </select>
</mapper>