|  | @ -1,10 +1,14 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.hospital.endpoint.hospital;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.doctor.BaseDoctorBackgroundDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.doctor.BaseDoctorMessageDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.es.service.StatisticsEsService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.doctor.dao.service.BaseDoctorBGService;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.PayInfoNoticeService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
	
		
			
				|  | @ -13,6 +17,8 @@ import io.swagger.annotations.ApiParam;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import javax.servlet.http.HttpServletResponse;
 | 
	
		
			
				|  |  | import java.io.OutputStream;
 | 
	
		
			
				|  |  | import java.util.List;
 | 
	
		
			
				|  |  | import java.util.Map;
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -22,6 +28,10 @@ import java.util.Map;
 | 
	
		
			
				|  |  | public class BaseDoctorBGController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private BaseDoctorBGService baseDoctorBGService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private PayInfoNoticeService payInfoNoticeService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private StatisticsEsService statisticsEsService;
 | 
	
		
			
				|  |  |     @ApiOperation("获取背景板")
 | 
	
		
			
				|  |  |     @PostMapping(value= BaseHospitalRequestMapping.BaseBackground.getAllBackground)
 | 
	
		
			
				|  |  |     public Envelop getAllBG( @ApiParam(name = "page", value = "第几页,从1开始", required = true, defaultValue = "1")
 | 
	
	
		
			
				|  | @ -133,4 +143,23 @@ public class BaseDoctorBGController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                                   @RequestParam(value = "id", required = true)String id) throws Exception{
 | 
	
		
			
				|  |  |         return success(baseDoctorBGService.delDoctorMessage(id));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.pushListWrite)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "订单导出", notes = "订单导出")
 | 
	
		
			
				|  |  |     public void pushListWrite(@ApiParam(name = "status", value = "流程状态,多状态用‘,’分割")
 | 
	
		
			
				|  |  |                               @RequestParam(value = "status", required = false)String status,
 | 
	
		
			
				|  |  |                               @ApiParam(name = "oneselfPickupFlg", value = "是否自取 1是 0否")
 | 
	
		
			
				|  |  |                               @RequestParam(value = "oneselfPickupFlg", required = false)String oneselfPickupFlg,
 | 
	
		
			
				|  |  |                               @ApiParam(name = "nameKey", value = "配送员名称")
 | 
	
		
			
				|  |  |                               @RequestParam(value = "nameKey", required = false)String nameKey,
 | 
	
		
			
				|  |  |                               @ApiParam(name = "startTime", value = "开始时间,yyyy-MM-dd")
 | 
	
		
			
				|  |  |                               @RequestParam(value = "startTime", required = false)String startTime,
 | 
	
		
			
				|  |  |                               @ApiParam(name = "endTime", value = "结束时间,yyyy-MM-dd")
 | 
	
		
			
				|  |  |                               @RequestParam(value = "endTime", required = false)String endTime,
 | 
	
		
			
				|  |  |                               HttpServletResponse response) throws Exception{
 | 
	
		
			
				|  |  |         JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  |         response.setContentType("octets/stream");
 | 
	
		
			
				|  |  |         response.setHeader("Content-Disposition", "attachment; filename="+ new String( "pushDataList.xls"));
 | 
	
		
			
				|  |  |         OutputStream os = response.getOutputStream();
 | 
	
		
			
				|  |  |         payInfoNoticeService.exportEsPrescription(os,jsonObject);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |