浏览代码

申诉列表查询sql修改及gateway-service-debug redis配置修改

zhanghang 3 年之前
父节点
当前提交
3a19a8a7a5

+ 4 - 4
config-center/src/main/resources/shared/gateway-service-debug.yml

@@ -1,8 +1,8 @@
 spring:
   redis:
-    database: 12
-    host: 192.168.2.237 # Redis服务器地址
-    port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
-    password: emrais # Redis服务器连接密码(默认为空)
+    database: 8
+    host: 192.168.2.126 # Redis服务器地址
+    port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
+    password: lantone # Redis服务器连接密码(默认为空)
 
 swagger.show: true

+ 10 - 40
report-service/src/main/resources/mapper/AppealExamineInfoMapper.xml

@@ -34,55 +34,25 @@
         a.is_reject,
         a.cases_id
         FROM
-        (
-        SELECT
-        *
-        FROM
-        `med_appeal_info`
-        WHERE
-        (gmt_create IN (
-        SELECT
-        max(gmt_create)
-        FROM
-        med_appeal_info
-        WHERE
-        cases_entry_id IS NOT NULL
-        GROUP BY
-        hospital_id,
-        behospital_code,
-        cases_entry_id,
-        qcresult_detail_id
-        )
-        OR gmt_create IN (
-        SELECT
-        gmt_create
-        FROM
-        med_appeal_info
+        `med_appeal_info` a
+        LEFT JOIN med_behospital_info b ON a.behospital_code = b.behospital_code
         WHERE
-        cases_entry_id IS NULL
-        GROUP BY
-        appeal_explain
-        )
-        )
-        AND is_deleted = 'N'
-        AND hospital_id = #{getComplaintRecordVO.hospitalId}
-        AND claimant_id = #{getComplaintRecordVO.complaintId}
+        a.hospital_id = b.hospital_id
+        AND a.is_deleted = 'N'
+        AND a.hospital_id = #{getComplaintRecordVO.hospitalId}
+        AND a.claimant_id = #{getComplaintRecordVO.complaintId}
         <if test="getComplaintRecordVO.complaintDateStart != null ">
-            <![CDATA[ AND gmt_create >= #{getComplaintRecordVO.complaintDateStart}]]>
+            <![CDATA[ AND a.gmt_create >= #{getComplaintRecordVO.complaintDateStart}]]>
         </if>
         <if test="getComplaintRecordVO.complaintDateEnd != null ">
-            <![CDATA[ AND gmt_create <= #{getComplaintRecordVO.complaintDateEnd}]]>
+            <![CDATA[ AND a.gmt_create <= #{getComplaintRecordVO.complaintDateEnd}]]>
         </if>
         <if test="getComplaintRecordVO.casesName != null and getComplaintRecordVO.casesName != '' ">
-            <![CDATA[ AND cases_name = #{getComplaintRecordVO.casesName}]]>
+            <![CDATA[ AND a.cases_name = #{getComplaintRecordVO.casesName}]]>
         </if>
         <if test="getComplaintRecordVO.operationType != null and getComplaintRecordVO.operationType != '' ">
-            <![CDATA[ AND appeal_operation_type = #{getComplaintRecordVO.operationType}]]>
+            <![CDATA[ AND a.appeal_operation_type = #{getComplaintRecordVO.operationType}]]>
         </if>
-        ) a
-        LEFT JOIN med_behospital_info b ON a.behospital_code = b.behospital_code
-        WHERE
-        a.hospital_id = b.hospital_id
         <if test="getComplaintRecordVO.isPlacefile != null and getComplaintRecordVO.isPlacefile != '' ">
             <![CDATA[ AND b.is_placefile = #{getComplaintRecordVO.isPlacefile}]]>
         </if>