From d418ec2a2023b22d6f7ca165e2e053a8ac1f2b68 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 14 八月 2023 09:51:14 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/XlsReportMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/XlsReportMapper.xml b/src/main/resources/mapper/XlsReportMapper.xml index d1468c8..8f8af5d 100644 --- a/src/main/resources/mapper/XlsReportMapper.xml +++ b/src/main/resources/mapper/XlsReportMapper.xml @@ -1,6 +1,23 @@ <?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.yssh.mapper.XlsReportMapper"> + <select id="selectReportCount" resultType="java.lang.Integer"> + select count(*) + from xls_report + <where> + 1 = 1 + <if test="type != null"> + and type = #{type} + </if> + <if test="start != null"> + and create_time >= #{start} + </if> + <if test="end != null"> + and create_time <= #{end} + </if> + </where> + </select> + <!-- 鍒嗛〉鏌ヨ鎶ュ憡 --> <select id="selectReportByPage" resultType="com.yssh.entity.xls.XlsReport"> select * -- Gitblit v1.9.3