Browse Source

总后台优化手写初诊单,手写信息采集页面,支持多张图片展示

cgp 6 days ago
parent
commit
f3ce5be067

+ 3 - 0
fs-service/src/main/java/com/fs/handwrite/domain/HandwriteCollection.java

@@ -56,6 +56,9 @@ public class HandwriteCollection implements Serializable
     @Excel(name = "更新人")
     private Long updateBy;
 
+    /** 补充图片,支持多张","隔开*/
+    private String extraImgUrl;
+
     /** 销售id*/
     private Long companyUserId;
 

+ 1 - 1
fs-service/src/main/java/com/fs/handwrite/domain/HandwritePatientForm.java

@@ -39,7 +39,7 @@ public class HandwritePatientForm implements Serializable
     @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
     private Date updateTime;
 
-    /** 初诊单url */
+    /** 初诊单url,支持多张","隔开*/
     @Excel(name = "初诊单url")
     private String billImgUrl;
 

+ 6 - 2
fs-service/src/main/resources/mapper/handwrite/HandwriteCollectionMapper.xml

@@ -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>