|
|
|
@ -110,14 +110,14 @@ public class beHospitaledController {
|
|
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@RequestMapping(value = "/beHospList")
|
|
|
|
|
public OffsetLimitPage beHospList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit,Integer isSearch){
|
|
|
|
|
public OffsetLimitPage beHospList(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit,Integer isSearch,HttpServletRequest request){
|
|
|
|
|
//判断是否是初始化查询,是初始化查询把开始结束时间置空
|
|
|
|
|
if(isSearch == 0){
|
|
|
|
|
archiveMasterVo.setStartDateTo(null);
|
|
|
|
|
archiveMasterVo.setEndDateTo(null);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
return archiveMasterService.selectByColumn(archiveMasterVo, offset, limit);
|
|
|
|
|
return archiveMasterService.selectByColumn(archiveMasterVo, offset, limit,request);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
ExceptionPrintUtil.printException(e);
|
|
|
|
|
e.printStackTrace();
|
|
|
|
@ -127,7 +127,7 @@ public class beHospitaledController {
|
|
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@RequestMapping(value = "/exportExcel")
|
|
|
|
|
public void exportExcel(HttpServletResponse response, Archive_Master_Vo archiveMasterVo,Integer isSearch){
|
|
|
|
|
public void exportExcel(HttpServletResponse response, HttpServletRequest request,Archive_Master_Vo archiveMasterVo,Integer isSearch){
|
|
|
|
|
String tableThNames = "住院号,住院次数,名字,性别,出院科室,出院日期,主管医生,状态";
|
|
|
|
|
String fieldCns = "inpNo,visitId,name,sex,deptName,dischargeDateTime,doctorInCharge,status";
|
|
|
|
|
//构造excel的数据
|
|
|
|
@ -136,7 +136,7 @@ public class beHospitaledController {
|
|
|
|
|
archiveMasterVo.setEndDateTo(null);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterService.selectByColumn(archiveMasterVo);
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterService.selectByColumn(archiveMasterVo,request);
|
|
|
|
|
//文件名
|
|
|
|
|
String fileName = "出院浏览" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
|
|
|
|
//ExportExcelUtil
|
|
|
|
|