|  | @@ -16,6 +16,7 @@ import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
 | 
	
		
			
				|  |  |  import lombok.extern.slf4j.Slf4j;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Isolation;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Propagation;
 | 
	
	
		
			
				|  | @@ -59,6 +60,10 @@ public class MzPatientMiServiceImpl implements MzPatientMiService {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private HaiCiAdapterService haiCiAdapterService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    //是否修改LIS数据开关
 | 
	
		
			
				|  |  | +    @Value("${updateLisData}")
 | 
	
		
			
				|  |  | +    private boolean updateLisData;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public MzPatientMi queryByIcCardNo(String icCardNo) {
 | 
	
		
			
				|  |  |          return mzPatientMiMapper.selectByIcCardNo(icCardNo);
 | 
	
	
		
			
				|  | @@ -106,10 +111,12 @@ public class MzPatientMiServiceImpl implements MzPatientMiService {
 | 
	
		
			
				|  |  |                  mzyReqrecMapper.updateNameByPatientIdAndTimes(mzPatientMi.getName(), mzPatientMi.getPatientId(), null);
 | 
	
		
			
				|  |  |                  //医技检查
 | 
	
		
			
				|  |  |                  yjJcPatientMapper.updateYjJcPatient(new YjJcPatient(mzPatientMi.getPatientId(),mzPatientMi.getName()));
 | 
	
		
			
				|  |  | -                //lis订单信息
 | 
	
		
			
				|  |  | -                mOrderInfoMapper.updateMOrderInfo(new MOrderInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
 | 
	
		
			
				|  |  | -                //lis病人信息
 | 
	
		
			
				|  |  | -                mPtntInfoMapper.updateMPtntInfo(new MPtntInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
 | 
	
		
			
				|  |  | +                if(updateLisData){
 | 
	
		
			
				|  |  | +                    //lis订单信息
 | 
	
		
			
				|  |  | +                    mOrderInfoMapper.updateMOrderInfo(new MOrderInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
 | 
	
		
			
				|  |  | +                    //lis病人信息
 | 
	
		
			
				|  |  | +                    mPtntInfoMapper.updateMPtntInfo(new MPtntInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  //住院病人姓名
 | 
	
		
			
				|  |  |                  aPatientMiMapper.updateMzPatientMiByMzno(new APatientMi(mzPatientMi.getPatientId(),mzPatientMi.getName()));
 | 
	
		
			
				|  |  |                  //修改住院病人
 |