linhw 2024-04-23 13:22:31 +08:00
parent 80c076a16f
commit c0f6ee82d4
2 changed files with 9 additions and 9 deletions

View File

@ -56,7 +56,7 @@ public class AppUser extends BaseEntity
/** 学校 */
@Excel(name = "学校")
private String school;
private Long school;
/** 专业 */
@Excel(name = "专业")
@ -195,12 +195,12 @@ public class AppUser extends BaseEntity
{
return education;
}
public void setSchool(String school)
public void setSchool(Long school)
{
this.school = school;
}
public String getSchool()
public Long getSchool()
{
return school;
}

View File

@ -13,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectUserSkillVo">
select id, user_id, name, create_time, update_time from user_skill
select id, user_id, name, create_time, update_time from app_user_skill
</sql>
<select id="selectUserSkillList" parameterType="UserSkill" resultMap="UserSkillResult">
@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertUserSkill" parameterType="UserSkill" useGeneratedKeys="true" keyProperty="id">>
insert into user_skill
insert into app_user_skill
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="name != null">name,</if>
@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateUserSkill" parameterType="UserSkill">
update user_skill
update app_user_skill
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="name != null">name = #{name},</if>
@ -58,15 +58,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteUserSkillById">
delete from user_skill where id = #{id}
delete from app_user_skill where id = #{id}
</delete>
<delete id="deleteUserSkillByUserId">
delete from user_skill where user_id = #{userId}
delete from app_user_skill where user_id = #{userId}
</delete>
<delete id="deleteUserSkillByIds">
delete from user_skill where id in
delete from app_user_skill where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>