fix: 日期查询条件修复。

This commit is contained in:
tianyongbao
2026-02-22 21:54:59 +08:00
parent da4bc5d687
commit ec2894a1ae
3 changed files with 12 additions and 12 deletions

View File

@@ -60,11 +60,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="issueYear != null and issueYear != ''"> and issue_year = #{issueYear}</if> <if test="issueYear != null and issueYear != ''"> and issue_year = #{issueYear}</if>
<if test="series != null and series != ''"> and series = #{series}</if> <if test="series != null and series != ''"> and series = #{series}</if>
<if test="coinageUnit != null and coinageUnit != ''"> and coinage_unit = #{coinageUnit}</if> <if test="coinageUnit != null and coinageUnit != ''"> and coinage_unit = #{coinageUnit}</if>
<if test="endTime!=null and endTime !=''"> <if test="endTime != null">
and #{endTime}>=to_char(issue_date, 'yyyy-MM-dd') and issue_date &lt;= #{endTime}
</if> </if>
<if test="startTime!=null and startTime !=''"> <if test="startTime != null">
and to_char(issue_date, 'yyyy-MM-dd')>=#{startTime} and issue_date &gt;= #{startTime}
</if> </if>
</where> </where>
order by issue_date desc order by issue_date desc

View File

@@ -73,11 +73,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="series != null and series != ''"> and series = #{series}</if> <if test="series != null and series != ''"> and series = #{series}</if>
<if test="blockType != null and blockType != ''"> and block_type = #{blockType}</if> <if test="blockType != null and blockType != ''"> and block_type = #{blockType}</if>
<if test="shape != null and shape != ''"> and shape = #{shape}</if> <if test="shape != null and shape != ''"> and shape = #{shape}</if>
<if test="endTime!=null and endTime !=''"> <if test="endTime != null">
and #{endTime}>=to_char(issue_date, 'yyyy-MM-dd') and issue_date &lt;= #{endTime}
</if> </if>
<if test="startTime!=null and startTime !=''"> <if test="startTime != null">
and to_char(issue_date, 'yyyy-MM-dd')>=#{startTime} and issue_date &gt;= #{startTime}
</if> </if>
</where> </where>
order by issue_date desc order by issue_date desc

View File

@@ -69,11 +69,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="blockType != null and blockType != ''"> and block_type = #{blockType}</if> <if test="blockType != null and blockType != ''"> and block_type = #{blockType}</if>
<if test="series != null and series != ''"> and series = #{series}</if> <if test="series != null and series != ''"> and series = #{series}</if>
<if test="shape != null and shape != ''"> and shape = #{shape}</if> <if test="shape != null and shape != ''"> and shape = #{shape}</if>
<if test="endTime!=null and endTime !=''"> <if test="endTime != null">
and #{endTime}>=to_char(issue_date, 'yyyy-MM-dd') and issue_date &lt;= #{endTime}
</if> </if>
<if test="startTime!=null and startTime !=''"> <if test="startTime != null">
and to_char(issue_date, 'yyyy-MM-dd')>=#{startTime} and issue_date &gt;= #{startTime}
</if> </if>
</where> </where>
order by issue_date desc order by issue_date desc