|
@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="publishTime" column="publish_time" />
|
|
|
<result property="publishBy" column="publish_by" />
|
|
|
<result property="publishName" column="publish_name" />
|
|
|
+ <result property="competitionImg" column="competition_img" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCompetitionVo">
|
|
@@ -36,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
competition_place, apply_start_time, apply_end_time, apply_before_time,
|
|
|
competition_maximum, competition_expense, viewing_ticket,
|
|
|
competition_details, registration_notes, competition_state,
|
|
|
- create_time, create_by, create_name, update_time, update_by, update_name, publish_time, publish_by, publish_name
|
|
|
+ create_time, create_by, create_name, update_time, update_by, update_name, publish_time, publish_by, publish_name,competition_img
|
|
|
from beilv_competition
|
|
|
</sql>
|
|
|
|
|
@@ -83,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createName != null">create_name,</if>
|
|
|
<if test="updateName != null">update_name,</if>
|
|
|
<if test="publishName != null">publish_name,</if>
|
|
|
+ <if test="competitionImg != null">competition_img,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="competitionTitle != null">#{competitionTitle},</if>
|
|
@@ -108,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createName != null">#{createName},</if>
|
|
|
<if test="updateName != null">#{updateName},</if>
|
|
|
<if test="publishName != null">#{publishName},</if>
|
|
|
+ <if test="competitionImg != null">#{competitionImg},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -131,6 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateName != null">update_name = #{updateName},</if>
|
|
|
+ <if test="competitionImg != null">competition_img = #{competitionImg},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -172,10 +176,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND competition_id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <update id="updateBookARace" parameterType="int">
|
|
|
+ <update id="updateBookARace" parameterType="Stadium">
|
|
|
update beilv_book_a_race
|
|
|
- set payment_status = 'payment_status_verification'
|
|
|
- where competition_id = #{id} and payment_status = 'payment_status_have_paid'
|
|
|
+ set payment_status = #{paymentStatus},
|
|
|
+ verification_time = #{verificationTime}
|
|
|
+ where
|
|
|
+ competition_id = #{competitionId}
|
|
|
+ and
|
|
|
+ payment_status = 'payment_status_have_paid'
|
|
|
</update>
|
|
|
|
|
|
<select id="getCompetitionInfo" parameterType="string" resultMap="CompetitionResult">
|