From f14c50cb0036d3ddd655ce4e34732ba396a836c4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:42:03 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/common/CarInoutDetailServiceDaoImplMapper.xml | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/common/CarInoutDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/CarInoutDetailServiceDaoImplMapper.xml
index 34dad8f..edfc5d3 100755
--- a/java110-db/src/main/resources/mapper/common/CarInoutDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/CarInoutDetailServiceDaoImplMapper.xml
@@ -94,6 +94,9 @@
carNum,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId
from car_inout_detail t
where 1 =1
+ <if test="state !=null and state != ''">
+ and t.state = #{state}
+ </if>
<if test="inoutId !=null and inoutId != ''">
and t.inout_id= #{inoutId}
</if>
--
Gitblit v1.8.0