迭代 注册方法1.4
parent
c57b614ff8
commit
4742f6e8f3
|
@ -185,36 +185,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<choose>
|
<choose>
|
||||||
<when test="roleId==1">
|
<when test="roleId==1">
|
||||||
insert into tb_patient(
|
insert into tb_patient
|
||||||
<if test="patientId!=null">patient_id,</if>
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="name!=null and name!=''">patient_name,</if>
|
<if test="patientId!=null">patient_id,</if>
|
||||||
<if test="password!=null and password!=''">password,</if>
|
<if test="name!=null and name!=''">patient_name,</if>
|
||||||
<if test="email!=null and email!=''">email,</if>
|
<if test="password!=null and password!=''">password,</if>
|
||||||
<if test="inviteCode!=null and inviteCode!=''">invite_code,</if>
|
<if test="email!=null and email!=''">email,</if>
|
||||||
<if test="avatar!=null and avatar!=''">avatar,</if>
|
<if test="inviteCode!=null and inviteCode!=''">invite_code,</if>
|
||||||
<if test="gender!=null">gender,</if>
|
<if test="avatar!=null and avatar!=''">avatar,</if>
|
||||||
<if test="height!=null">height,</if>
|
<if test="gender!=null">gender,</if>
|
||||||
<if test="weight!=null">weight,</if>
|
<if test="height!=null">height,</if>
|
||||||
<if test="age!=null">age,</if>
|
<if test="weight!=null">weight,</if>
|
||||||
<if test="wechatNumber!=null and wechatNumber!=''">wechat_number,</if>
|
<if test="age!=null">age,</if>
|
||||||
)
|
<if test="wechatNumber!=null and wechatNumber!=''">wechat_number</if>
|
||||||
values(
|
</trim>
|
||||||
<if test="patientId!=null">#{patientId},</if>
|
|
||||||
<if test="name!=null and name!=''">#{name},</if>
|
values
|
||||||
<if test="password!=null and password!=''">#{password},</if>
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="email!=null and email!=''">#{email},</if>
|
<if test="patientId!=null">#{patientId},</if>
|
||||||
<if test="inviteCode!=null and inviteCode!=''">#{inviteCode},</if>
|
<if test="name!=null and name!=''">#{name},</if>
|
||||||
<if test="avatar!=null and avatar!=''">#{avatar},</if>
|
<if test="password!=null and password!=''">#{password},</if>
|
||||||
<if test="gender!=null">#{gender},</if>
|
<if test="email!=null and email!=''">#{email},</if>
|
||||||
<if test="height!=null">#{height},</if>
|
<if test="inviteCode!=null and inviteCode!=''">#{inviteCode},</if>
|
||||||
<if test="weight!=null">#{weight},</if>
|
<if test="avatar!=null and avatar!=''">#{avatar},</if>
|
||||||
<if test="age!=null">#{age},</if>
|
<if test="gender!=null">#{gender},</if>
|
||||||
<if test="wechatNumber!=null and wechatNumber!=''">#{wechatNumber},</if>
|
<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>
|
||||||
|
</trim>
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
insert into tb_doctor
|
insert into tb_doctor
|
||||||
(
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="doctorId!=null"> doctor_id,</if>
|
<if test="doctorId!=null"> doctor_id,</if>
|
||||||
<if test="name!=null and name!=''">doctor_name,</if>
|
<if test="name!=null and name!=''">doctor_name,</if>
|
||||||
<if test="password!=null and password!=''">password,</if>
|
<if test="password!=null and password!=''">password,</if>
|
||||||
|
@ -225,9 +228,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="introduce!=null and introduce!=''">introduce,</if>
|
<if test="introduce!=null and introduce!=''">introduce,</if>
|
||||||
<if test="skilled!=null and skilled!=''">skilled,</if>
|
<if test="skilled!=null and skilled!=''">skilled,</if>
|
||||||
<if test="avatar!=null and avatar!=''">avatar,</if>
|
<if test="avatar!=null and avatar!=''">avatar,</if>
|
||||||
)
|
</trim>
|
||||||
values
|
values
|
||||||
(
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="doctorId!=null"> #{doctorId},</if>
|
<if test="doctorId!=null"> #{doctorId},</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>
|
||||||
|
@ -238,7 +241,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="introduce!=null and introduce!=''">#{introduce},</if>
|
<if test="introduce!=null and introduce!=''">#{introduce},</if>
|
||||||
<if test="skilled!=null and skilled!=''">#{skilled},</if>
|
<if test="skilled!=null and skilled!=''">#{skilled},</if>
|
||||||
<if test="avatar!=null and avatar!=''">#{avatar},</if>
|
<if test="avatar!=null and avatar!=''">#{avatar},</if>
|
||||||
)
|
</trim>
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
Loading…
Reference in New Issue