迭代 注册方法1.3
parent
9119964586
commit
c57b614ff8
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue