迭代 注册方法1.3

master
冯凯 2023-10-20 21:22:23 +08:00
parent 9119964586
commit c57b614ff8
2 changed files with 6 additions and 1 deletions

View File

@ -582,6 +582,10 @@ public class SysUserServiceImpl implements ISysUserService
public int registerNewUser(CommonBody commonBody) {
//默认是患者角色
System.out.println("对象是:"+commonBody);
System.out.println(commonBody.getGender()+",");
System.out.println(commonBody.getAge()+",");
System.out.println(commonBody.getHeight()+",");
System.out.println(commonBody.getWeight());
int role=101;
//添加用户不管是患者还是医生
int userId=userMapper.insertNewUser(commonBody);

View File

@ -209,7 +209,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="height!=null">#{height},</if>
<if test="weight!=null">#{weight},</if>
<if test="age!=null">#{age},</if>
<if test="wechatNumber!=null and wechatNumber!=''">#{wechatNumber},</if>)
<if test="wechatNumber!=null and wechatNumber!=''">#{wechatNumber},</if>
)
</when>
<otherwise>
insert into tb_doctor