|
|
@ -10,6 +10,9 @@ |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
|
|
<result column="member_name" jdbcType="VARCHAR" property="memberName" /> |
|
|
|
|
|
<result column="member_sex" jdbcType="TINYINT" property="memberSex" /> |
|
|
|
|
|
<result column="member_phone" jdbcType="VARCHAR" property="memberPhone" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
|
@ -70,7 +73,8 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, position, department, hospital_id, user_id, created_at, updated_at, rec_status |
|
|
id, position, department, hospital_id, user_id, created_at, updated_at, rec_status, |
|
|
|
|
|
member_name, member_sex, member_phone |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMemberExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMemberExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -105,10 +109,12 @@ |
|
|
<insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMember"> |
|
|
<insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMember"> |
|
|
insert into t_hospital_member (id, position, department, |
|
|
insert into t_hospital_member (id, position, department, |
|
|
hospital_id, user_id, created_at, |
|
|
hospital_id, user_id, created_at, |
|
|
updated_at, rec_status) |
|
|
updated_at, rec_status, member_name, |
|
|
|
|
|
member_sex, member_phone) |
|
|
values (#{id,jdbcType=BIGINT}, #{position,jdbcType=TINYINT}, #{department,jdbcType=TINYINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{position,jdbcType=TINYINT}, #{department,jdbcType=TINYINT}, |
|
|
#{hospitalId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{hospitalId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{memberName,jdbcType=VARCHAR}, |
|
|
|
|
|
#{memberSex,jdbcType=TINYINT}, #{memberPhone,jdbcType=VARCHAR}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMember"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMember"> |
|
|
insert into t_hospital_member |
|
|
insert into t_hospital_member |
|
|
@ -137,6 +143,15 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status, |
|
|
rec_status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberName != null"> |
|
|
|
|
|
member_name, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberSex != null"> |
|
|
|
|
|
member_sex, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberPhone != null"> |
|
|
|
|
|
member_phone, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -163,6 +178,15 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberName != null"> |
|
|
|
|
|
#{memberName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberSex != null"> |
|
|
|
|
|
#{memberSex,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberPhone != null"> |
|
|
|
|
|
#{memberPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMemberExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.wisdomcar.bean.po.HospitalMemberExample" resultType="java.lang.Long"> |
|
|
@ -198,6 +222,15 @@ |
|
|
<if test="record.recStatus != null"> |
|
|
<if test="record.recStatus != null"> |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.memberName != null"> |
|
|
|
|
|
member_name = #{record.memberName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.memberSex != null"> |
|
|
|
|
|
member_sex = #{record.memberSex,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.memberPhone != null"> |
|
|
|
|
|
member_phone = #{record.memberPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -212,7 +245,10 @@ |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
member_name = #{record.memberName,jdbcType=VARCHAR}, |
|
|
|
|
|
member_sex = #{record.memberSex,jdbcType=TINYINT}, |
|
|
|
|
|
member_phone = #{record.memberPhone,jdbcType=VARCHAR} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -241,6 +277,15 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberName != null"> |
|
|
|
|
|
member_name = #{memberName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberSex != null"> |
|
|
|
|
|
member_sex = #{memberSex,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="memberPhone != null"> |
|
|
|
|
|
member_phone = #{memberPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
@ -252,7 +297,10 @@ |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
member_name = #{memberName,jdbcType=VARCHAR}, |
|
|
|
|
|
member_sex = #{memberSex,jdbcType=TINYINT}, |
|
|
|
|
|
member_phone = #{memberPhone,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |