|  | @ -5667,13 +5667,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //根据门诊唯一号取就诊记录
 | 
	
		
			
				|  |  | //        List<WlyyOutpatientDO> wlyyOutpatientDOs = outpatientDao.findByAdmNo(admNo);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         WlyyPrescriptionDO wlyyPrescriptionDOS = prescriptionDao.findByAdmNoAndRealOrder(admNo, realOrder);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         List<WlyyPrescriptionDO> wlyyPrescriptionDOList = prescriptionDao.findByAdmNoAndRealOrderList(admNo,realOrder);
 | 
	
		
			
				|  |  |         Object result = "";
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         System.out.println("获取顺丰物流面单信息:wlyyPrescriptionDOS != null=" + wlyyPrescriptionDOS != null);
 | 
	
		
			
				|  |  |         if (wlyyPrescriptionDOS != null) {
 | 
	
		
			
				|  |  |         System.out.println("获取顺丰物流面单信息:wlyyPrescriptionDOS != null=" + wlyyPrescriptionDOList != null);
 | 
	
		
			
				|  |  |         if (wlyyPrescriptionDOList != null) {
 | 
	
		
			
				|  |  |             WlyyPrescriptionDO wlyyPrescriptionDOS = wlyyPrescriptionDOList.get(0);
 | 
	
		
			
				|  |  |             List<WlyyPrescriptionExpressageDO> expressageDOList = sfexpressService.findByField("outpatientId", wlyyPrescriptionDOS.getOutpatientId());
 | 
	
		
			
				|  |  |             WlyyPrescriptionExpressageDO sfexpress_obj = null;
 | 
	
		
			
				|  |  |             System.out.println("获取顺丰物流面单信息:CollectionUtils.isEmpty(expressageDOList)=" + CollectionUtils.isEmpty(expressageDOList));
 | 
	
	
		
			
				|  | @ -5683,7 +5682,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 System.out.println("获取顺丰物流面单信息:1");
 | 
	
		
			
				|  |  |                 sfexpress_obj = expressageDOList.get(0);
 | 
	
		
			
				|  |  |                 System.out.println("获取顺丰物流面单信息:2");
 | 
	
		
			
				|  |  |                 BasePatientDO basePatientDO = basePatientDao.findById(wlyyPrescriptionDOS.getPatientCode());
 | 
	
		
			
				|  |  |                 //如果该处方的快递单号已生成,则说明已经下单成功,不需要重复下单,直接返回面单信息
 | 
	
		
			
				|  |  |                 System.out.println("获取顺丰物流面单信息:3");
 | 
	
		
			
				|  |  |                 if (org.apache.commons.lang.StringUtils.isNotBlank(sfexpress_obj.getMailno())) {
 | 
	
	
		
			
				|  | @ -5712,9 +5710,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                     System.out.println("获取顺丰物流面单信息:6");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 wlyyPrescriptionDOS.setStatus(32);
 | 
	
		
			
				|  |  |                 prescriptionDao.save(wlyyPrescriptionDOS);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 for (WlyyPrescriptionDO prescriptionDO:wlyyPrescriptionDOList){
 | 
	
		
			
				|  |  |                     prescriptionDO.setStatus(32);
 | 
	
		
			
				|  |  |                     prescriptionDao.save(prescriptionDO);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 if (sfexpress_obj != null && StringUtils.isNoneBlank(sfexpress_obj.getMailno())) {
 | 
	
		
			
				|  |  |                     com.alibaba.fastjson.JSONObject object = sfexpressService.postSFOrderQueryService(sfexpress_obj);
 | 
	
		
			
				|  |  |                     System.out.println("获取顺丰物流面单信息7-1"+object.toJSONString());
 |