|
@@ -2325,6 +2325,10 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
if (mzPatientMi == null) {
|
|
|
throw new MzException("当前挂号的病人信息不存在,请先保存病人信息!");
|
|
|
}
|
|
|
+ int num=mzYjReqMapper.select24HourReqByCode(patientId,orderCode);
|
|
|
+ if(num>0){
|
|
|
+ throw new MzException("您在今天已经采过样了,请不要重复申请!");
|
|
|
+ }
|
|
|
//自助开核酸的时候更新病人年龄
|
|
|
if (mzPatientMi.getBirthDay() != null) {
|
|
|
int age = DateUtil.getAge(mzPatientMi.getBirthDay());
|
|
@@ -2374,6 +2378,10 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
if (mzPatientMi == null) {
|
|
|
throw new MzException("当前挂号的病人信息不存在,请先保存病人信息!");
|
|
|
}
|
|
|
+ int num=mzChargeDetailMapper.select24HourReqByCode(patientId,Constants.HYBRID_TEST_CHARGE_CODE);
|
|
|
+ if(num>0){
|
|
|
+ throw new MzException("您在今天已经采过样了,请不要重复申请!");
|
|
|
+ }
|
|
|
//自助开核酸的时候更新病人年龄
|
|
|
if (mzPatientMi.getBirthDay() != null) {
|
|
|
int age = DateUtil.getAge(mzPatientMi.getBirthDay());
|
|
@@ -2434,10 +2442,6 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
|
|
|
@Override
|
|
|
public Clinic nucleicOnlyYellowAcidApplication(String patientId, String opId) throws MzException {
|
|
|
- int num=mzYjReqMapper.select24HourReqByCode(patientId,Constants.NUCLEIC_ORDER_ONLY_YELLOW_CODE);
|
|
|
- if(num>0){
|
|
|
- throw new MzException("您在今天已经采过样了,请不要重复申请!");
|
|
|
- }
|
|
|
return getNucleicAcidApplication(patientId, opId,Constants.NUCLEIC_ORDER_ONLY_YELLOW_CODE);
|
|
|
}
|
|
|
|