This commit is contained in:
苏竹红
2024-01-05 17:20:31 +08:00
parent a68a183e5c
commit 6c28b50487
4 changed files with 5 additions and 3 deletions

View File

@@ -84,6 +84,7 @@
<select id="exhibitionLineList" resultType="com.cool.store.dto.exhibition.ExhibitionLineDTO">
select
hpe.exhibition_id as exhibitionId ,
hpe.interview_plan_id as planId,
hpe.partner_id as partnerId,
hpe.partner_line_id as lineId,
hpe.participation_status as participationStatus,

View File

@@ -1035,9 +1035,8 @@
from hy_partner_interview_plan a
left join enterprise_user b on a.interviewer = b.user_id
<where>
and a.deleted = 0
<if test="list!=null and list.size>0">
<foreach collection="list" item="lineId" open="and a.partner_line_id in (" close=")" separator=",">
<foreach collection="list" item="lineId" open="and a.id in (" close=")" separator=",">
#{lineId}
</foreach>
</if>

View File

@@ -30,6 +30,8 @@ public class ExhibitionLineDTO {
private Integer id;
private Long planId;
private Integer expectedVisitorsCount;
private String expectedInformation;

View File

@@ -483,7 +483,7 @@ public class ExhibitionServiceImpl implements ExhibitionService {
if (CollectionUtils.isEmpty(exhibitionLineDTOS)){
return pageInfo;
}
List<Long> lineIds = exhibitionLineDTOS.stream().map(ExhibitionLineDTO::getLineId).collect(Collectors.toList());
List<Long> lineIds = exhibitionLineDTOS.stream().map(ExhibitionLineDTO::getPlanId).collect(Collectors.toList());
//面试官info
List<LineInterviewDTO> lineInterviewList = hyPartnerLineInfoDAO.lineInterviewList(lineIds);
Map<Long, LineInterviewDTO> lineInterviewMap = lineInterviewList.stream().collect(Collectors.toMap(LineInterviewDTO::getLineId, date -> date));