会销报名线索列表
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.dto.exhibition.ExhibitionLineBaseDTO;
|
||||
import com.cool.store.dto.exhibition.ExhibitionLineDTO;
|
||||
import com.cool.store.entity.HyPartnerExhibitionDO;
|
||||
import com.cool.store.entity.HyPartnerExhibitionInterviewDO;
|
||||
@@ -120,4 +121,12 @@ public class HyPartnerExhibitionDAO {
|
||||
}
|
||||
return hyPartnerExhibitionMapper.queryPartnerExhibitionInterviewInfo(interviewPlanId, partnerLineId);
|
||||
}
|
||||
|
||||
|
||||
public List<ExhibitionLineBaseDTO> exhibitionLineBaseInfo(String partnerName, Integer exhibitionId) {
|
||||
if (exhibitionId == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyPartnerExhibitionMapper.exhibitionLineBaseInfo(partnerName, exhibitionId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.dto.exhibition.ExhibitionLineBaseDTO;
|
||||
import com.cool.store.dto.exhibition.ExhibitionLineDTO;
|
||||
import com.cool.store.entity.HyPartnerExhibitionDO;
|
||||
import io.swagger.models.auth.In;
|
||||
@@ -89,4 +90,9 @@ public interface HyPartnerExhibitionMapper {
|
||||
* @return
|
||||
*/
|
||||
HyPartnerExhibitionInterviewDO queryPartnerExhibitionInterviewInfo(@Param("interviewPlanId") Long interviewPlanId, @Param("partnerLineId") Long partnerLineId);
|
||||
|
||||
|
||||
List<ExhibitionLineBaseDTO> exhibitionLineBaseInfo(@Param("partnerName") String partnerName, @Param("id") Integer id);
|
||||
|
||||
|
||||
}
|
||||
@@ -412,4 +412,24 @@
|
||||
) t2 ON t1.exhibition_id = t2.id
|
||||
</select>
|
||||
|
||||
|
||||
<select id="exhibitionLineBaseInfo" resultType="com.cool.store.dto.exhibition.ExhibitionLineBaseDTO">
|
||||
select
|
||||
hpe.participation_status as participationStatus,
|
||||
hpui.username as partnerName,
|
||||
hpui.partner_id as partnerId,
|
||||
hpui.mobile as mobile
|
||||
from hy_partner_exhibition hpe
|
||||
left join hy_partner_user_info hpui
|
||||
on hpe.partner_id = hpui.partner_id
|
||||
<where>
|
||||
<if test="partnerName!=null and partnerName!=''">
|
||||
hpui.username like concat("%", #{partnerName}, "%")
|
||||
</if>
|
||||
<if test="id!=null">
|
||||
hpe.exhibition_id = #{id}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user