迭代 注册方法1.3

master
冯凯 2023-10-20 20:52:39 +08:00
parent 8d0aea5bc6
commit eec30adb9a
1 changed files with 5 additions and 7 deletions

View File

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