fix 门店状态已完成
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user