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

补充上次

上级 2c3c33be
流水线 #42785 已取消 于阶段
...@@ -2,38 +2,6 @@ ...@@ -2,38 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.pica.cloud.account.account.server.mapper.AccountMapper"> <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"/>
</resultMap>
<resultMap id="BaseResultMap" type="com.pica.cloud.account.account.server.entity.Account"> <resultMap id="BaseResultMap" type="com.pica.cloud.account.account.server.entity.Account">
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="sex" jdbcType="INTEGER" property="sex" /> <result column="sex" jdbcType="INTEGER" property="sex" />
...@@ -72,19 +40,17 @@ ...@@ -72,19 +40,17 @@
id, sex, name, mobile_phone, status, certify_status, nation, avatar_image_url, email, qrcode, nickname, personal_sign, delete_flag, 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, 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 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 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 id="selectById" parameterType="java.lang.Long" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from p_doctor from p_doctor
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<insert id="insertSelective" parameterType="com.pica.cloud.account.account.server.entity.Account" <insert id="insertSelective" parameterType="com.pica.cloud.account.account.server.entity.Account" useGeneratedKeys="true" keyProperty="id">
useGeneratedKeys="true" keyProperty="id">
insert into p_doctor insert into p_doctor
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="sex != null"> <if test="sex != null">
...@@ -344,14 +310,14 @@ ...@@ -344,14 +310,14 @@
<select id="getByMobilePhone" resultMap="BaseResultMap"> <select id="getByMobilePhone" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from p_doctor from p_doctor
where mobile_phone = #{mobilePhone} and delete_flag = 1 limit 1 where mobile_phone = #{mobilePhone} and delete_flag = 1 limit 1
</select> </select>
<select id="getByUnionid" resultMap="BaseResultMap"> <select id="getByUnionid" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from p_doctor from p_doctor
where unionid = #{unionid} and delete_flag = 1 where unionid = #{unionid} and delete_flag = 1
limit 1 limit 1
...@@ -359,7 +325,7 @@ ...@@ -359,7 +325,7 @@
<select id="getByCard" resultMap="BaseResultMap"> <select id="getByCard" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from p_doctor from p_doctor
where card = #{card} and delete_flag = 1 where card = #{card} and delete_flag = 1
limit 1 limit 1
...@@ -377,7 +343,6 @@ ...@@ -377,7 +343,6 @@
</if> </if>
limit #{offset}, #{size} limit #{offset}, #{size}
</select> </select>
<sql id="select_list_page"> <sql id="select_list_page">
p.delete_flag=1 AND p.hospital_id=#{hospitalId} p.delete_flag=1 AND p.hospital_id=#{hospitalId}
<if test="mobile != null"> <if test="mobile != null">
...@@ -413,6 +378,4 @@ ...@@ -413,6 +378,4 @@
ORDER BY p.reg_time DESC ORDER BY p.reg_time DESC
limit #{pageNo},#{pageSize} limit #{pageNo},#{pageSize}
</select> </select>
</mapper> </mapper>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册