From 0fb820c8a1dc253477f24dd6a39fbd1832c77c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Sat, 15 Jun 2024 21:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=8D=E5=8A=A1=E7=96=97?= =?UTF-8?q?=E7=A8=8B=E8=AF=A6=E7=BB=86=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/bl/order/UserPackageDetailDao.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/mapper/bl/order/UserPackageDetailDao.xml b/src/main/resources/mapper/bl/order/UserPackageDetailDao.xml index 3a372f1..04ae63c 100644 --- a/src/main/resources/mapper/bl/order/UserPackageDetailDao.xml +++ b/src/main/resources/mapper/bl/order/UserPackageDetailDao.xml @@ -56,7 +56,7 @@ sum(case a.status when 1 then 1 else 0 end) as usedQuantity, sum(case a.status when 0 then 1 else 0 end) as unUsedQuantity, concat(round(count(massage_type_id)*avg(interval_days)),'天一疗程,每隔',round(avg(interval_days)),'天一次,共',round(count(massage_type_id)),'次') as interval_days_str, - (select max(end_times) from orders o where a.massage_type_id = a.massage_type_id and b.user_id = o.user_id and b.id = o.user_package_id) as max_time + (select max(end_times) from orders o where a.massage_type_id = o.massage_type_id and b.id = o.user_package_id) as max_time from bl_user_package_detail a inner join bl_user_package b on a.main_id = b.id where a.main_id = #{mainId}