|
@@ -127,6 +127,9 @@ public class MzReceiptSerialServiceImpl implements MzReceiptSerialService {
|
|
|
@Override
|
|
|
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
|
|
|
public String printReceiptSerial(MzReceiptSerial mzReceiptSerial, User user) throws MzException {
|
|
|
+ if(Constants.HLWYY_CODE.equals(mzReceiptSerial.getOperatorId())){
|
|
|
+ throw new MzException("互联网医院平台缴费无法在门诊窗口打印发票,请让患者联系互联网医院平台!");
|
|
|
+ }
|
|
|
Receipt receipt = receiptMapper.selectByUserIdCode(user.getUserIdCode());
|
|
|
if (receipt == null || StringUtils.isBlank(receipt.getReceiptCurrent())) {
|
|
|
throw new MzException("用户id=" + user.getUserName() + "没有可用的门诊发票,请先维护发票。");
|