|  | @ -63,8 +63,25 @@ public class PrescriptionExpressageService {
 | 
	
		
			
				|  |  |             prescriptionLogDao.save(prescriptionLog);
 | 
	
		
			
				|  |  |             return -1;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         //判断是否是取药码
 | 
	
		
			
				|  |  |         if (prescriptionDispensaryCode.getType() != 2) {
 | 
	
		
			
				|  |  |             //保存取药失败的日志
 | 
	
		
			
				|  |  |             PrescriptionLog prescriptionLog = new PrescriptionLog();
 | 
	
		
			
				|  |  |             prescriptionLog.setCode(UUID.randomUUID().toString());
 | 
	
		
			
				|  |  |             prescriptionLog.setPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
 | 
	
		
			
				|  |  |             prescriptionLog.setCreateTime(new Date());
 | 
	
		
			
				|  |  |             prescriptionLog.setType(PrescriptionLog.PrescriptionLogType.expressage);
 | 
	
		
			
				|  |  |             prescriptionLog.setFlag(1);
 | 
	
		
			
				|  |  |             prescriptionLog.setUserCode(userCode);
 | 
	
		
			
				|  |  |             prescriptionLog.setUserType(2);
 | 
	
		
			
				|  |  |             prescriptionLog.setType(42);
 | 
	
		
			
				|  |  |             prescriptionLog.setRemark("配送失败,处方编码不是取药码");
 | 
	
		
			
				|  |  |             prescriptionLogDao.save(prescriptionLog);
 | 
	
		
			
				|  |  |             return -1;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //修改处方状态为完成
 | 
	
		
			
				|  |  |         prescriptionDao.updateStatus(prescriptionDispensaryCode.getPrescriptionCode(),100);
 | 
	
		
			
				|  |  |         prescriptionDao.updateStatus(prescriptionDispensaryCode.getPrescriptionCode(), 100);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //保存配送成功的日志
 | 
	
		
			
				|  |  |         PrescriptionLog prescriptionLog = new PrescriptionLog();
 |