Commit d756f982 authored by liming's avatar liming

个人俱乐部详情

parent 532eafe5
......@@ -43,7 +43,7 @@ public interface ClubBusinessMapper {
* @param clubId
* @return
*/
ClubRespDTO getClubInfo(@Param("clubId") Long clubId);
ClubRespDTO getClubInfo(@Param("clubId") Long clubId, @Param("param") Object param);
/**
* 查询俱乐部通知
......
......@@ -236,7 +236,7 @@ public class ClubService {
return null;
}
PlayerClubHomeDTO result = new PlayerClubHomeDTO();
result.setClub(clubBusinessMapper.getClubInfo(clubMember.getClubId()));
result.setClub(clubBusinessMapper.getClubInfo(clubMember.getClubId(), null));
result.setMemberList(clubBusinessMapper.getClubMemberList(clubMember.getClubId()));
result.setNoticeList(clubBusinessMapper.getClubNotice(clubMember.getClubId()));
return result;
......
......@@ -21,8 +21,10 @@
select t1.id,t1.name as club_name,logo as club_logo,
t2.name as province_name,t3.name as city_name,description,
member_number,total_distance,total_climb_distance,total_duration,
total_calorie,DATE_FORMAT(club_create_time,'%Y-%m-%d') as club_create_time,t1.create_time,
if(t1.city = #{param.cityId},0,1) as base_order
total_calorie,DATE_FORMAT(club_create_time,'%Y-%m-%d') as club_create_time,t1.create_time
<if test="param != null">
,if(t1.city = #{param.cityId},0,1) as base_order
</if>
from club t1
left join base_area t2 on t1.province = t2.id
left join base_area t3 on t1.city = t3.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment