|
|
|
@ -1,14 +1,19 @@
|
|
|
|
|
package cn.estsh.i3plus.core.apiservice.controller;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ISysLogExceptionService;
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ISysLogSystemService;
|
|
|
|
|
import cn.estsh.i3plus.icloud.core.sdk.ICoreDemoCloud;
|
|
|
|
|
import cn.estsh.i3plus.icloud.wms.sdk.IWmsDemoCloud;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.BaseModelBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.BaseResultBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.common.Pager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.SessionUser;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.SysRole;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.platbean.SysLogException;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.platbean.SysLogSystem;
|
|
|
|
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
|
|
@ -52,4 +57,68 @@ public class DemoExceptionController {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISysLogExceptionService sysLogExceptionService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/query")
|
|
|
|
|
@ApiOperation(value = "异常日志复杂查询,分页,排序",notes = "异常日志复杂查询,分页,排序")
|
|
|
|
|
public ResultBean querySysLogExceptionByPager(SysLogException sysLogException, Pager pager){
|
|
|
|
|
try {
|
|
|
|
|
System.out.println("1===============");
|
|
|
|
|
ListPager logExceptionList = sysLogExceptionService.querySysLogExceptionByPager(sysLogException, pager);
|
|
|
|
|
System.out.println(logExceptionList.getObjectList().size());
|
|
|
|
|
System.out.println("===============pager:" + pager);
|
|
|
|
|
return ResultBean.success("查询成功").setListPager(logExceptionList).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
}catch(ImppBusiException busExcep){
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISysLogSystemService syslogSystemService;
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/query-logSystem")
|
|
|
|
|
@ApiOperation(value = "异常日志复杂查询,分页,排序",notes = "异常日志复杂查询,分页,排序")
|
|
|
|
|
public ResultBean querySysLogSystemByPager(SysLogSystem sysLog, Pager pager){
|
|
|
|
|
try {
|
|
|
|
|
System.out.println("2===============");
|
|
|
|
|
ListPager logSystemList = syslogSystemService.querySysLogSystemByPager(sysLog,pager);
|
|
|
|
|
System.out.println(logSystemList.getObjectList().size());
|
|
|
|
|
System.out.println("===============pager:" + pager);
|
|
|
|
|
return ResultBean.success("查询成功").setListPager(logSystemList).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
}catch(ImppBusiException busExcep){
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/query-logSystemtest2")
|
|
|
|
|
@ApiOperation(value = "异常日志复杂查询,分页,排序",notes = "异常日志复杂查询,分页,排序")
|
|
|
|
|
public ResultBean querySysLogSystemTest(){
|
|
|
|
|
try {
|
|
|
|
|
Pager pager = new Pager();
|
|
|
|
|
pager.setStartRow(0);
|
|
|
|
|
pager.setPageSize(10);
|
|
|
|
|
|
|
|
|
|
SysLogSystem logSystem = new SysLogSystem();
|
|
|
|
|
|
|
|
|
|
System.out.println("2===============");
|
|
|
|
|
ListPager logSystemList = syslogSystemService.querySysLogSystemByPager(logSystem,pager);
|
|
|
|
|
System.out.println(logSystemList.getObjectList().size());
|
|
|
|
|
System.out.println("===============pager:" + pager);
|
|
|
|
|
return ResultBean.success("查询成功").setListPager(logSystemList).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
}catch(ImppBusiException busExcep){
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|