|
@ -87,7 +87,7 @@ public class DeviceHealthIndexController extends BaseController{
|
|
|
*/
|
|
|
// @ResponseBody
|
|
|
@RequestMapping(value="getExcelByFilter",method = RequestMethod.POST,produces = "application/json;charset=UTF-8" )
|
|
|
public String exportList(
|
|
|
public void exportList(
|
|
|
@RequestParam(value = "deviceSn",required = false) String deviceSn,
|
|
|
@RequestParam(value = "date",required = false) String date,
|
|
|
@RequestParam(value = "idcard",required = false) String idcard,
|
|
@ -105,14 +105,8 @@ public class DeviceHealthIndexController extends BaseController{
|
|
|
response.setHeader("Content-Disposition", "attachment; filename="+ new String( "patientHealthIndexDataList.xls"));
|
|
|
OutputStream os = response.getOutputStream();
|
|
|
this.writePatientHealth(os,deviceHealthIndexes);
|
|
|
write(200, "操作成功!");
|
|
|
Map<Object, Object> map = new HashMap<Object, Object>();
|
|
|
map.put("status", 200);
|
|
|
map.put("msg", "操作成功!");
|
|
|
return write(200, "操作成功");
|
|
|
}catch (Exception ex){
|
|
|
error(ex);
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|