fix: 日期查询条件修复。
This commit is contained in:
@@ -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 <= #{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 >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by issue_date desc
|
order by issue_date desc
|
||||||
|
|||||||
@@ -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 <= #{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 >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by issue_date desc
|
order by issue_date desc
|
||||||
|
|||||||
@@ -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 <= #{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 >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by issue_date desc
|
order by issue_date desc
|
||||||
|
|||||||
Reference in New Issue
Block a user