From 33a1f0813d79e296a3fcf2b5345a58aa01842590 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Tue, 21 Jan 2025 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mappers/business/backstage/HomeIndexMapper.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/mappers/business/backstage/HomeIndexMapper.xml b/src/main/resources/mappers/business/backstage/HomeIndexMapper.xml index 4cf1b95..4b68fed 100644 --- a/src/main/resources/mappers/business/backstage/HomeIndexMapper.xml +++ b/src/main/resources/mappers/business/backstage/HomeIndexMapper.xml @@ -314,6 +314,15 @@ LEFT JOIN car_supplier cs on cs.id=cpas.sup_id LEFT JOIN car_slt_plan csp on csp.plan_id=cpa.id where cpo.`status`=1 + + AND DATE_FORMAT(cpo.out_time,'%Y-%m') = #{yearMonth} + + + AND DATE_FORMAT(cpo.out_time,'%Y') = #{year} + + + AND DATE_FORMAT(cpo.out_time,'%m') = #{month} + and cpod.plan_type=#{type}