mapper修改
parent
0bfae9dde4
commit
30c4e93e77
|
|
@ -15,12 +15,12 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
public class AppLoginController {
|
public class AppLoginController {
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/register")
|
// @PostMapping("/register")
|
||||||
@ApiOperation(value = "注册" , notes = "注册")
|
// @ApiOperation(value = "注册" , notes = "注册")
|
||||||
public void register(RegisterForm registerForm) {
|
// public void register(RegisterForm registerForm) {
|
||||||
|
//
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.app.mapper.UserSkillMapper">
|
<mapper namespace="com.ruoyi.app.mapper.UserSkillMapper">
|
||||||
|
|
||||||
<resultMap type="UserSkill" id="UserSkillResult">
|
<resultMap type="com.ruoyi.app.domain.UserSkill" id="UserSkillResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
<result property="name" column="name" />
|
<result property="name" column="name" />
|
||||||
|
|
@ -16,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, user_id, name, create_time, update_time from app_user_skill
|
select id, user_id, name, create_time, update_time from app_user_skill
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectUserSkillList" parameterType="UserSkill" resultMap="UserSkillResult">
|
<select id="selectUserSkillList" parameterType="com.ruoyi.app.domain.UserSkill" resultMap="UserSkillResult">
|
||||||
<include refid="selectUserSkillVo"/>
|
<include refid="selectUserSkillVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||||
|
|
@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertUserSkill" parameterType="UserSkill" useGeneratedKeys="true" keyProperty="id">>
|
<insert id="insertUserSkill" parameterType="com.ruoyi.app.domain.UserSkill" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into app_user_skill
|
insert into app_user_skill
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="userId != null">user_id,</if>
|
<if test="userId != null">user_id,</if>
|
||||||
|
|
@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateUserSkill" parameterType="UserSkill">
|
<update id="updateUserSkill" parameterType="com.ruoyi.app.domain.UserSkill">
|
||||||
update app_user_skill
|
update app_user_skill
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="userId != null">user_id = #{userId},</if>
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue