|  | @ -54,6 +54,7 @@ import com.yihu.jw.order.pay.utils.PayLogService;
 | 
	
		
			
				|  |  | import com.yihu.jw.order.pay.ylz.YlzPayService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionInfoVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.iot.common.UploadVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.ListEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
	
	
		
			
				|  | @ -86,18 +87,23 @@ import net.sf.json.JSONArray;
 | 
	
		
			
				|  |  | import net.sf.json.xml.XMLSerializer;
 | 
	
		
			
				|  |  | import org.apache.axis.utils.StringUtils;
 | 
	
		
			
				|  |  | import org.apache.commons.collections.map.HashedMap;
 | 
	
		
			
				|  |  | import org.apache.commons.lang.time.DateUtils;
 | 
	
		
			
				|  |  | import org.apache.http.NameValuePair;
 | 
	
		
			
				|  |  | import org.apache.http.message.BasicNameValuePair;
 | 
	
		
			
				|  |  | import org.apache.jasper.tagplugins.jstl.core.Url;
 | 
	
		
			
				|  |  | import org.apache.http.entity.ContentType;
 | 
	
		
			
				|  |  | import org.apache.poi.util.IOUtils;
 | 
	
		
			
				|  |  | import org.apache.tomcat.util.http.fileupload.FileItem;
 | 
	
		
			
				|  |  | import org.apache.tomcat.util.http.fileupload.FileItemFactory;
 | 
	
		
			
				|  |  | import org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory;
 | 
	
		
			
				|  |  | import org.slf4j.Logger;
 | 
	
		
			
				|  |  | import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  | import org.springframework.data.redis.core.StringRedisTemplate;
 | 
	
		
			
				|  |  | import org.springframework.mock.web.MockMultipartFile;
 | 
	
		
			
				|  |  | import org.springframework.util.StreamUtils;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | import org.springframework.web.multipart.MultipartFile;
 | 
	
		
			
				|  |  | import org.springframework.web.multipart.commons.CommonsMultipartFile;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import javax.activation.MimetypesFileTypeMap;
 | 
	
		
			
				|  |  | import javax.servlet.http.HttpServletRequest;
 | 
	
		
			
				|  |  | import javax.servlet.http.HttpServletResponse;
 | 
	
		
			
				|  |  | import java.io.*;
 | 
	
	
		
			
				|  | @ -234,6 +240,11 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private YqfkService yqfkService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Value("${testPattern.sign}")
 | 
	
		
			
				|  |  |     private String isClose;
 | 
	
		
			
				|  |  |     @Value("${testPattern.remote_inner_url}")
 | 
	
		
			
				|  |  |     private String remote_inner_url;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.findDoctorByHospitalAndDiseaseAndDept)
 | 
	
	
		
			
				|  | @ -509,7 +520,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |             return  failedObjEnvelopException(e);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.getUpcomingByDoctor)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取医生待办详情", notes = "获取医生待办详情")
 | 
	
		
			
				|  |  |     public Envelop getUpcomingByDoctor(@ApiParam(name = "doctorIdcard", value = "doctorIdcard", required = true)
 | 
	
	
		
			
				|  | @ -1962,6 +1973,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |             @ApiParam(name = "times", value = "")
 | 
	
		
			
				|  |  |             @RequestParam(value = "times",required = false) Integer times) throws Exception {
 | 
	
		
			
				|  |  |         JSONObject object = new JSONObject();
 | 
	
		
			
				|  |  |         UploadVO uploadVO = new UploadVO();
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //处理语音文件
 | 
	
		
			
				|  |  |         if(!org.springframework.util.StringUtils.isEmpty(wxId)){
 | 
	
	
		
			
				|  | @ -1979,7 +1991,12 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                         voiceurl = fileUploadService.uploadWxVoice(voicepath);
 | 
	
		
			
				|  |  | //					uploadVO.setFullUri(map.get("accessory").toString());
 | 
	
		
			
				|  |  |                     }else {
 | 
	
		
			
				|  |  |                         voiceurl = fileUtil.copyTempVoice(voicepath,fastdfs_file_url);
 | 
	
		
			
				|  |  |                         if(isClose.equals("2")){
 | 
	
		
			
				|  |  |                             voiceurl = fileUploadService.uploadInLocalWxVoice(voicepath,remote_inner_url);
 | 
	
		
			
				|  |  |                         }else {
 | 
	
		
			
				|  |  |                             voiceurl = fileUtil.copyTempVoice(voicepath,fastdfs_file_url);
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     obj.put("path", voiceurl);
 | 
	
		
			
				|  |  |                     obj.put("times", times);
 | 
	
	
		
			
				|  | @ -1997,7 +2014,12 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                         imgeUrl = fileUploadService.uploadWxImage(imagepath);
 | 
	
		
			
				|  |  | //					uploadVO.setFullUri(map.get("accessory").toString());
 | 
	
		
			
				|  |  |                     }else{
 | 
	
		
			
				|  |  |                         imgeUrl = fileUtil.copyTempImage(imagepath,upload_temp_path);
 | 
	
		
			
				|  |  |                         if(isClose.equals("2")){
 | 
	
		
			
				|  |  |                             imgeUrl = fileUploadService.uploadInLocalWxImage(imagepath,upload_temp_path,remote_inner_url);
 | 
	
		
			
				|  |  |                         }else {
 | 
	
		
			
				|  |  |                             imgeUrl = fileUtil.copyTempImage(imagepath,upload_temp_path);
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     logger.info("imgeUrl"+imgeUrl);
 | 
	
		
			
				|  |  |                     object.put("path",imgeUrl);
 |