|
|
@@ -15,16 +15,17 @@
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="companyUserId" column="company_user_id"/>
|
|
|
+ <result property="extraImgUrl" column="extra_img_url"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectHandwriteCollectionVo">
|
|
|
- select id, patient_name, patient_phone, create_time, update_time, bill_img_url, order_code, create_by, update_by, company_user_id
|
|
|
+ select id, patient_name, patient_phone, create_time, update_time, bill_img_url, order_code, create_by, update_by, company_user_id,extra_img_url
|
|
|
from fs_handwrite_collection
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectHandwriteCollectionList" parameterType="HandwriteCollection" resultMap="HandwriteCollectionResult">
|
|
|
select hc.id, hc.patient_name, hc.patient_phone, hc.create_time, hc.update_time,
|
|
|
- hc.bill_img_url, hc.order_code, hc.create_by, hc.update_by, hc.company_user_id,
|
|
|
+ hc.bill_img_url, hc.order_code, hc.create_by, hc.update_by, hc.company_user_id,hc.extra_img_url,
|
|
|
cu.nick_name as companyUserName
|
|
|
from fs_handwrite_collection hc left join company_user cu on cu.user_id = hc.company_user_id
|
|
|
<where>
|
|
|
@@ -54,6 +55,7 @@
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="companyUserId != null">company_user_id,</if>
|
|
|
+ <if test="extraImgUrl != null">extra_img_url,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="patientName != null">#{patientName},</if>
|
|
|
@@ -65,6 +67,7 @@
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="companyUserId != null">#{companyUserId},</if>
|
|
|
+ <if test="extraImgUrl != null">#{extraImgUrl},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -80,6 +83,7 @@
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
|
+ <if test="extraImgUrl != null">extra_img_url = #{extraImgUrl},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|