| 
					
				 | 
			
			
				@@ -177,7 +177,7 @@ public class MzPharmacyServiceImpl implements MzPharmacyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<YpMzFytj> ypMzFytjs = new ArrayList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Employee employee = employeeMapper.selectByUserCode(cfxxList.get(0).getDoctorCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (MzSendMedicineVo mzSendMedicineVo : cfxxList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (Double.parseDouble(mzSendMedicineVo.getQuantity()) > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (Double.parseDouble(mzSendMedicineVo.getQuantity()) > 0 && !mzSendMedicineVo.getPaySelf().equals("1")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 YpMzFytj ypMzFytj = new YpMzFytj(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ypMzFytj.setPatientId(mzSendMedicineVo.getPatientId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ypMzFytj.setTimes(mzSendMedicineVo.getTimes()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -204,9 +204,6 @@ public class MzPharmacyServiceImpl implements MzPharmacyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (mzPharmacyMapper.insertFyclFytj(ypMzFytj) < 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 throw new MzException("保存发药统计数据为空,发药处理失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (mzPharmacyMapper.updateFyclChargeDetailConfirmFlag(ypMzFytj) < 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                throw new MzException("修改发药状态数据为空,发药处理失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             MzRefundMedicineVo mzRefundMedicineVo = new MzRefundMedicineVo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mzRefundMedicineVo.setChargeCode(ypMzFytj.getChargeItemCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mzRefundMedicineVo.setSerial(ypMzFytj.getSerial()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -222,6 +219,11 @@ public class MzPharmacyServiceImpl implements MzPharmacyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 log.info("更新药房库存数据成功[{}]", JSONObject.valueToString(mzRefundMedicineVo)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mzChargeDetail.setConfirmTime(date); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mzChargeDetail.setConfirmId(user.getUserIdCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (mzPharmacyMapper.updateFyclChargeDetailConfirmFlag(mzChargeDetail) < 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new MzException("修改发药状态数据为空,发药处理失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         resultMap.put("code", 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         resultMap.put("message", "发药处理成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return resultMap; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -344,6 +346,11 @@ public class MzPharmacyServiceImpl implements MzPharmacyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return mzPharmacyMapper.selectIncludeWfyPrescription(patientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public int queryConfirmFlagByRealNo(Integer realNo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return mzPharmacyMapper.selectConfirmFlagByRealNo(realNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<ChargeDetailInfoVo> getFyclWfyPrescription(ChargeFeeParamsVo chargeFeeParamsVo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return mzPharmacyMapper.selectFyclWfyPrescription(chargeFeeParamsVo); 
			 |