|
@@ -174,6 +174,13 @@ public class MzReceiptSerialController {
|
|
|
log.info("当前病人发票表中的收费类型为空,无法打印发票,请及时联系管理员,patientId={},time={},receiptNo={}", patientId, times,receiptNo);
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ if(Arrays.asList(Constants.YBJZ,Constants.BYJZ).contains(mzReceiptSerial.getChequeType())){
|
|
|
+ resultMap.put("code", -1);
|
|
|
+ String type = Constants.YBJZ.equals(mzReceiptSerial.getChequeType())?"本院记账":"医保记账";
|
|
|
+ resultMap.put("message", type+"发票无法打印发票,请及时联系管理员");
|
|
|
+ log.info(type+"发票无法打印发票,请及时联系管理员,patientId={},time={},receiptNo={},chequeType={}", patientId, times,receiptNo,mzReceiptSerial.getChequeType());
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
String receipt = mzReceiptSerialService.printReceiptSerial(mzReceiptSerial, tokenUser);
|
|
|
List<Integer> timesList = new ArrayList<>();
|
|
|
List<MzReceiptSerialVo> mzReceiptSerialVos = mzReceiptSerialService.getMzReceiptSerialVos(mzReceiptSerial, timesList, receipt);
|