|
@@ -172,10 +172,10 @@ public class MzReceiptSerialServiceImpl implements MzReceiptSerialService {
|
|
|
throw new MzException("打印失败,发票为空!");
|
|
|
}
|
|
|
Receipt receipt = receiptMapper.selectByUserIdCode(user.getUserIdCode());
|
|
|
- String receiptCurrent=receipt.getReceiptCurrent();
|
|
|
if (receipt == null || StringUtils.isBlank(receipt.getReceiptCurrent())) {
|
|
|
throw new MzException("用户id=" + user.getUserName() + "没有可用的门诊发票,请先维护发票。");
|
|
|
}
|
|
|
+ String receiptCurrent=receipt.getReceiptCurrent();
|
|
|
List<ZdChequeType> chequeTypes = zdChequeTypeService.queryAllZdChequeType();
|
|
|
Map<String, Integer> printFlagMap = chequeTypes.stream().collect(Collectors.toMap(ZdChequeType::getCode, ZdChequeType::getPrintFlag));
|
|
|
Map<String, String> nameMap = chequeTypes.stream().collect(Collectors.toMap(ZdChequeType::getCode, ZdChequeType::getName));
|