更正患者注册的mapper

master
冯凯 2023-10-28 13:39:26 +08:00
parent 71356c8608
commit 8747dd90b2
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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>