diff --git a/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeBanknoteMapper.xml b/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeBanknoteMapper.xml index f6eb2e9..5466e1f 100644 --- a/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeBanknoteMapper.xml +++ b/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeBanknoteMapper.xml @@ -60,11 +60,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and issue_year = #{issueYear} and series = #{series} and coinage_unit = #{coinageUnit} - - and #{endTime}>=to_char(issue_date, 'yyyy-MM-dd') + + and issue_date <= #{endTime} - - and to_char(issue_date, 'yyyy-MM-dd')>=#{startTime} + + and issue_date >= #{startTime} order by issue_date desc diff --git a/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeCoinMapper.xml b/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeCoinMapper.xml index 3415669..84a4524 100644 --- a/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeCoinMapper.xml +++ b/intc-modules/intc-collect/src/main/resources/mapper/collect/CommemorativeCoinMapper.xml @@ -73,11 +73,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and series = #{series} and block_type = #{blockType} and shape = #{shape} - - and #{endTime}>=to_char(issue_date, 'yyyy-MM-dd') + + and issue_date <= #{endTime} - - and to_char(issue_date, 'yyyy-MM-dd')>=#{startTime} + + and issue_date >= #{startTime} order by issue_date desc diff --git a/intc-modules/intc-collect/src/main/resources/mapper/collect/PreciousMetalCoinMapper.xml b/intc-modules/intc-collect/src/main/resources/mapper/collect/PreciousMetalCoinMapper.xml index adad5d3..8349e8a 100644 --- a/intc-modules/intc-collect/src/main/resources/mapper/collect/PreciousMetalCoinMapper.xml +++ b/intc-modules/intc-collect/src/main/resources/mapper/collect/PreciousMetalCoinMapper.xml @@ -69,11 +69,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and block_type = #{blockType} and series = #{series} and shape = #{shape} - - and #{endTime}>=to_char(issue_date, 'yyyy-MM-dd') + + and issue_date <= #{endTime} - - and to_char(issue_date, 'yyyy-MM-dd')>=#{startTime} + + and issue_date >= #{startTime} order by issue_date desc