导入修复

pull/371/head
wuyibo 2 years ago
parent 5335cd70c4
commit 794aa8c361

@ -65,11 +65,11 @@ public class CompetitionOfTeam extends BaseEntity
private Long isDeleted; private Long isDeleted;
/** 联系人 */ /** 联系人 */
@Excel(name = "联系人") @Excel(name = "领队人")
private String contacts; private String contacts;
/** 联系人电话 */ /** 联系人电话 */
@Excel(name = "联系人电话") @Excel(name = "领队人电话")
private String contactsTel; private String contactsTel;
/** 联系人电话区号 */ /** 联系人电话区号 */
@ -79,5 +79,9 @@ public class CompetitionOfTeam extends BaseEntity
/** 组内的序号 */ /** 组内的序号 */
@Excel(name = "组内的序号") @Excel(name = "组内的序号")
private Integer serialNumber; private Integer serialNumber;
@Excel(name = "球队logo")
private String teamLogo;
@Excel(name = "球队队长")
private String captain;
} }

@ -21,10 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="contactsTel" column="contacts_tel" /> <result property="contactsTel" column="contacts_tel" />
<result property="contactsAreaCode" column="contacts_area_code" /> <result property="contactsAreaCode" column="contacts_area_code" />
<result property="serialNumber" column="serial_number" /> <result property="serialNumber" column="serial_number" />
<result property="teamLogo" column="team_logo"/>
<result property="captain" column="captain"/>
</resultMap> </resultMap>
<sql id="selectCompetitionOfTeamVo"> <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 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,team_logo,captain from competition_of_team
</sql> </sql>
<select id="selectCompetitionOfTeamById" parameterType="Long" resultMap="CompetitionOfTeamResult"> <select id="selectCompetitionOfTeamById" parameterType="Long" resultMap="CompetitionOfTeamResult">
<include refid="selectCompetitionOfTeamVo"/> <include refid="selectCompetitionOfTeamVo"/>
@ -43,10 +45,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdBy != null and createdBy != ''"> and t.created_by = #{createdBy}</if> <if test="createdBy != null and createdBy != ''"> and t.created_by = #{createdBy}</if>
<if test="modifiedBy != null and modifiedBy != ''"> and t.modified_by = #{modifiedBy}</if> <if test="modifiedBy != null and modifiedBy != ''"> and t.modified_by = #{modifiedBy}</if>
<if test="isDeleted != null "> and t.is_deleted = #{isDeleted}</if> <if test="isDeleted != null "> and t.is_deleted = #{isDeleted}</if>
<if test="contacts != null and contacts != ''"> and t.contacts = #{contacts}</if> <if test="contacts != null and contacts != ''"> and t.contacts like concat('%',#{contacts}, '%')</if>
<if test="contactsTel != null and contactsTel != ''"> and t.contacts_tel = #{contactsTel}</if> <if test="contactsTel != null and contactsTel != ''"> and t.contacts_tel = #{contactsTel}</if>
<if test="contactsAreaCode != null and contactsAreaCode != ''"> and t.contacts_area_code = #{contactsAreaCode}</if> <if test="contactsAreaCode != null and contactsAreaCode != ''"> and t.contacts_area_code = #{contactsAreaCode}</if>
<if test="serialNumber != null "> and t.serial_number = #{serialNumber}</if> <if test="serialNumber != null "> and t.serial_number = #{serialNumber}</if>
<if test="captain != null and captain != ''"> and t.captain like concat('%',#{captain}, '%')</if>
</where> </where>
</select> </select>
<select id="getJoinCompetitionTeam" resultType="com.ruoyi.system.domain.vo.CompetitionOfTeamVo"> <select id="getJoinCompetitionTeam" resultType="com.ruoyi.system.domain.vo.CompetitionOfTeamVo">
@ -82,6 +85,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null and contactsAreaCode != ''"> <if test="contactsAreaCode != null and contactsAreaCode != ''">
AND t.contacts_area_code like CONCAT('%',#{contactsAreaCode},'%') AND t.contacts_area_code like CONCAT('%',#{contactsAreaCode},'%')
</if> </if>
<if test="captain != null and captain != ''">
and t.captain like concat('%',#{captain}, '%')
</if>
order by t.created_time desc order by t.created_time desc
</select> </select>
<select id="findCompetitionTeamGroupList" resultType="com.ruoyi.system.domain.vo.CompetitionOfTeamVo"> <select id="findCompetitionTeamGroupList" resultType="com.ruoyi.system.domain.vo.CompetitionOfTeamVo">
@ -117,6 +123,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null and contactsAreaCode != ''"> <if test="contactsAreaCode != null and contactsAreaCode != ''">
AND t.contacts_area_code like CONCAT('%',#{contactsAreaCode},'%') AND t.contacts_area_code like CONCAT('%',#{contactsAreaCode},'%')
</if> </if>
<if test="captain != null and captain != ''">
and t.captain like concat('%',#{captain}, '%')
</if>
order by t.created_time desc order by t.created_time desc
</select> </select>
@ -159,6 +168,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsAreaCode != null and contactsAreaCode != ''"> <if test="contactsAreaCode != null and contactsAreaCode != ''">
AND t.contacts_area_code like CONCAT('%',#{contactsAreaCode},'%') AND t.contacts_area_code like CONCAT('%',#{contactsAreaCode},'%')
</if> </if>
<if test="captain != null and captain != ''">
and t.captain like concat('%',#{captain}, '%')
</if>
order by t.created_time desc order by t.created_time desc
</select> </select>
@ -180,6 +192,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsTel != null">contacts_tel,</if> <if test="contactsTel != null">contacts_tel,</if>
<if test="contactsAreaCode != null">contacts_area_code,</if> <if test="contactsAreaCode != null">contacts_area_code,</if>
<if test="serialNumber != null">serial_number,</if> <if test="serialNumber != null">serial_number,</if>
<if test="teamLogo != null">team_logo,</if>
<if test="captain != null">captain,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="competitionId != null">#{competitionId},</if> <if test="competitionId != null">#{competitionId},</if>
@ -197,6 +211,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsTel != null">#{contactsTel},</if> <if test="contactsTel != null">#{contactsTel},</if>
<if test="contactsAreaCode != null">#{contactsAreaCode},</if> <if test="contactsAreaCode != null">#{contactsAreaCode},</if>
<if test="serialNumber != null">#{serialNumber},</if> <if test="serialNumber != null">#{serialNumber},</if>
<if test="teamLogo != null">#{teamLogo},</if>
<if test="captain != null">#{captain},</if>
</trim> </trim>
</insert> </insert>
@ -218,6 +234,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contactsTel != null">contacts_tel = #{contactsTel},</if> <if test="contactsTel != null">contacts_tel = #{contactsTel},</if>
<if test="contactsAreaCode != null">contacts_area_code = #{contactsAreaCode},</if> <if test="contactsAreaCode != null">contacts_area_code = #{contactsAreaCode},</if>
<if test="serialNumber != null">serial_number = #{serialNumber},</if> <if test="serialNumber != null">serial_number = #{serialNumber},</if>
<if test="teamLogo != null"> team_logo = #{teamLogo},</if>
<if test="captain != null"> captain = #{captain},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>

Loading…
Cancel
Save