fix 门店状态已完成

This commit is contained in:
shuo.wang
2025-02-13 20:16:05 +08:00
parent ac01c4009f
commit e76e09b18b

View File

@@ -402,9 +402,9 @@
select
shop_id as shopId,
max(plan_complete_time) as planCompleteTime,
count(1) as totalColumn,
sum(if(is_terminated = 1 , 1, 0)) as completionColumn
from xfsg_shop_stage_info where
count(1)-1 as totalColumn,
sum(if(is_terminated = 1 and shop_sub_stage!=85, 1, 0)) as completionColumn
from xfsg_shop_stage_info where shop_stage = 2 and
shop_id = #{shopId}