gwlog日志

This commit is contained in:
zhaoqing
2026-05-14 09:51:17 +08:00
parent 17bc4b1416
commit 642cfc5c8c
5 changed files with 45 additions and 5 deletions
@@ -36,4 +36,10 @@ public class GwLogDTO {
@ApiModelProperty("一级组织id")
private Long topOrganizationId ;
@ApiModelProperty(value = "页码")
private Integer pageNum = 1;
@ApiModelProperty(value = "每页数量")
private Integer pageSize = 10;
}
@@ -2,17 +2,16 @@ package com.mhd.oms.interfaces.facade.gwLog;
import com.mhd.common.core.web.controller.BaseController;
import com.mhd.common.core.web.domain.AjaxResult;
import com.mhd.common.core.web.page.TableDataInfo;
import com.mhd.oms.application.service.gwLog.GwLogApplicationService;
import com.mhd.oms.domain.gwLog.entity.GwLog;
import com.mhd.oms.domain.gwLog.repository.po.GwLogPO;
import com.mhd.oms.interfaces.dto.gwLog.GwLogDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -34,6 +33,16 @@ public class GwLogApi extends BaseController {
}
@ApiOperation("查询GW日志")
@PostMapping("/selectByTypeAndId")
public AjaxResult selectByTypeAndId(@RequestBody GwLogDTO gwLogDTO){
GwLogPO po = gwLogApplicationService.selectByTypeAndId(gwLogDTO);
AjaxResult ajaxResult = new AjaxResult();
ajaxResult.put("code",200);
ajaxResult.put("data",po);
return ajaxResult;
}
}