mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 19:51:56 +08:00
新增页面1
This commit is contained in:
@@ -0,0 +1,196 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionMembersMapper">
|
||||
|
||||
<resultMap type="CompetitionMembers" id="CompetitionMembersResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="roleCode" column="role_code" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionTeamId" column="competition_team_id" />
|
||||
<result property="score" column="score" />
|
||||
<result property="penalty" column="penalty" />
|
||||
<result property="twoPoints" column="two_points" />
|
||||
<result property="threePoints" column="three_points" />
|
||||
<result property="breaks" column="breaks" />
|
||||
<result property="rebound" column="rebound" />
|
||||
<result property="block" column="block" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="competitionOfTeamId" column="competition_of_team_id" />
|
||||
<result property="competitionNature" column="competition_nature" />
|
||||
<result property="realName" column="real_name" />
|
||||
<result property="jerseyNumber" column="jersey_number" />
|
||||
<result property="idType" column="id_type" />
|
||||
<result property="idCardNo" column="id_card_no" />
|
||||
<result property="contactsTel" column="contacts_tel" />
|
||||
<result property="contacts" column="contacts" />
|
||||
<result property="contactsAreaCode" column="contacts_area_code" />
|
||||
<result property="personalPhoto" column="personal_photo" />
|
||||
<result property="isFirstLaunch" column="is_first_launch" />
|
||||
</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
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionMembersList" parameterType="CompetitionMembers" resultMap="CompetitionMembersResult">
|
||||
<include refid="selectCompetitionMembersVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="roleCode != null and roleCode != ''"> and role_code = #{roleCode}</if>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionTeamId != null "> and competition_team_id = #{competitionTeamId}</if>
|
||||
<if test="score != null "> and score = #{score}</if>
|
||||
<if test="penalty != null "> and penalty = #{penalty}</if>
|
||||
<if test="twoPoints != null "> and two_points = #{twoPoints}</if>
|
||||
<if test="threePoints != null "> and three_points = #{threePoints}</if>
|
||||
<if test="breaks != null "> and breaks = #{breaks}</if>
|
||||
<if test="rebound != null "> and rebound = #{rebound}</if>
|
||||
<if test="block != null "> and block = #{block}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="userType != null "> and user_type = #{userType}</if>
|
||||
<if test="competitionOfTeamId != null "> and competition_of_team_id = #{competitionOfTeamId}</if>
|
||||
<if test="competitionNature != null "> and competition_nature = #{competitionNature}</if>
|
||||
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="jerseyNumber != null and jerseyNumber != ''"> and jersey_number = #{jerseyNumber}</if>
|
||||
<if test="idType != null and idType != ''"> and id_type = #{idType}</if>
|
||||
<if test="idCardNo != null and idCardNo != ''"> and id_card_no = #{idCardNo}</if>
|
||||
<if test="contactsTel != null and contactsTel != ''"> and contacts_tel = #{contactsTel}</if>
|
||||
<if test="contacts != null and contacts != ''"> and contacts = #{contacts}</if>
|
||||
<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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionMembersById" parameterType="Long" resultMap="CompetitionMembersResult">
|
||||
<include refid="selectCompetitionMembersVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionMembers" parameterType="CompetitionMembers" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_members
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="roleCode != null">role_code,</if>
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionTeamId != null">competition_team_id,</if>
|
||||
<if test="score != null">score,</if>
|
||||
<if test="penalty != null">penalty,</if>
|
||||
<if test="twoPoints != null">two_points,</if>
|
||||
<if test="threePoints != null">three_points,</if>
|
||||
<if test="breaks != null">breaks,</if>
|
||||
<if test="rebound != null">rebound,</if>
|
||||
<if test="block != null">block,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="userType != null">user_type,</if>
|
||||
<if test="competitionOfTeamId != null">competition_of_team_id,</if>
|
||||
<if test="competitionNature != null">competition_nature,</if>
|
||||
<if test="realName != null">real_name,</if>
|
||||
<if test="jerseyNumber != null">jersey_number,</if>
|
||||
<if test="idType != null">id_type,</if>
|
||||
<if test="idCardNo != null">id_card_no,</if>
|
||||
<if test="contactsTel != null">contacts_tel,</if>
|
||||
<if test="contacts != null">contacts,</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code,</if>
|
||||
<if test="personalPhoto != null">personal_photo,</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="roleCode != null">#{roleCode},</if>
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionTeamId != null">#{competitionTeamId},</if>
|
||||
<if test="score != null">#{score},</if>
|
||||
<if test="penalty != null">#{penalty},</if>
|
||||
<if test="twoPoints != null">#{twoPoints},</if>
|
||||
<if test="threePoints != null">#{threePoints},</if>
|
||||
<if test="breaks != null">#{breaks},</if>
|
||||
<if test="rebound != null">#{rebound},</if>
|
||||
<if test="block != null">#{block},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="userType != null">#{userType},</if>
|
||||
<if test="competitionOfTeamId != null">#{competitionOfTeamId},</if>
|
||||
<if test="competitionNature != null">#{competitionNature},</if>
|
||||
<if test="realName != null">#{realName},</if>
|
||||
<if test="jerseyNumber != null">#{jerseyNumber},</if>
|
||||
<if test="idType != null">#{idType},</if>
|
||||
<if test="idCardNo != null">#{idCardNo},</if>
|
||||
<if test="contactsTel != null">#{contactsTel},</if>
|
||||
<if test="contacts != null">#{contacts},</if>
|
||||
<if test="contactsAreaCode != null">#{contactsAreaCode},</if>
|
||||
<if test="personalPhoto != null">#{personalPhoto},</if>
|
||||
<if test="isFirstLaunch != null">#{isFirstLaunch},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionMembers" parameterType="CompetitionMembers">
|
||||
update competition_members
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="roleCode != null">role_code = #{roleCode},</if>
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionTeamId != null">competition_team_id = #{competitionTeamId},</if>
|
||||
<if test="score != null">score = #{score},</if>
|
||||
<if test="penalty != null">penalty = #{penalty},</if>
|
||||
<if test="twoPoints != null">two_points = #{twoPoints},</if>
|
||||
<if test="threePoints != null">three_points = #{threePoints},</if>
|
||||
<if test="breaks != null">breaks = #{breaks},</if>
|
||||
<if test="rebound != null">rebound = #{rebound},</if>
|
||||
<if test="block != null">block = #{block},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="userType != null">user_type = #{userType},</if>
|
||||
<if test="competitionOfTeamId != null">competition_of_team_id = #{competitionOfTeamId},</if>
|
||||
<if test="competitionNature != null">competition_nature = #{competitionNature},</if>
|
||||
<if test="realName != null">real_name = #{realName},</if>
|
||||
<if test="jerseyNumber != null">jersey_number = #{jerseyNumber},</if>
|
||||
<if test="idType != null">id_type = #{idType},</if>
|
||||
<if test="idCardNo != null">id_card_no = #{idCardNo},</if>
|
||||
<if test="contactsTel != null">contacts_tel = #{contactsTel},</if>
|
||||
<if test="contacts != null">contacts = #{contacts},</if>
|
||||
<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>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionMembersById" parameterType="Long">
|
||||
delete from competition_members where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionMembersByIds" parameterType="String">
|
||||
delete from competition_members where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionMembersScoreMapper">
|
||||
|
||||
<resultMap type="CompetitionMembersScore" id="CompetitionMembersScoreResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionVsId" column="competition_vs_id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamName" column="team_name" />
|
||||
<result property="nodeNum" column="node_num" />
|
||||
<result property="teamUserId" column="team_user_id" />
|
||||
<result property="jerseyNumber" column="jersey_number" />
|
||||
<result property="totalScore" column="total_score" />
|
||||
<result property="twoPoints" column="two_points" />
|
||||
<result property="threePoints" column="three_points" />
|
||||
<result property="penalty" column="penalty" />
|
||||
<result property="backboard" column="backboard" />
|
||||
<result property="frontPlate" column="front_plate" />
|
||||
<result property="backPlate" column="back_plate" />
|
||||
<result property="assists" column="assists" />
|
||||
<result property="snatch" column="snatch" />
|
||||
<result property="block" column="block" />
|
||||
<result property="fault" column="fault" />
|
||||
<result property="breaks" column="breaks" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isFirstLaunch" column="is_first_launch" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionMembersScoreVo">
|
||||
select id, competition_id, competition_vs_id, team_id, team_name, node_num, team_user_id, jersey_number, total_score, two_points, three_points, penalty, backboard, front_plate, back_plate, assists, snatch, block, fault, breaks, created_time, last_updated_time, created_by, modified_by, is_deleted, remark, is_first_launch from competition_members_score
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionMembersScoreList" parameterType="CompetitionMembersScore" resultMap="CompetitionMembersScoreResult">
|
||||
<include refid="selectCompetitionMembersScoreVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionVsId != null "> and competition_vs_id = #{competitionVsId}</if>
|
||||
<if test="teamId != null "> and team_id = #{teamId}</if>
|
||||
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
||||
<if test="nodeNum != null "> and node_num = #{nodeNum}</if>
|
||||
<if test="teamUserId != null "> and team_user_id = #{teamUserId}</if>
|
||||
<if test="jerseyNumber != null and jerseyNumber != ''"> and jersey_number = #{jerseyNumber}</if>
|
||||
<if test="totalScore != null "> and total_score = #{totalScore}</if>
|
||||
<if test="twoPoints != null "> and two_points = #{twoPoints}</if>
|
||||
<if test="threePoints != null "> and three_points = #{threePoints}</if>
|
||||
<if test="penalty != null "> and penalty = #{penalty}</if>
|
||||
<if test="backboard != null "> and backboard = #{backboard}</if>
|
||||
<if test="frontPlate != null "> and front_plate = #{frontPlate}</if>
|
||||
<if test="backPlate != null "> and back_plate = #{backPlate}</if>
|
||||
<if test="assists != null "> and assists = #{assists}</if>
|
||||
<if test="snatch != null "> and snatch = #{snatch}</if>
|
||||
<if test="block != null "> and block = #{block}</if>
|
||||
<if test="fault != null "> and fault = #{fault}</if>
|
||||
<if test="breaks != null "> and breaks = #{breaks}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="isFirstLaunch != null "> and is_first_launch = #{isFirstLaunch}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionMembersScoreById" parameterType="Long" resultMap="CompetitionMembersScoreResult">
|
||||
<include refid="selectCompetitionMembersScoreVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionMembersScore" parameterType="CompetitionMembersScore" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_members_score
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionVsId != null">competition_vs_id,</if>
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="teamName != null">team_name,</if>
|
||||
<if test="nodeNum != null">node_num,</if>
|
||||
<if test="teamUserId != null">team_user_id,</if>
|
||||
<if test="jerseyNumber != null">jersey_number,</if>
|
||||
<if test="totalScore != null">total_score,</if>
|
||||
<if test="twoPoints != null">two_points,</if>
|
||||
<if test="threePoints != null">three_points,</if>
|
||||
<if test="penalty != null">penalty,</if>
|
||||
<if test="backboard != null">backboard,</if>
|
||||
<if test="frontPlate != null">front_plate,</if>
|
||||
<if test="backPlate != null">back_plate,</if>
|
||||
<if test="assists != null">assists,</if>
|
||||
<if test="snatch != null">snatch,</if>
|
||||
<if test="block != null">block,</if>
|
||||
<if test="fault != null">fault,</if>
|
||||
<if test="breaks != null">breaks,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionVsId != null">#{competitionVsId},</if>
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="nodeNum != null">#{nodeNum},</if>
|
||||
<if test="teamUserId != null">#{teamUserId},</if>
|
||||
<if test="jerseyNumber != null">#{jerseyNumber},</if>
|
||||
<if test="totalScore != null">#{totalScore},</if>
|
||||
<if test="twoPoints != null">#{twoPoints},</if>
|
||||
<if test="threePoints != null">#{threePoints},</if>
|
||||
<if test="penalty != null">#{penalty},</if>
|
||||
<if test="backboard != null">#{backboard},</if>
|
||||
<if test="frontPlate != null">#{frontPlate},</if>
|
||||
<if test="backPlate != null">#{backPlate},</if>
|
||||
<if test="assists != null">#{assists},</if>
|
||||
<if test="snatch != null">#{snatch},</if>
|
||||
<if test="block != null">#{block},</if>
|
||||
<if test="fault != null">#{fault},</if>
|
||||
<if test="breaks != null">#{breaks},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isFirstLaunch != null">#{isFirstLaunch},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionMembersScore" parameterType="CompetitionMembersScore">
|
||||
update competition_members_score
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionVsId != null">competition_vs_id = #{competitionVsId},</if>
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="teamName != null">team_name = #{teamName},</if>
|
||||
<if test="nodeNum != null">node_num = #{nodeNum},</if>
|
||||
<if test="teamUserId != null">team_user_id = #{teamUserId},</if>
|
||||
<if test="jerseyNumber != null">jersey_number = #{jerseyNumber},</if>
|
||||
<if test="totalScore != null">total_score = #{totalScore},</if>
|
||||
<if test="twoPoints != null">two_points = #{twoPoints},</if>
|
||||
<if test="threePoints != null">three_points = #{threePoints},</if>
|
||||
<if test="penalty != null">penalty = #{penalty},</if>
|
||||
<if test="backboard != null">backboard = #{backboard},</if>
|
||||
<if test="frontPlate != null">front_plate = #{frontPlate},</if>
|
||||
<if test="backPlate != null">back_plate = #{backPlate},</if>
|
||||
<if test="assists != null">assists = #{assists},</if>
|
||||
<if test="snatch != null">snatch = #{snatch},</if>
|
||||
<if test="block != null">block = #{block},</if>
|
||||
<if test="fault != null">fault = #{fault},</if>
|
||||
<if test="breaks != null">breaks = #{breaks},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isFirstLaunch != null">is_first_launch = #{isFirstLaunch},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionMembersScoreById" parameterType="Long">
|
||||
delete from competition_members_score where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionMembersScoreByIds" parameterType="String">
|
||||
delete from competition_members_score where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionOfTeamMapper">
|
||||
|
||||
<resultMap type="CompetitionOfTeam" id="CompetitionOfTeamResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamName" column="team_name" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="contacts" column="contacts" />
|
||||
<result property="contactsTel" column="contacts_tel" />
|
||||
<result property="contactsAreaCode" column="contacts_area_code" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionOfTeamVo">
|
||||
select id, competition_id, team_id, team_name, competition_group, created_time, status, last_updated_time, created_by, modified_by, is_deleted, remark, contacts, contacts_tel, contacts_area_code, serial_number from competition_of_team
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionOfTeamList" parameterType="CompetitionOfTeam" resultMap="CompetitionOfTeamResult">
|
||||
<include refid="selectCompetitionOfTeamVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="teamId != null "> and team_id = #{teamId}</if>
|
||||
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="contacts != null and contacts != ''"> and contacts = #{contacts}</if>
|
||||
<if test="contactsTel != null and contactsTel != ''"> and contacts_tel = #{contactsTel}</if>
|
||||
<if test="contactsAreaCode != null and contactsAreaCode != ''"> and contacts_area_code = #{contactsAreaCode}</if>
|
||||
<if test="serialNumber != null "> and serial_number = #{serialNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionOfTeamById" parameterType="Long" resultMap="CompetitionOfTeamResult">
|
||||
<include refid="selectCompetitionOfTeamVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionOfTeam" parameterType="CompetitionOfTeam" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_of_team
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="teamName != null">team_name,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="contacts != null">contacts,</if>
|
||||
<if test="contactsTel != null">contacts_tel,</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code,</if>
|
||||
<if test="serialNumber != null">serial_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="contacts != null">#{contacts},</if>
|
||||
<if test="contactsTel != null">#{contactsTel},</if>
|
||||
<if test="contactsAreaCode != null">#{contactsAreaCode},</if>
|
||||
<if test="serialNumber != null">#{serialNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionOfTeam" parameterType="CompetitionOfTeam">
|
||||
update competition_of_team
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="teamName != null">team_name = #{teamName},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="contacts != null">contacts = #{contacts},</if>
|
||||
<if test="contactsTel != null">contacts_tel = #{contactsTel},</if>
|
||||
<if test="contactsAreaCode != null">contacts_area_code = #{contactsAreaCode},</if>
|
||||
<if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionOfTeamById" parameterType="Long">
|
||||
delete from competition_of_team where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionOfTeamByIds" parameterType="String">
|
||||
delete from competition_of_team where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionResultMapper">
|
||||
|
||||
<resultMap type="CompetitionResult" id="CompetitionResultResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionVsId" column="competition_vs_id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamName" column="team_name" />
|
||||
<result property="oneNodeScore" column="one_node_score" />
|
||||
<result property="twoNodeScore" column="two_node_score" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="threeNodeScore" column="three_node_score" />
|
||||
<result property="fourNodeScore" column="four_node_score" />
|
||||
<result property="fiveNodeScore" column="five_node_score" />
|
||||
<result property="sixNodeScore" column="six_node_score" />
|
||||
<result property="integral" column="integral" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionResultVo">
|
||||
select id, competition_id, competition_vs_id, team_id, team_name, one_node_score, two_node_score, competition_group, status, created_time, last_updated_time, created_by, modified_by, is_deleted, remark, three_node_score, four_node_score, five_node_score, six_node_score, integral from competition_result
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionResultList" parameterType="CompetitionResult" resultMap="CompetitionResultResult">
|
||||
<include refid="selectCompetitionResultVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionVsId != null "> and competition_vs_id = #{competitionVsId}</if>
|
||||
<if test="teamId != null "> and team_id = #{teamId}</if>
|
||||
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
||||
<if test="oneNodeScore != null "> and one_node_score = #{oneNodeScore}</if>
|
||||
<if test="twoNodeScore != null "> and two_node_score = #{twoNodeScore}</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="threeNodeScore != null "> and three_node_score = #{threeNodeScore}</if>
|
||||
<if test="fourNodeScore != null "> and four_node_score = #{fourNodeScore}</if>
|
||||
<if test="fiveNodeScore != null "> and five_node_score = #{fiveNodeScore}</if>
|
||||
<if test="sixNodeScore != null "> and six_node_score = #{sixNodeScore}</if>
|
||||
<if test="integral != null "> and integral = #{integral}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionResultById" parameterType="Long" resultMap="CompetitionResultResult">
|
||||
<include refid="selectCompetitionResultVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionResult" parameterType="CompetitionResult" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_result
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionVsId != null">competition_vs_id,</if>
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="teamName != null">team_name,</if>
|
||||
<if test="oneNodeScore != null">one_node_score,</if>
|
||||
<if test="twoNodeScore != null">two_node_score,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="threeNodeScore != null">three_node_score,</if>
|
||||
<if test="fourNodeScore != null">four_node_score,</if>
|
||||
<if test="fiveNodeScore != null">five_node_score,</if>
|
||||
<if test="sixNodeScore != null">six_node_score,</if>
|
||||
<if test="integral != null">integral,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionVsId != null">#{competitionVsId},</if>
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="teamName != null">#{teamName},</if>
|
||||
<if test="oneNodeScore != null">#{oneNodeScore},</if>
|
||||
<if test="twoNodeScore != null">#{twoNodeScore},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="threeNodeScore != null">#{threeNodeScore},</if>
|
||||
<if test="fourNodeScore != null">#{fourNodeScore},</if>
|
||||
<if test="fiveNodeScore != null">#{fiveNodeScore},</if>
|
||||
<if test="sixNodeScore != null">#{sixNodeScore},</if>
|
||||
<if test="integral != null">#{integral},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionResult" parameterType="CompetitionResult">
|
||||
update competition_result
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionVsId != null">competition_vs_id = #{competitionVsId},</if>
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="teamName != null">team_name = #{teamName},</if>
|
||||
<if test="oneNodeScore != null">one_node_score = #{oneNodeScore},</if>
|
||||
<if test="twoNodeScore != null">two_node_score = #{twoNodeScore},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="threeNodeScore != null">three_node_score = #{threeNodeScore},</if>
|
||||
<if test="fourNodeScore != null">four_node_score = #{fourNodeScore},</if>
|
||||
<if test="fiveNodeScore != null">five_node_score = #{fiveNodeScore},</if>
|
||||
<if test="sixNodeScore != null">six_node_score = #{sixNodeScore},</if>
|
||||
<if test="integral != null">integral = #{integral},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionResultById" parameterType="Long">
|
||||
delete from competition_result where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionResultByIds" parameterType="String">
|
||||
delete from competition_result where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionTeamGroupMapper">
|
||||
|
||||
<resultMap type="CompetitionTeamGroup" id="CompetitionTeamGroupResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isCycle" column="is_cycle" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionTeamGroupVo">
|
||||
select id, competition_id, competition_group, created_time, status, last_updated_time, created_by, modified_by, is_deleted, remark, is_cycle from competition_team_group
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionTeamGroupList" parameterType="CompetitionTeamGroup" resultMap="CompetitionTeamGroupResult">
|
||||
<include refid="selectCompetitionTeamGroupVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="isCycle != null "> and is_cycle = #{isCycle}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionTeamGroupById" parameterType="Long" resultMap="CompetitionTeamGroupResult">
|
||||
<include refid="selectCompetitionTeamGroupVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionTeamGroup" parameterType="CompetitionTeamGroup" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_team_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isCycle != null">is_cycle,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isCycle != null">#{isCycle},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionTeamGroup" parameterType="CompetitionTeamGroup">
|
||||
update competition_team_group
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isCycle != null">is_cycle = #{isCycle},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionTeamGroupById" parameterType="Long">
|
||||
delete from competition_team_group where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionTeamGroupByIds" parameterType="String">
|
||||
delete from competition_team_group where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.CompetitionTeamVsTeamMapper">
|
||||
|
||||
<resultMap type="CompetitionTeamVsTeam" id="CompetitionTeamVsTeamResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="competitionId" column="competition_id" />
|
||||
<result property="mainTeamId" column="main_team_id" />
|
||||
<result property="mainTeamName" column="main_team_name" />
|
||||
<result property="guestTeamId" column="guest_team_id" />
|
||||
<result property="guestTeamName" column="guest_team_name" />
|
||||
<result property="competitionTime" column="competition_time" />
|
||||
<result property="buildingId" column="building_id" />
|
||||
<result property="buildingName" column="building_name" />
|
||||
<result property="competitionAddress" column="competition_address" />
|
||||
<result property="competitionGroup" column="competition_group" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="mainTeamScore" column="main_team_score" />
|
||||
<result property="guestTeamScore" column="guest_team_score" />
|
||||
<result property="vsType" column="vs_type" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompetitionTeamVsTeamVo">
|
||||
select id, competition_id, main_team_id, main_team_name, guest_team_id, guest_team_name, competition_time, building_id, building_name, competition_address, competition_group, status, created_time, last_updated_time, created_by, modified_by, is_deleted, remark, main_team_score, guest_team_score, vs_type, batch_number from competition_team_vs_team
|
||||
</sql>
|
||||
|
||||
<select id="selectCompetitionTeamVsTeamList" parameterType="CompetitionTeamVsTeam" resultMap="CompetitionTeamVsTeamResult">
|
||||
<include refid="selectCompetitionTeamVsTeamVo"/>
|
||||
<where>
|
||||
<if test="competitionId != null "> and competition_id = #{competitionId}</if>
|
||||
<if test="mainTeamId != null "> and main_team_id = #{mainTeamId}</if>
|
||||
<if test="mainTeamName != null and mainTeamName != ''"> and main_team_name like concat('%', #{mainTeamName}, '%')</if>
|
||||
<if test="guestTeamId != null "> and guest_team_id = #{guestTeamId}</if>
|
||||
<if test="guestTeamName != null and guestTeamName != ''"> and guest_team_name like concat('%', #{guestTeamName}, '%')</if>
|
||||
<if test="competitionTime != null "> and competition_time = #{competitionTime}</if>
|
||||
<if test="buildingId != null "> and building_id = #{buildingId}</if>
|
||||
<if test="buildingName != null and buildingName != ''"> and building_name like concat('%', #{buildingName}, '%')</if>
|
||||
<if test="competitionAddress != null and competitionAddress != ''"> and competition_address = #{competitionAddress}</if>
|
||||
<if test="competitionGroup != null and competitionGroup != ''"> and competition_group = #{competitionGroup}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if>
|
||||
<if test="lastUpdatedTime != null "> and last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and modified_by = #{modifiedBy}</if>
|
||||
<if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
|
||||
<if test="mainTeamScore != null "> and main_team_score = #{mainTeamScore}</if>
|
||||
<if test="guestTeamScore != null "> and guest_team_score = #{guestTeamScore}</if>
|
||||
<if test="vsType != null and vsType != ''"> and vs_type = #{vsType}</if>
|
||||
<if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompetitionTeamVsTeamById" parameterType="Long" resultMap="CompetitionTeamVsTeamResult">
|
||||
<include refid="selectCompetitionTeamVsTeamVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompetitionTeamVsTeam" parameterType="CompetitionTeamVsTeam" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into competition_team_vs_team
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id,</if>
|
||||
<if test="mainTeamId != null">main_team_id,</if>
|
||||
<if test="mainTeamName != null">main_team_name,</if>
|
||||
<if test="guestTeamId != null">guest_team_id,</if>
|
||||
<if test="guestTeamName != null">guest_team_name,</if>
|
||||
<if test="competitionTime != null">competition_time,</if>
|
||||
<if test="buildingId != null">building_id,</if>
|
||||
<if test="buildingName != null">building_name,</if>
|
||||
<if test="competitionAddress != null">competition_address,</if>
|
||||
<if test="competitionGroup != null">competition_group,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="mainTeamScore != null">main_team_score,</if>
|
||||
<if test="guestTeamScore != null">guest_team_score,</if>
|
||||
<if test="vsType != null">vs_type,</if>
|
||||
<if test="batchNumber != null">batch_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="competitionId != null">#{competitionId},</if>
|
||||
<if test="mainTeamId != null">#{mainTeamId},</if>
|
||||
<if test="mainTeamName != null">#{mainTeamName},</if>
|
||||
<if test="guestTeamId != null">#{guestTeamId},</if>
|
||||
<if test="guestTeamName != null">#{guestTeamName},</if>
|
||||
<if test="competitionTime != null">#{competitionTime},</if>
|
||||
<if test="buildingId != null">#{buildingId},</if>
|
||||
<if test="buildingName != null">#{buildingName},</if>
|
||||
<if test="competitionAddress != null">#{competitionAddress},</if>
|
||||
<if test="competitionGroup != null">#{competitionGroup},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="mainTeamScore != null">#{mainTeamScore},</if>
|
||||
<if test="guestTeamScore != null">#{guestTeamScore},</if>
|
||||
<if test="vsType != null">#{vsType},</if>
|
||||
<if test="batchNumber != null">#{batchNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompetitionTeamVsTeam" parameterType="CompetitionTeamVsTeam">
|
||||
update competition_team_vs_team
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="competitionId != null">competition_id = #{competitionId},</if>
|
||||
<if test="mainTeamId != null">main_team_id = #{mainTeamId},</if>
|
||||
<if test="mainTeamName != null">main_team_name = #{mainTeamName},</if>
|
||||
<if test="guestTeamId != null">guest_team_id = #{guestTeamId},</if>
|
||||
<if test="guestTeamName != null">guest_team_name = #{guestTeamName},</if>
|
||||
<if test="competitionTime != null">competition_time = #{competitionTime},</if>
|
||||
<if test="buildingId != null">building_id = #{buildingId},</if>
|
||||
<if test="buildingName != null">building_name = #{buildingName},</if>
|
||||
<if test="competitionAddress != null">competition_address = #{competitionAddress},</if>
|
||||
<if test="competitionGroup != null">competition_group = #{competitionGroup},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="mainTeamScore != null">main_team_score = #{mainTeamScore},</if>
|
||||
<if test="guestTeamScore != null">guest_team_score = #{guestTeamScore},</if>
|
||||
<if test="vsType != null">vs_type = #{vsType},</if>
|
||||
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompetitionTeamVsTeamById" parameterType="Long">
|
||||
delete from competition_team_vs_team where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompetitionTeamVsTeamByIds" parameterType="String">
|
||||
delete from competition_team_vs_team where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.TeamMembersMapper">
|
||||
|
||||
<resultMap type="TeamMembers" id="TeamMembersResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="roleCode" column="role_code" />
|
||||
<result property="jerseyNumber" column="jersey_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createdTime" column="created_time" />
|
||||
<result property="createdBy" column="created_by" />
|
||||
<result property="isDeleted" column="IS_DELETED" />
|
||||
<result property="lastUpdatedTime" column="last_updated_time" />
|
||||
<result property="modifiedBy" column="modified_by" />
|
||||
<result property="roleName" column="role_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTeamMembersVo">
|
||||
select id, team_id, user_id, role_code, jersey_number, status, remark, created_time, created_by, IS_DELETED, last_updated_time, modified_by, role_name from team_members
|
||||
</sql>
|
||||
<select id="selectTeamMembersById" parameterType="Long" resultMap="TeamMembersResult">
|
||||
<include refid="selectTeamMembersVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="selectTeamMembersList" resultType="com.ruoyi.system.domain.vo.TeamMembersVo">
|
||||
select t.id, t.team_id, t.user_id, t.role_code, t.jersey_number, t.status, t.remark, t.created_time,
|
||||
t.created_by, t.IS_DELETED, t.last_updated_time, t.modified_by, t.role_name,u.*
|
||||
from team_members t left join user_info u on u.id = t.user_id
|
||||
<where>
|
||||
t.IS_DELETED = 0 and u.IS_DELETED = 0
|
||||
<if test="teamId != null "> and t.team_id = #{teamId}</if>
|
||||
<if test="userId != null "> and t.user_id = #{userId}</if>
|
||||
<if test="roleCode != null and roleCode != ''"> and t.role_code = #{roleCode}</if>
|
||||
<if test="jerseyNumber != null and jerseyNumber != ''"> and t.jersey_number = #{jerseyNumber}</if>
|
||||
<if test="status != null "> and t.status = #{status}</if>
|
||||
<if test="createdTime != null "> and t.created_time = #{createdTime}</if>
|
||||
<if test="createdBy != null and createdBy != ''"> and t.created_by = #{createdBy}</if>
|
||||
<if test="lastUpdatedTime != null "> and t.last_updated_time = #{lastUpdatedTime}</if>
|
||||
<if test="modifiedBy != null and modifiedBy != ''"> and t.cmodified_by = #{modifiedBy}</if>
|
||||
<if test="roleName != null and roleName != ''"> and t.role_name like concat('%', #{roleName}, '%')</if>
|
||||
<if test="userName != null "> and t.user_name like concat('%', #{userName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
<insert id="insertTeamMembers" parameterType="TeamMembers" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into team_members
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="teamId != null">team_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="roleCode != null">role_code,</if>
|
||||
<if test="jerseyNumber != null">jersey_number,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="isDeleted != null">IS_DELETED,</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time,</if>
|
||||
<if test="modifiedBy != null">modified_by,</if>
|
||||
<if test="roleName != null">role_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="teamId != null">#{teamId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="roleCode != null">#{roleCode},</if>
|
||||
<if test="jerseyNumber != null">#{jerseyNumber},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
<if test="lastUpdatedTime != null">#{lastUpdatedTime},</if>
|
||||
<if test="modifiedBy != null">#{modifiedBy},</if>
|
||||
<if test="roleName != null">#{roleName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTeamMembers" parameterType="TeamMembers">
|
||||
update team_members
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="teamId != null">team_id = #{teamId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="roleCode != null">role_code = #{roleCode},</if>
|
||||
<if test="jerseyNumber != null">jersey_number = #{jerseyNumber},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="isDeleted != null">IS_DELETED = #{isDeleted},</if>
|
||||
<if test="lastUpdatedTime != null">last_updated_time = #{lastUpdatedTime},</if>
|
||||
<if test="modifiedBy != null">modified_by = #{modifiedBy},</if>
|
||||
<if test="roleName != null">role_name = #{roleName},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTeamMembersById" parameterType="Long">
|
||||
delete from team_members where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTeamMembersByIds" parameterType="String">
|
||||
delete from team_members where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user