|
@ -810,7 +810,7 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.Prescription.pushListWrite)
|
|
|
@ApiOperation(value = "订单导出", notes = "订单导出")
|
|
|
public void pushListWrite(@ApiParam(name = "status", value = "流程状态,多状态用‘,’分割")
|
|
|
public Envelop 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,
|
|
@ -823,23 +823,23 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "endTime", value = "结束时间,yyyy-MM-dd")
|
|
|
@RequestParam(value = "endTime", required = false) String endTime,
|
|
|
HttpServletResponse response) throws Exception {
|
|
|
try {
|
|
|
try{
|
|
|
MixEnvelop expressages = prescriptionService.findExpressageList2(status, oneselfPickupFlg, nameKey, startTime, endTime, 1, 10000, wxId, patientName);
|
|
|
List<Map<String, Object>> list = expressages.getDetailModelList();
|
|
|
response.setContentType("octets/stream");
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=" + new String("pushDataList.xls"));
|
|
|
OutputStream os = response.getOutputStream();
|
|
|
prescriptionService.pushListWrite(os, list);
|
|
|
OutputStream os = response.getOutputStream();
|
|
|
prescriptionService.pushListWrite(os, list);
|
|
|
return success(expressages);
|
|
|
}catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return failedMixEnvelopException(e);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.Prescription.searchRecordWrite)
|
|
|
@ApiOperation(value = "咨询记录导出", notes = "咨询记录导出")
|
|
|
public void searchRecordWrite(@ApiParam(name = "doctor", value = "医生id")
|
|
|
public Envelop searchRecordWrite(@ApiParam(name = "doctor", value = "医生id")
|
|
|
@RequestParam(value = "doctor",required = false) String doctor,
|
|
|
@ApiParam(name = "title", value = "咨询标题关键字")
|
|
|
@RequestParam(value = "title",required = false) String title,
|
|
@ -856,15 +856,17 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "end_time", value = "结束时间 YYYY-MM-DD HH:MM:SS")
|
|
|
@RequestParam(value = "end_time",required = false) String end_time,
|
|
|
HttpServletResponse response) throws Exception {
|
|
|
try {
|
|
|
|
|
|
try{
|
|
|
MixEnvelop expressages = imService.recordByDoctor(doctor, id, type, status, title, start_time, end_time, patient);//
|
|
|
List<Map<String, Object>> list = expressages.getDetailModelList();
|
|
|
response.setContentType("octets/stream");
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=" + new String("searchRecordWrite.xls"));
|
|
|
OutputStream os = response.getOutputStream();
|
|
|
prescriptionService.searchRecordWrite(os, list);
|
|
|
return success(expressages);
|
|
|
}catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return failedMixEnvelopException(e);
|
|
|
}
|
|
|
|
|
|
}
|