给被自动关闭会销关联线索发通知
This commit is contained in:
@@ -150,4 +150,11 @@ public class HyPartnerExhibitionDAO {
|
||||
}
|
||||
return hyPartnerExhibitionMapper.getCloseExhibitionLineIds(exhibitionIds);
|
||||
}
|
||||
|
||||
public List<ExhibitionLineDTO> getLineByExhibitionIds(List<Integer> exhibitionIds) {
|
||||
if (CollectionUtils.isEmpty(exhibitionIds)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyPartnerExhibitionMapper.getLineByExhibitionIds(exhibitionIds);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,4 +109,11 @@ public interface HyPartnerExhibitionMapper {
|
||||
* @return
|
||||
*/
|
||||
List<Long> getCloseExhibitionLineIds(@Param("exhibitionIds") List<Integer> exhibitionIds);
|
||||
|
||||
/**
|
||||
* 根据展会 id 列表获取会销线索信息
|
||||
* @param exhibitionIds
|
||||
* @return
|
||||
*/
|
||||
List<ExhibitionLineDTO> getLineByExhibitionIds(List<Integer> exhibitionIds);
|
||||
}
|
||||
@@ -150,6 +150,7 @@
|
||||
pu.mobile as mobile
|
||||
from hy_partner_exhibition hpe left join hy_partner_user_info pu on hpe.partner_id = pu.partner_id
|
||||
where hpe.participation_status != 7
|
||||
and hpe.deleted = 0
|
||||
<if test="exhibitionId != null and exhibitionId!=''">
|
||||
and hpe.exhibition_id = #{exhibitionId}
|
||||
</if>
|
||||
@@ -472,4 +473,21 @@
|
||||
)
|
||||
AND participation_status != 7
|
||||
</select>
|
||||
|
||||
<select id="getLineByExhibitionIds" resultType="com.cool.store.dto.exhibition.ExhibitionLineDTO">
|
||||
select distinct
|
||||
hpe.partner_id as partnerId,
|
||||
hpe.partner_line_id as lineId,
|
||||
hpe.exhibition_id as exhibitionId,
|
||||
pu.username as partnerName,
|
||||
pu.mobile as mobile
|
||||
from hy_partner_exhibition hpe left join hy_partner_user_info pu on hpe.partner_id = pu.partner_id
|
||||
where hpe.participation_status != 7
|
||||
and hpe.deleted = 0
|
||||
and hpe.exhibition_id in (
|
||||
<foreach collection="exhibitionIds" item="exhibitionId" separator=",">
|
||||
#{exhibitionId}
|
||||
</foreach>
|
||||
)
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user