From 1f9bb7708751a9364ae69d9de5a95c1643ccb3da Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 14 Apr 2021 21:29:58 +0800
Subject: [PATCH] 为导出报表提供实时警情,违禁品,包裹,健康码,体温导出数据接口
---
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/mapper/healthcodeMapper.xml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/mapper/healthcodeMapper.xml b/blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/mapper/healthcodeMapper.xml
index 5bbaea7..35ff49c 100644
--- a/blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/mapper/healthcodeMapper.xml
+++ b/blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/mapper/healthcodeMapper.xml
@@ -228,7 +228,7 @@
</select>
<!--导出健康码数据表格-->
- <select id="exportHealthcode" resultType="org.springblade.jfpt.healthcode.vo.HealthcodeExcel">
+ <select id="exportHealthcode" resultType="org.springblade.common.entity.HealthcodeExcel">
SELECT * FROM healthcode
where 1=1
<if test="healthcodeVO.status==0">
@@ -240,7 +240,7 @@
<if test="healthcodeVO.status==2">
and date_format(dtime,'%Y%m') = date_format(now(),'%Y%m')
</if>
- <if test="healthcodeVO.type!=null">
+ <if test="healthcodeVO.type!=null and healthcodeVO.type!='undefined' ">
and type=#{healthcodeVO.type}
</if>
<if test="healthcodeVO.province!=null">
@@ -252,10 +252,11 @@
<if test="healthcodeVO.district!=null">
and district like concat('%',#{healthcodeVO.district},'%')
</if>
- <if test="healthcodeVO.begTime!=null and healthcodeVO.begTime!='' and healthcodeVO.endTime!=null and healthcodeVO.endTime!='' ">
+ <if test="healthcodeVO.begTime!=null and healthcodeVO.begTime!='' and healthcodeVO.begTime!='undefined' and healthcodeVO.endTime!='undefined'
+ and healthcodeVO.endTime!=null and healthcodeVO.endTime!='' ">
and date(dtime) between #{healthcodeVO.begTime} and #{healthcodeVO.endTime}
</if>
- <if test="healthcodeVO.timeDesc!=null and healthcodeVO.timeDesc!=''">
+ <if test="healthcodeVO.timeDesc!=null and healthcodeVO.timeDesc!='' and healthcodeVO.timeDesc!='undefined' ">
<if test="healthcodeVO.timeDesc=='0-2'">
and hour(dtime)>=0 and hour(dtime) <2
</if>
--
Gitblit v1.9.3