|
@@ -5,17 +5,20 @@
|
|
|
<mapper namespace="com.fs.handwrite.mapper.HandwriteCollectionMapper">
|
|
<mapper namespace="com.fs.handwrite.mapper.HandwriteCollectionMapper">
|
|
|
|
|
|
|
|
<resultMap type="HandwriteCollection" id="HandwriteCollectionResult">
|
|
<resultMap type="HandwriteCollection" id="HandwriteCollectionResult">
|
|
|
- <result property="id" column="id" />
|
|
|
|
|
- <result property="patientName" column="patient_name" />
|
|
|
|
|
- <result property="patientPhone" column="patient_phone" />
|
|
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
|
|
- <result property="billImgUrl" column="bill_img_url" />
|
|
|
|
|
- <result property="orderCode" column="order_code" />
|
|
|
|
|
|
|
+ <result property="id" column="id" />
|
|
|
|
|
+ <result property="patientName" column="patient_name" />
|
|
|
|
|
+ <result property="patientPhone" column="patient_phone" />
|
|
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
|
|
+ <result property="billImgUrl" column="bill_img_url" />
|
|
|
|
|
+ <result property="orderCode" column="order_code" />
|
|
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
|
|
+ <result property="companyUserId" column="company_user_id"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectHandwriteCollectionVo">
|
|
<sql id="selectHandwriteCollectionVo">
|
|
|
- select id, patient_name, patient_phone, create_time, update_time, bill_img_url, order_code
|
|
|
|
|
|
|
+ select id, patient_name, patient_phone, create_time, update_time, bill_img_url, order_code, create_by, update_by, company_user_id
|
|
|
from fs_handwrite_collection
|
|
from fs_handwrite_collection
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -44,6 +47,9 @@
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="billImgUrl != null">bill_img_url,</if>
|
|
<if test="billImgUrl != null">bill_img_url,</if>
|
|
|
<if test="orderCode != null">order_code,</if>
|
|
<if test="orderCode != null">order_code,</if>
|
|
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
|
|
+ <if test="companyUserId != null">company_user_id,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="patientName != null">#{patientName},</if>
|
|
<if test="patientName != null">#{patientName},</if>
|
|
@@ -52,6 +58,9 @@
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="billImgUrl != null">#{billImgUrl},</if>
|
|
<if test="billImgUrl != null">#{billImgUrl},</if>
|
|
|
<if test="orderCode != null">#{orderCode},</if>
|
|
<if test="orderCode != null">#{orderCode},</if>
|
|
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
+ <if test="companyUserId != null">#{companyUserId},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -64,6 +73,9 @@
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="billImgUrl != null">bill_img_url = #{billImgUrl},</if>
|
|
<if test="billImgUrl != null">bill_img_url = #{billImgUrl},</if>
|
|
|
<if test="orderCode != null">order_code = #{orderCode},</if>
|
|
<if test="orderCode != null">order_code = #{orderCode},</if>
|
|
|
|
|
+ <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>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|