|
|
|
@ -46,10 +46,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="auditStatus" column="audit_status" />
|
|
|
|
|
<result property="heightHide" column="height_hide" />
|
|
|
|
|
<result property="sponsor" column="sponsor" />
|
|
|
|
|
<result property="orderId" column="order_id"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectCompetitionVo">
|
|
|
|
|
select id, main_team_id, main_team_name, guest_team_id, guest_team_name, competition_code, competition_name, designated, competition_type, competition_time, building_id, building_name, competition_address, founder, status, city_code, city_name, max_player, created_time, last_updated_time, created_by, modified_by, is_deleted, longitude, latitude, remark, competition_nature, enroll_begin_time, enroll_end_time, contacts, contacts_area_code, contacts_tel, competition_begin_time, competition_end_time, organizer, undertake, competition_back_img, created_id, audit_status, height_hide, sponsor from competition
|
|
|
|
|
select id, main_team_id, main_team_name,order_id, guest_team_id, guest_team_name, competition_code, competition_name, designated, competition_type, competition_time, building_id, building_name, competition_address, founder, status, city_code, city_name, max_player, created_time, last_updated_time, created_by, modified_by, is_deleted, longitude, latitude, remark, competition_nature, enroll_begin_time, enroll_end_time, contacts, contacts_area_code, contacts_tel, competition_begin_time, competition_end_time, organizer, undertake, competition_back_img, created_id, audit_status, height_hide, sponsor from competition
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectCompetitionList" parameterType="Competition" resultMap="CompetitionResult">
|
|
|
|
@ -308,6 +309,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="auditStatus != null">audit_status,</if>
|
|
|
|
|
<if test="heightHide != null">height_hide,</if>
|
|
|
|
|
<if test="sponsor != null">sponsor,</if>
|
|
|
|
|
<if test="orderId != null">order_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="mainTeamId != null">#{mainTeamId},</if>
|
|
|
|
@ -350,6 +352,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="auditStatus != null">#{auditStatus},</if>
|
|
|
|
|
<if test="heightHide != null">#{heightHide},</if>
|
|
|
|
|
<if test="sponsor != null">#{sponsor},</if>
|
|
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -396,6 +399,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
|
|
|
|
|
<if test="heightHide != null">height_hide = #{heightHide},</if>
|
|
|
|
|
<if test="sponsor != null">sponsor = #{sponsor},</if>
|
|
|
|
|
<if test="orderId != null">order_id = #{orderId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|