|
@@ -60,8 +60,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCompetitionById" parameterType="Integer" resultMap="CompetitionResult">
|
|
|
- <include refid="selectCompetitionVo"/>
|
|
|
- where id = #{id}
|
|
|
+ select a.id, a.competition_title, a.competition_type, a.person_max, a.team_max,
|
|
|
+ bs.name as competition_place, a.apply_start_time, a.apply_end_time, a.apply_before_time,
|
|
|
+ a.competition_maximum, a.competition_expense, a.viewing_ticket,
|
|
|
+ a.competition_details, a.registration_notes, a.competition_state,
|
|
|
+ a.create_time, a.create_by, a.create_name, a.update_time, a.update_by, a.update_name, a.publish_time, a.publish_by, a.publish_name, a.competition_img
|
|
|
+ from beilv_competition a
|
|
|
+ left join beilv_site bs on a.competition_place = bs.id
|
|
|
+ where a.id = #{id}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertCompetition" parameterType="Competition" useGeneratedKeys="true" keyProperty="id">
|