fix 门店状态已完成

This commit is contained in:
shuo.wang
2025-02-13 19:47:20 +08:00
parent 7501e0e5f3
commit 7377435498
8 changed files with 29 additions and 7 deletions

View File

@@ -258,7 +258,12 @@ public class ShopStageInfoDAO {
}
return shopStageInfoMapper.getScheduleList(shopIdList);
}
public ScheduleDTO getScheduleAll(Long shopId) {
if (Objects.isNull(shopId)) {
return null;
}
return shopStageInfoMapper.getScheduleAll(shopId);
}
public List<ScheduleDTO> getPlatformBuildList(List<Long> shopIdList) {
if (CollectionUtils.isEmpty(shopIdList)) {
return Collections.emptyList();

View File

@@ -111,6 +111,9 @@ public interface ShopStageInfoMapper extends Mapper<ShopStageInfoDO> {
List<ShopStageInfoDO> getShopIdListByStageStatus(@Param("shopSubStageStatus") Integer shopSubStageStatus);
List<ScheduleDTO> getScheduleList(@Param("shopIds") List<Long> shopIds);
ScheduleDTO getScheduleAll(@Param("shopId") Long shopId);
List<ScheduleDTO> getPlatformBuildList(@Param("shopIds") List<Long> shopIds);
List<ShopStageInfoDO> getShopContractActualCompletionTime(@Param("shopIds") List<Long> shopIds);

View File

@@ -398,4 +398,15 @@
and shop_id = #{shopId}
</if>
</select>
<select id="getScheduleAll" resultType="com.cool.store.dto.Preparation.ScheduleDTO">
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
shop_id = #{shopId}
</select>
</mapper>