You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
771 B
XML
19 lines
771 B
XML
1 year ago
|
<?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.shibofu.spring.db3.dao.CostListDao">
|
||
|
|
||
|
<select id="getConut" resultType="java.lang.Integer">
|
||
|
select count(*)
|
||
|
from public.bajsdpdf
|
||
|
where fnewdate between CURRENT_DATE - INTERVAL '6 days' AND CURRENT_DATE
|
||
|
</select>
|
||
|
<select id="getCostList" resultType="com.shibofu.spring.vo.CostListVo">
|
||
|
SELECT fpatid, ftimes, fpdf, fjzh, ffirstdate, fnewdate, filepath
|
||
|
FROM public.bajsdpdf
|
||
|
where fnewdate between CURRENT_DATE - INTERVAL '6 days' AND CURRENT_DATE
|
||
|
order by fnewdate DESC
|
||
|
LIMIT 50 OFFSET #{offset}
|
||
|
</select>
|
||
|
</mapper>
|