关键代码:

 
             <if test="startTime != null and startTime.trim() != ''">
                <![CDATA[   and DATE_FORMAT(yx_steward_info.entry_time, '%Y-%m-%d') >=  DATE_FORMAT(#{startTime}, '%Y-%m-%d')   ]]>
            </if>
            <if test="endTime != null and endTime.trim() != ''">
                <![CDATA[  and DATE_FORMAT(yx_steward_info.entry_time, '%Y-%m-%d') <= DATE_FORMAT(#{endTime}, '%Y-%m-%d')    ]]>
            </if>

 https://www.w3school.com.cn/sql/func_date_format.asp

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-01-31
  • 2022-03-05
  • 2022-02-13
  • 2021-09-04
  • 2021-11-10
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案