提交 81ba42d1 编写于 作者: wenhao.qin's avatar wenhao.qin

补充上次

上级 2c3c33be
流水线 #42785 已取消 于阶段
......@@ -3,88 +3,54 @@
<mapper namespace="com.pica.cloud.account.account.server.mapper.AccountMapper">
<resultMap id="BaseResultMap" type="com.pica.cloud.account.account.server.entity.Account">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="sex" jdbcType="INTEGER" property="sex"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone"/>
<result column="acct_id" jdbcType="INTEGER" property="acctId"/>
<result column="status" jdbcType="INTEGER" property="status"/>
<result column="certify_status" jdbcType="INTEGER" property="certifyStatus"/>
<result column="nation" jdbcType="VARCHAR" property="nation"/>
<result column="avatar_image_url" jdbcType="VARCHAR" property="avatarImageUrl"/>
<result column="email" jdbcType="VARCHAR" property="email"/>
<result column="qrcode" jdbcType="VARCHAR" property="qrcode"/>
<result column="nickname" jdbcType="VARCHAR" property="nickname"/>
<result column="personal_sign" jdbcType="VARCHAR" property="personalSign"/>
<result column="delete_flag" jdbcType="INTEGER" property="deleteFlag"/>
<result column="creat_id" jdbcType="INTEGER" property="creatId"/>
<result column="creat_time" jdbcType="TIMESTAMP" property="creatTime"/>
<result column="modify_id" jdbcType="INTEGER" property="modifyId"/>
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime"/>
<result column="password" jdbcType="VARCHAR" property="password"/>
<result column="info" jdbcType="VARCHAR" property="info"/>
<result column="entire_flag" jdbcType="INTEGER" property="entireFlag"/>
<result column="reg_time" jdbcType="DATE" property="regTime"/>
<result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime"/>
<result column="unionid" jdbcType="VARCHAR" property="unionid"/>
<result column="register_source" jdbcType="INTEGER" property="registerSource"/>
<result column="comment" jdbcType="VARCHAR" property="comment"/>
<result column="register_type" jdbcType="INTEGER" property="registerType"/>
<result column="first_login_time" jdbcType="TIMESTAMP" property="firstLoginTime"/>
<result column="card" jdbcType="VARCHAR" property="card"/>
<result column="birthday" jdbcType="DATE" property="birthday"/>
<id column="id" jdbcType="INTEGER" property="id" />
<result column="sex" jdbcType="INTEGER" property="sex" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone" />
<result column="acct_id" jdbcType="INTEGER" property="acctId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="certify_status" jdbcType="INTEGER" property="certifyStatus" />
<result column="nation" jdbcType="VARCHAR" property="nation" />
<result column="avatar_image_url" jdbcType="VARCHAR" property="avatarImageUrl" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="qrcode" jdbcType="VARCHAR" property="qrcode" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="personal_sign" jdbcType="VARCHAR" property="personalSign" />
<result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="creat_id" jdbcType="INTEGER" property="creatId" />
<result column="creat_time" jdbcType="TIMESTAMP" property="creatTime" />
<result column="modify_id" jdbcType="INTEGER" property="modifyId" />
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="info" jdbcType="VARCHAR" property="info" />
<result column="entire_flag" jdbcType="INTEGER" property="entireFlag" />
<result column="reg_time" jdbcType="DATE" property="regTime" />
<result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime" />
<result column="unionid" jdbcType="VARCHAR" property="unionid" />
<result column="register_source" jdbcType="INTEGER" property="registerSource" />
<result column="comment" jdbcType="VARCHAR" property="comment" />
<result column="register_type" jdbcType="INTEGER" property="registerType" />
<result column="first_login_time" jdbcType="TIMESTAMP" property="firstLoginTime" />
<result column="card" jdbcType="VARCHAR" property="card" />
<result column="birthday" jdbcType="DATE" property="birthday" />
<result column="hospital_id" jdbcType="INTEGER" property="hospitalId" />
</resultMap>
<resultMap id="BaseResultMap" type="com.pica.cloud.account.account.server.entity.Account">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="sex" jdbcType="INTEGER" property="sex" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone" />
<result column="acct_id" jdbcType="INTEGER" property="acctId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="certify_status" jdbcType="INTEGER" property="certifyStatus" />
<result column="nation" jdbcType="VARCHAR" property="nation" />
<result column="avatar_image_url" jdbcType="VARCHAR" property="avatarImageUrl" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="qrcode" jdbcType="VARCHAR" property="qrcode" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="personal_sign" jdbcType="VARCHAR" property="personalSign" />
<result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="creat_id" jdbcType="INTEGER" property="creatId" />
<result column="creat_time" jdbcType="TIMESTAMP" property="creatTime" />
<result column="modify_id" jdbcType="INTEGER" property="modifyId" />
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="info" jdbcType="VARCHAR" property="info" />
<result column="entire_flag" jdbcType="INTEGER" property="entireFlag" />
<result column="reg_time" jdbcType="DATE" property="regTime" />
<result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime" />
<result column="unionid" jdbcType="VARCHAR" property="unionid" />
<result column="register_source" jdbcType="INTEGER" property="registerSource" />
<result column="comment" jdbcType="VARCHAR" property="comment" />
<result column="register_type" jdbcType="INTEGER" property="registerType" />
<result column="first_login_time" jdbcType="TIMESTAMP" property="firstLoginTime" />
<result column="card" jdbcType="VARCHAR" property="card" />
<result column="birthday" jdbcType="DATE" property="birthday" />
<result column="hospital_id" jdbcType="INTEGER" property="hospitalId" />
</resultMap>
<sql id="Base_Column_List">
id, sex, name, mobile_phone, status, certify_status, nation, avatar_image_url, email, qrcode, nickname, personal_sign, delete_flag,
creat_id, creat_time, modify_id, modify_time, password, info, entire_flag, reg_time, last_login_time,
unionid, register_source, comment, register_type, first_login_time, card, birthday
</sql>
unionid, register_source, comment, register_type, first_login_time, card, birthday, hospital_id
</sql>
</sql>
<select id="selectById" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
<include refid="Base_Column_List" />
from p_doctor
where id = #{id,jdbcType=INTEGER}
</select>
<insert id="insertSelective" parameterType="com.pica.cloud.account.account.server.entity.Account"
useGeneratedKeys="true" keyProperty="id">
<insert id="insertSelective" parameterType="com.pica.cloud.account.account.server.entity.Account" useGeneratedKeys="true" keyProperty="id">
insert into p_doctor
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="sex != null">
......@@ -344,14 +310,14 @@
<select id="getByMobilePhone" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
<include refid="Base_Column_List" />
from p_doctor
where mobile_phone = #{mobilePhone} and delete_flag = 1 limit 1
</select>
<select id="getByUnionid" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
<include refid="Base_Column_List" />
from p_doctor
where unionid = #{unionid} and delete_flag = 1
limit 1
......@@ -359,7 +325,7 @@
<select id="getByCard" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
<include refid="Base_Column_List" />
from p_doctor
where card = #{card} and delete_flag = 1
limit 1
......@@ -377,7 +343,6 @@
</if>
limit #{offset}, #{size}
</select>
<sql id="select_list_page">
p.delete_flag=1 AND p.hospital_id=#{hospitalId}
<if test="mobile != null">
......@@ -413,6 +378,4 @@
ORDER BY p.reg_time DESC
limit #{pageNo},#{pageSize}
</select>
</mapper>
\ No newline at end of file
</mapper>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册