|
|
|
@ -64,6 +64,16 @@ public class BackDatabaseController {
|
|
|
|
return "otherManage/backupDatabase";
|
|
|
|
return "otherManage/backupDatabase";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 病案浏览日志管理
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("/otherManage/recordLogList")
|
|
|
|
|
|
|
|
@RequestMapping("recordLogList")
|
|
|
|
|
|
|
|
public String recordLogList(){
|
|
|
|
|
|
|
|
return "otherManage/recordLogList";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 接口借阅日志
|
|
|
|
* 接口借阅日志
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
@ -236,7 +246,7 @@ public class BackDatabaseController {
|
|
|
|
public void exportExcel(HttpServletResponse response, Emr_Log log, String startTime, String endTime,String checks){
|
|
|
|
public void exportExcel(HttpServletResponse response, Emr_Log log, String startTime, String endTime,String checks){
|
|
|
|
String tableThNames = "操作人,日志主题,日志内容,备注,操作时间,ip地址";
|
|
|
|
String tableThNames = "操作人,日志主题,日志内容,备注,操作时间,ip地址";
|
|
|
|
String fieldCns = "creater,logTitle,logContent,remark,createDate,ip";
|
|
|
|
String fieldCns = "creater,logTitle,logContent,remark,createDate,ip";
|
|
|
|
List<Emr_Log> logs = new ArrayList<>();
|
|
|
|
List<Emr_Log> logs;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
//构造excel的数据
|
|
|
|
//构造excel的数据
|
|
|
|
if(StringUtils.isNotBlank(checks)){
|
|
|
|
if(StringUtils.isNotBlank(checks)){
|
|
|
|
@ -256,4 +266,39 @@ public class BackDatabaseController {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 病案浏览日志管理 导出excel
|
|
|
|
|
|
|
|
* @param response
|
|
|
|
|
|
|
|
* @param log
|
|
|
|
|
|
|
|
* @param startTime
|
|
|
|
|
|
|
|
* @param endTime
|
|
|
|
|
|
|
|
* @param checks
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("/otherManage/exportRecordExcel")
|
|
|
|
|
|
|
|
@RequestMapping(value="exportRecordExcel",produces = {"text/json;charset=UTF-8"})
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public void exportRecordExcel(HttpServletResponse response, Emr_Log log, String startTime, String endTime,String checks){
|
|
|
|
|
|
|
|
String tableThNames = "操作人账号,日志主题,日志内容,病案号,操作时间";
|
|
|
|
|
|
|
|
String fieldCns = "creater,logTitle,logContent,remark,createDate";
|
|
|
|
|
|
|
|
List<Emr_Log> logs;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
//构造excel的数据
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(checks)){
|
|
|
|
|
|
|
|
logs = logMapper.selectAllByIds(checks);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
//构造excel的数据
|
|
|
|
|
|
|
|
logs = logMapper.selectAll(log, startTime, endTime);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//文件名
|
|
|
|
|
|
|
|
String fileName = "病案浏览日志导出数据(" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ").xls";
|
|
|
|
|
|
|
|
//ExportExcelUtil
|
|
|
|
|
|
|
|
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
|
|
|
|
|
|
|
//导出excel的操作
|
|
|
|
|
|
|
|
exportExcelUtil.expordExcel(tableThNames,fieldCns,logs,fileName,response);
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
|
|
|
ExceptionPrintUtil.printException(e);
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|