|
@@ -50,6 +50,8 @@ public class ChargeFeeVoController {
|
|
|
private MzPatientMiService mzPatientMiService;
|
|
|
@Autowired
|
|
|
private MzmxsrService mzmxsrService;
|
|
|
+ @Autowired
|
|
|
+ private MzReceiptSerialService mzReceiptSerialService;
|
|
|
/**
|
|
|
* 查询日结列表收费清单 未结账
|
|
|
*
|
|
@@ -1175,4 +1177,37 @@ public class ChargeFeeVoController {
|
|
|
ExcelUtil.exportExcelForThmzmxsrs(request, response, mzmxsrs);
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询费用不一致接口
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getDiff", method = {RequestMethod.GET})
|
|
|
+ public Map<String, Object> getDiff(@RequestParam("beginDate") String beginDate,@RequestParam("endDate") String endDate) {
|
|
|
+ List<String> mzPatientIds = mzmxsrService.queryAllPatientId(beginDate,endDate);
|
|
|
+ if (mzPatientIds != null && mzPatientIds.size() > 0) {
|
|
|
+ ThmzmxsrParamsVo thmzmxsrParamsVo = new ThmzmxsrParamsVo();
|
|
|
+ thmzmxsrParamsVo.setCaseType(YesNoEnum.NO.code.toString());
|
|
|
+ thmzmxsrParamsVo.setBeginDate(DateUtil.pase(beginDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ thmzmxsrParamsVo.setEndDate(DateUtil.pase(endDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ thmzmxsrParamsVo.setOffset(0);
|
|
|
+ for (String str :mzPatientIds){
|
|
|
+ thmzmxsrParamsVo.setPatientIds(Arrays.asList(str));
|
|
|
+ BigDecimal amount=mzmxsrService.querySumAmount(thmzmxsrParamsVo).setScale(1, BigDecimal.ROUND_HALF_UP);
|
|
|
+ BigDecimal fpAmount= mzReceiptSerialService.querySumByPatientId(beginDate,endDate,str).setScale(1, BigDecimal.ROUND_HALF_UP);
|
|
|
+ if(amount.compareTo(fpAmount)!=0){
|
|
|
+ log.info("--------------费用明细统计金额 {},发票金额 {},病人id {}-----------------",amount,fpAmount,str);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ System.out.println("计算结束");
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|