|
|
@@ -53,6 +53,58 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="loadAfterAuditPageList"
|
|
|
+ resultType="org.jeecg.modules.medical.common.bo.mid.AuditMidDetailListResponse">
|
|
|
+
|
|
|
+ SELECT
|
|
|
+ id
|
|
|
+ ,proejct_code as projectCode
|
|
|
+ ,proejct_name as projectName
|
|
|
+ ,patient_id,
|
|
|
+ patient_name,
|
|
|
+ treatment_type,
|
|
|
+ medical_dept_name,
|
|
|
+ doctor_name,
|
|
|
+ doctor_id,
|
|
|
+ create_time,
|
|
|
+ amount
|
|
|
+ ,(SELECT feedback_code from afterwards_audit WHERE id = afterwards_audit_id) as feedback_code
|
|
|
+ ,(SELECT feedback_result from afterwards_audit WHERE id = afterwards_audit_id) as feedback_result
|
|
|
+ ,description
|
|
|
+ FROM
|
|
|
+ afterwards_audit_detail
|
|
|
+ <where>
|
|
|
+ <if test="ew.projectSearch != null and ew.projectSearch != '' ">
|
|
|
+ AND(
|
|
|
+ proejct_code LIKE concat(concat('%',#{ew.projectSearch}),'%')
|
|
|
+ or
|
|
|
+ proejct_name LIKE concat(concat('%',#{ew.projectSearch}),'%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="ew.treatmentType != null and ew.treatmentType != '' ">
|
|
|
+ AND treatment_type = #{ew.treatmentType}
|
|
|
+ </if>
|
|
|
+ <if test="ew.doctorName != null and ew.doctorName != '' ">
|
|
|
+ AND doctor_name LIKE concat(concat('%',#{ew.doctorName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="ew.medicalDeptName != null and ew.medicalDeptName != ''">
|
|
|
+ AND medical_dept_name = #{ew.medicalDeptName}
|
|
|
+ </if>
|
|
|
+ <if test="ew.startTime != null and ew.startTime != '' ">
|
|
|
+ AND <![CDATA[ create_time >= #{ew.startTime} ]]>
|
|
|
+ </if>
|
|
|
+ <if test="ew.endTime != null and ew.endTime != '' ">
|
|
|
+ AND <![CDATA[ create_time <= #{ew.endTime} ]]>
|
|
|
+ </if>
|
|
|
+ <if test="ew.medicalProjectCode != null and ew.medicalProjectCode != null" >
|
|
|
+ AND medical_project_code = #{ew.medicalProjectCode}
|
|
|
+ </if>
|
|
|
+ <if test="ew.medicalInsRuleInfoCode != null and ew.medicalInsRuleInfoCode != ''">
|
|
|
+ AND medical_ins_rule_info_code = #{ew.medicalInsRuleInfoCode}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="statisticsMidAuditTotal" resultType="java.math.BigDecimal">
|
|
|
SELECT
|
|
|
ifnull(sum(amount), 0) as totalAmount
|