Browse Source

结算与对账增加查看结算明细和结算单功能

hsh 2 years ago
parent
commit
c7476642fb

+ 7 - 0
src/main/java/thyyxxk/webserver/controller/medicalinsurance/SiManageController.java

@@ -197,4 +197,11 @@ public class SiManageController {
     public ResultVo<String> uploadEmergencyRecord(@RequestParam("patNo") String patNo, @RequestParam("times") int times) {
         return service.uploadEmergencyRecord(patNo, times);
     }
+
+    @GetMapping("/selectSetlPrescription")
+    public ResultVo<List<Map<String, Object>>> selectSetlPrescription(@RequestParam("mdtrtId") String mdtrtId) {
+        return service.selectSetlPrescription(mdtrtId);
+    }
+
+
 }

+ 8 - 0
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/SiManageDao.java

@@ -18,6 +18,7 @@ import thyyxxk.webserver.entity.medicalinsurance.manage.frontsheet.Diseinfo;
 import thyyxxk.webserver.entity.medicalinsurance.manage.orderinfo.ActOrder;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  * @author: DingJie
@@ -227,4 +228,11 @@ public interface SiManageDao {
     @Select("select mdtrtSn=pat_no+'_'+cast(times as varchar),medrcdno=pat_no+'_'+cast(times as varchar) " +
             "from t_si_setlinfo where pat_no=#{patNo} and times=#{times}")
     List<EmergencyOprninfo> selectEmergencyOprninfos(@Param("patNo") String patNo, @Param("times") int times);
+
+    @Select(" select mdtrt_id as mdtrtId, setl_id as setlId, hilist_name as hilistName, hilist_code as hilistCode, " +
+            " fee_ocur_time as feeOcurTime, det_item_fee_sumamt as totalFee, pric, cnt, " +
+            " bilg_dept_name as bilgDeptName, bilg_dr_name as bilgDrName, opter_name as opterName, " +
+            " opt_time as optTime, chrgitm_lv_name as chrgitmLvName " +
+            " from t_si_setl_fee_detl where mdtrt_id = #{mdtrtId} ")
+    List<Map<String, Object>> selectSetlPrescription(@Param("mdtrtId") String mdtrtId);
 }

+ 5 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiManageService.java

@@ -689,4 +689,9 @@ public class SiManageService {
         log.info("【操作员:{}】,急诊留观手术及抢救信息上传:\n参数:{},\n结果:{}", TokenUtil.getTokenUserId(), input, result);
         return SiUtil.makeReturnWithoutOutput(result, "急诊留观手术及抢救信息上传成功。");
     }
+
+    public ResultVo<List<Map<String, Object>>> selectSetlPrescription(String mdtrtId){
+        List<Map<String, Object>> result = dao.selectSetlPrescription(mdtrtId);
+        return ResultVoUtil.success(result);
+    }
 }