更正患者注册的mapper
parent
71356c8608
commit
8747dd90b2
|
@ -663,7 +663,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|||
Integer roleId=101;
|
||||
//
|
||||
patient.setStatus("1");
|
||||
int count=userMapper.registerPatient(patient);
|
||||
int count=userMapper.insertUser(patient);
|
||||
Long userId = patient.getUserId();
|
||||
Patient patient1 = new Patient();
|
||||
patient1.setUserId(userId);
|
||||
|
|
|
@ -288,8 +288,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<insert id="registerPatient" useGeneratedKeys="true" keyProperty="userId">
|
||||
insert into tb_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name!=null and name!=''">name,</if>
|
||||
<if test="pwd1!=null and pwd1!=''">pwd1,</if>
|
||||
<if test="userName!=null and userName!=''">user_name,</if>
|
||||
<if test="password!=null and password!=''">password,</if>
|
||||
<if test="email!=null and email!=''">email,</if>
|
||||
<if test="avatar!=null and avatar!=''">avatar,</if>
|
||||
<if test="status!=null">status,</if>
|
||||
|
|
Loading…
Reference in New Issue