소스 검색

处方表增加制单状态字段

cgp 3 일 전
부모
커밋
e28258d6a4

+ 3 - 0
fs-service/src/main/java/com/fs/his/domain/FsPrescribeDataScrm.java

@@ -187,4 +187,7 @@ public class FsPrescribeDataScrm extends BaseEntity {
 
     /** 舌诊、面诊、手诊 */
     private String facialDiagnosis;
+
+    /** 是否制单(0:否,1:是),只有值为0才能被医生修改 */
+    private Integer isDocument;
 }

+ 7 - 1
fs-service/src/main/resources/mapper/his/FsPrescribeDataScrmMapper.xml

@@ -61,6 +61,7 @@
         <result property="healingAreaJson"            column="healing_area_json"           />
         <result property="noteTaboos"                 column="note_taboos"                 />
         <result property="facialDiagnosis"            column="facial_diagnosis"            />
+        <result property="isDocument"                 column="is_document"                 />
         <result property="createBy"                   column="create_by"                   />
         <result property="updateBy"                   column="update_by"                   />
         <result property="updateTime"                 column="update_time"                 />
@@ -77,7 +78,7 @@
                prescribe_code_url, cycle, icd_code, source, doctor_confirm, start_operate_time,
                end_operate_time, operate_second, third_party_user_id, is_send_to_third_party,
                handwrite_collection_id, company_customer_id,
-               food_and_exercise_guidance, healing_area_json, note_taboos, facial_diagnosis
+               food_and_exercise_guidance, healing_area_json, note_taboos, facial_diagnosis,is_document
         from fs_prescribe_data_scrm
     </sql>
 
@@ -109,6 +110,7 @@
             <if test="doctorConfirm != null"> and doctor_confirm = #{doctorConfirm}</if>
             <if test="isSendToThirdParty != null"> and is_send_to_third_party = #{isSendToThirdParty}</if>
             <if test="companyCustomerId != null"> and company_customer_id = #{companyCustomerId}</if>
+            <if test="isDocument != null"> and is_document = #{isDocument}</if>
             <if test="foodAndExerciseGuidance != null and foodAndExerciseGuidance != ''">
                 and food_and_exercise_guidance like concat('%', #{foodAndExerciseGuidance}, '%')
             </if>
@@ -142,6 +144,7 @@
             <if test="prescribeCode != null and prescribeCode != ''"> and pds.prescribe_code = #{prescribeCode}</if>
             <if test="patientName != null and patientName != ''"> and pds.patient_name like concat('%', #{patientName}, '%')</if>
             <if test="doctorId != null"> and pds.doctor_id = #{doctorId}</if>
+            <if test="isDocument != null"> and pds.is_document = #{isDocument}</if>
             <if test="doctorConfirm != null"> and pds.doctor_confirm = #{doctorConfirm}</if>
         </where>
         order by create_time desc
@@ -235,6 +238,7 @@
             <if test="healingAreaJson != null">healing_area_json,</if>
             <if test="noteTaboos != null">note_taboos,</if>
             <if test="facialDiagnosis != null">facial_diagnosis,</if>
+            <if test="isDocument != null">is_document,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="prescribeType != null">#{prescribeType},</if>
@@ -292,6 +296,7 @@
             <if test="healingAreaJson != null">#{healingAreaJson},</if>
             <if test="noteTaboos != null">#{noteTaboos},</if>
             <if test="facialDiagnosis != null">#{facialDiagnosis},</if>
+            <if test="isDocument != null">#{isDocument},</if>
         </trim>
     </insert>
 
@@ -353,6 +358,7 @@
             <if test="healingAreaJson != null">healing_area_json = #{healingAreaJson},</if>
             <if test="noteTaboos != null">note_taboos = #{noteTaboos},</if>
             <if test="facialDiagnosis != null">facial_diagnosis = #{facialDiagnosis},</if>
+            <if test="isDocument != null">is_document = #{isDocument},</if>
         </trim>
         where prescribe_id = #{prescribeId}
     </update>