exhibitionCode 去掉

This commit is contained in:
苏竹红
2023-12-19 16:36:00 +08:00
parent 4a115ba80f
commit 8050c8bc67
5 changed files with 11 additions and 11 deletions

View File

@@ -91,12 +91,12 @@ public class HyExhibitionDAO {
}
public Map<String,ExhibitionStatisticsDTO> exhibitionStatisticsMap(List<String> list) {
public Map<String,ExhibitionStatisticsDTO> exhibitionStatisticsMap(List<Integer> list) {
if (CollectionUtils.isEmpty(list)) {
return new HashMap<>(4);
}
List<ExhibitionStatisticsDTO> result = hyExhibitionMapper.exhibitionStatistic(list);
return result.stream().collect(Collectors.toMap(ExhibitionStatisticsDTO::getExhibitionCode, date -> date));
return result.stream().collect(Collectors.toMap(ExhibitionStatisticsDTO::getExhibitionId, date -> date));
}
public List<ExhibitionDTO> listByExhibitionGroupIds(List<Integer> exhibitionGroupIdList,Boolean filterCloseExhibition){

View File

@@ -52,7 +52,7 @@ public interface HyExhibitionMapper {
@Param("closedType") Integer closedType);
List<ExhibitionStatisticsDTO> exhibitionStatistic(@Param("list") List<String> exhibitionCodeList);
List<ExhibitionStatisticsDTO> exhibitionStatistic(@Param("list") List<Integer> exhibitionIdList);
List<ExhibitionDTO> listByExhibitionGroupIds(@Param("list") List<Integer> exhibitionGroupIdList, @Param("filterCloseExhibition") Boolean filterCloseExhibition);

View File

@@ -363,18 +363,18 @@
<select id="exhibitionStatistic" resultType="com.cool.store.dto.exhibition.ExhibitionStatisticsDTO">
select
exhibition_code as exhibitionCode,
exhibition_id as exhibitionId,
COALESCE(count(1),0) as signUpCount,
COALESCE(sum( CASE WHEN participation_status = 1 THEN 1 ELSE 0 END ),0) as checkInCount,
COALESCE(sum( CASE WHEN participation_status = 2 THEN 1 ELSE 0 END ),0) as formFillCount,
COALESCE(sum( CASE WHEN participation_status in (3,4,5,6) THEN 1 ELSE 0 END ),0) as interviewCount
from hy_partner_exhibition
<where>
<foreach collection="list" item="code" open="and exhibition_code in (" separator="," close=")">
#{code}
<foreach collection="list" item="id" open="and exhibition_id in (" separator="," close=")">
#{id}
</foreach>
</where>
group by exhibition_code
group by exhibition_id
</select>