bug修改提交

This commit is contained in:
huangzj
2023-08-30 15:35:35 +08:00
parent 4b8ffb0a0e
commit 997193fb5f
7 changed files with 54 additions and 22 deletions

View File

@@ -12,6 +12,7 @@ import com.njcn.csdevice.pojo.param.CsMarketDataParam;
import com.njcn.csdevice.pojo.po.CsLogsPO;
import com.njcn.csdevice.service.impl.CsLogsPOService;
import com.njcn.web.controller.BaseController;
import com.njcn.web.pojo.param.BaseParam;
import com.njcn.web.utils.RequestUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
@@ -57,10 +58,12 @@ public class CsLogController extends BaseController {
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/queryLog")
@ApiOperation("查询日志")
public HttpResult<List<CsLogsPO>> queryLog(){
@ApiImplicitParam(name = "baseParam", value = "查询日志参数", required = true)
public HttpResult<List<CsLogsPO>> queryLog(@RequestBody BaseParam baseParam){
String username = RequestUtil.getUsername();
String methodDescribe = getMethodDescribe("queryLog");
List<CsLogsPO> list = csLogsPOService.lambdaQuery().eq(CsLogsPO::getUserName, username).list();
List<CsLogsPO> list = csLogsPOService.lambdaQuery().eq(CsLogsPO::getUserName, username).
between(CsLogsPO::getCreateTime,baseParam.getSearchBeginTime(),baseParam.getSearchEndTime()).list();
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
}