|
@@ -473,6 +473,11 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.RPC_ERROR, "医院不一致");
|
|
|
}
|
|
|
|
|
|
+ boolean isQuoteShow = sysSetFacade.isQuoteShow(inquiryQuoteVO.getHospitalCode());
|
|
|
+ if (!isQuoteShow && inquiryInfo.getIsQuoted() == 1) {
|
|
|
+ throw new CommonException(CommonErrorCode.RPC_ERROR, "病历已引用过");
|
|
|
+ }
|
|
|
+
|
|
|
Date now = DateUtil.now();
|
|
|
InquiryQuote inquiryQuote = null;
|
|
|
if (inquiryInfo.getIsQuoted() == 0) {
|
|
@@ -487,7 +492,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
|
// inquiryInfo.setPatientBirthday(inquiryQuoteVO.getPatientInfo().getBirthday());
|
|
|
// inquiryInfo.setPatientPhone(inquiryQuoteVO.getPatientInfo().getPhone());
|
|
|
// inquiryInfo.setPatientSex(inquiryQuoteVO.getPatientInfo().getSex());
|
|
|
- } else if (sysSetFacade.isQuoteShow(inquiryQuoteVO.getHospitalCode())) {
|
|
|
+ } else if (isQuoteShow) {
|
|
|
QueryWrapper<InquiryQuote> inquiryQuoteQe = new QueryWrapper<>();
|
|
|
inquiryQuoteQe.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("inquiry_id", inquiryQuoteVO.getInquiryId())
|
|
@@ -567,6 +572,11 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.RPC_ERROR, "医院不一致");
|
|
|
}
|
|
|
|
|
|
+ boolean isQuoteShow = sysSetFacade.isQuoteShow(inquiryQuoteForIcssVO.getHospitalCode());
|
|
|
+ if (!isQuoteShow && inquiryInfo.getIsQuoted() == 1) {
|
|
|
+ throw new CommonException(CommonErrorCode.RPC_ERROR, "病历已引用过");
|
|
|
+ }
|
|
|
+
|
|
|
Date now = DateUtil.now();
|
|
|
InquiryQuote inquiryQuote = null;
|
|
|
if (inquiryInfo.getIsQuoted() == 0) {
|
|
@@ -587,7 +597,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
|
// inquiryInfo.setPatientPhone(inquiryQuoteForIcssVO.getPatientPhone());
|
|
|
// inquiryInfo.setPatientSex(inquiryQuoteForIcssVO.getPatientSex());
|
|
|
updateById(inquiryInfo);
|
|
|
- } else if (sysSetFacade.isQuoteShow(inquiryQuoteForIcssVO.getHospitalCode())) {
|
|
|
+ } else if (isQuoteShow) {
|
|
|
QueryWrapper<InquiryQuote> inquiryQuoteQe = new QueryWrapper<>();
|
|
|
inquiryQuoteQe.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("inquiry_id", inquiryQuoteForIcssVO.getInquiryId())
|