|
@@ -2,13 +2,16 @@ package cn.hnthyy.thmz.service.impl.his.mz;
|
|
|
|
|
|
import cn.hnthyy.thmz.Utils.AssertUtil;
|
|
|
import cn.hnthyy.thmz.Utils.DateUtil;
|
|
|
+import cn.hnthyy.thmz.common.Constants;
|
|
|
import cn.hnthyy.thmz.entity.his.mz.*;
|
|
|
import cn.hnthyy.thmz.entity.his.zy.ZyBedPreMsg;
|
|
|
+import cn.hnthyy.thmz.enums.NumberEnum;
|
|
|
import cn.hnthyy.thmz.enums.ZyReqEnum;
|
|
|
import cn.hnthyy.thmz.mapper.his.mz.*;
|
|
|
import cn.hnthyy.thmz.service.his.mz.MzZyReqService;
|
|
|
import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.convert.Convert;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -154,7 +157,7 @@ public class MzZyReqServiceImpl implements MzZyReqService {
|
|
|
mzZyReq.setVisitDate(new Date());
|
|
|
mzZyReq.setName(mzPatientMi.getName());
|
|
|
mzZyReq.setPatientId(mzPatientMi.getPatientId());
|
|
|
- mzZyReq.setResponceType(mzPatientMi.getResponseType());
|
|
|
+ mzZyReq.setResponceType(Convert.toInt(NumberEnum.FOUR.getCode()).equals(mzZyReq.getRouteOfAdmission()) ? Constants.GCP_RESPONCE_TYPE_CODE : mzPatientMi.getResponseType());
|
|
|
List<MzZyReq> zyReqList= mzZyReqMapper.selectMzZyReqByDoctorCode(mzZyReq.getPatientId(),mzZyReq.getDoctorCode());
|
|
|
if(CollUtil.isNotEmpty(zyReqList)){
|
|
|
mzZyReqMapper.deleteMzZyReqByDoctorCode(mzZyReq.getPatientId(),mzZyReq.getDoctorCode());
|