add mapper.xml
parent
c958a7a2dc
commit
d1a45f7423
|
@ -138,7 +138,7 @@ public interface SysUserMapper {
|
|||
int insertPatient(CommonBody commonBody);
|
||||
|
||||
//为新增用户添加角色
|
||||
void addUserRole(int patientId, Integer roleId, int i);
|
||||
void addUserRole(@Param("patientId") int patientId, @Param("roleId") Integer roleId, @Param("i") int i);
|
||||
|
||||
//添加新的医生
|
||||
int insertDoctor(CommonBody commonBody);
|
||||
|
|
|
@ -175,10 +175,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</insert>
|
||||
<!--添加新患者-->
|
||||
<insert id="insertPatient">
|
||||
insert into tb_patient values (#{name},#{password},#{email},#{6666},#{avatar},#{gender},#{height},#{weight},#{age},#{wechatNumber})
|
||||
insert into tb_patient values (#{name},#{password},#{email},null,#{avatar},#{gender},#{height},#{weight},#{age},#{wechatNumber})
|
||||
<!--为用户添加角色-->
|
||||
</insert>
|
||||
<insert id="addUserRole"></insert>
|
||||
<insert id="addUserRole">
|
||||
insert into tb_user_role values (#{patientId},#{roleId},#{i})
|
||||
</insert>
|
||||
|
||||
<!--添加新的医生-->
|
||||
<insert id="insertDoctor"></insert>
|
||||
|
|
Loading…
Reference in New Issue