|
@@ -187,10 +187,10 @@
|
|
|
WHERE ad.id = #{id,jdbcType=INTEGER};
|
|
|
</select>
|
|
|
|
|
|
- <select id="loadAuditInfoList" resultType="org.jeecg.modules.medical.common.bo.AuditInfoListResponse">
|
|
|
+ <!--<select id="loadAuditInfoList" resultType="org.jeecg.modules.medical.common.bo.AuditInfoListResponse">
|
|
|
SELECT
|
|
|
tdetail.*,
|
|
|
- (tdetail.amount - (tdetail.quantity * tdetail.price)) as errorDetailAmt -- 异常金额
|
|
|
+ (tdetail.amount - (tdetail.quantity * tdetail.price)) as errorDetailAmt -- 异常金额
|
|
|
FROM (
|
|
|
SELECT
|
|
|
case t.project_type
|
|
@@ -202,13 +202,13 @@
|
|
|
WHEN 'medicine' THEN m.max_sale_limit
|
|
|
WHEN 'consumable' THEN c.price
|
|
|
WHEN 'diagnoses' THEN d.price
|
|
|
- else 0 end as price, -- 单价
|
|
|
- t.quantity as quantity, -- 数量
|
|
|
+ else 0 end as price, -- 单价
|
|
|
+ t.quantity as quantity, -- 数量
|
|
|
t.amount,
|
|
|
- t.patient_id as patientId, -- 患者编号
|
|
|
- t.medical_project_code as medicalProjectCode, -- "医保项目编码",
|
|
|
- t.medical_project_name as medicalProjectName, -- "医保项目名称",
|
|
|
- t.medical_ins_rule_info_name as medicalInsRuleInfoName, -- "项目类型|违规类型"
|
|
|
+ t.patient_id as patientId, -- 患者编号
|
|
|
+ t.medical_project_code as medicalProjectCode, -- "医保项目编码",
|
|
|
+ t.medical_project_name as medicalProjectName, -- "医保项目名称",
|
|
|
+ t.medical_ins_rule_info_name as medicalInsRuleInfoName, -- "项目类型|违规类型"
|
|
|
t.proejct_code,
|
|
|
t.proejct_name,
|
|
|
t.id
|
|
@@ -218,6 +218,25 @@
|
|
|
left JOIN diagnosis_treatment as d on t.proejct_code = d.project_code AND t.project_type = 'diagnoses'
|
|
|
WHERE t.afterwards_audit_id = #{id,jdbcType=INTEGER})
|
|
|
as tdetail
|
|
|
+ </select>-->
|
|
|
+
|
|
|
+ <select id="loadAuditInfoList" resultType="org.jeecg.modules.medical.common.bo.AuditInfoListResponse">
|
|
|
+ SELECT
|
|
|
+ t.project_type,
|
|
|
+ t.proejct_code,
|
|
|
+ t.error_relatively_many_amt,
|
|
|
+ t.error_relatively_few_amt,
|
|
|
+ t.quantity as quantity, -- 数量
|
|
|
+ t.amount,
|
|
|
+ t.patient_id as patientId, -- 患者编号
|
|
|
+ t.medical_project_code as medicalProjectCode, -- "医保项目编码",
|
|
|
+ t.medical_project_name as medicalProjectName, -- "医保项目名称",
|
|
|
+ t.medical_ins_rule_info_name as medicalInsRuleInfoName, -- "项目类型|违规类型"
|
|
|
+ t.proejct_code,
|
|
|
+ t.proejct_name,
|
|
|
+ t.id
|
|
|
+ FROM afterwards_audit_detail as t
|
|
|
+ WHERE t.afterwards_audit_id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<select id="loadDiagnosticInfo" resultType="org.jeecg.modules.medical.common.bo.DiagnosticInfoResponse">
|
|
|
SELECT
|