导入重新优化

This commit is contained in:
wuyibo
2023-07-09 22:43:38 +08:00
parent e67f11afb6
commit 3f377e0fef
4 changed files with 270 additions and 223 deletions

View File

@@ -35,10 +35,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="contactsAreaCode" column="contacts_area_code" />
<result property="personalPhoto" column="personal_photo" />
<result property="isFirstLaunch" column="is_first_launch" />
<result property="teamPosition" column="team_position"/>
<result property="height" column="height"/>
<result property="weight" column="weight"/>
</resultMap>
<sql id="selectCompetitionMembersVo">
select id, user_id, role_code, competition_id, competition_team_id, score, penalty, two_points, three_points, breaks, rebound, block, is_deleted, created_by, modified_by, created_time, last_updated_time, status, user_type, competition_of_team_id, competition_nature, real_name, jersey_number, id_type, id_card_no, contacts_tel, contacts, contacts_area_code, personal_photo, is_first_launch from competition_members
select id, user_id, role_code, competition_id, competition_team_id, score, penalty, two_points, three_points, breaks, rebound, block, is_deleted, created_by, modified_by, created_time, last_updated_time, status, user_type, competition_of_team_id, competition_nature, real_name, jersey_number, id_type, id_card_no, contacts_tel, contacts, contacts_area_code, personal_photo, is_first_launch,team_position,height,weight from competition_members
</sql>
<select id="selectCompetitionMembersList" parameterType="CompetitionMembers" resultMap="CompetitionMembersResult">
@@ -73,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null and contactsAreaCode != ''"> and contacts_area_code = #{contactsAreaCode}</if>
<if test="personalPhoto != null and personalPhoto != ''"> and personal_photo = #{personalPhoto}</if>
<if test="isFirstLaunch != null "> and is_first_launch = #{isFirstLaunch}</if>
<if test="teamPosition != null"> and team_position = #{teamPosition}</if>
</where>
</select>
@@ -186,6 +190,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null">contacts_area_code,</if>
<if test="personalPhoto != null">personal_photo,</if>
<if test="isFirstLaunch != null">is_first_launch,</if>
<if test="teamPosition != null">team_position,</if>
<if test="height != null">height,</if>
<if test="weight != null">weight,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
@@ -217,6 +224,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null">#{contactsAreaCode},</if>
<if test="personalPhoto != null">#{personalPhoto},</if>
<if test="isFirstLaunch != null">#{isFirstLaunch},</if>
<if test="teamPosition != null">#{teamPosition},</if>
<if test="height != null">#{height},</if>
<if test="weight != null">#{weight},</if>
</trim>
</insert>
@@ -252,6 +262,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null">contacts_area_code = #{contactsAreaCode},</if>
<if test="personalPhoto != null">personal_photo = #{personalPhoto},</if>
<if test="isFirstLaunch != null">is_first_launch = #{isFirstLaunch},</if>
<if test="teamPosition != null">team_position = #{teamPosition},</if>
<if test="height != null">height = #{height},</if>
<if test="weight != null">weight = #{weight},</if>
</trim>
where id = #{id}
</update>