OMS-GW-log

This commit is contained in:
zhaoqing
2026-05-08 11:06:49 +08:00
parent 506f9ef569
commit 5235076d2d
6 changed files with 220 additions and 0 deletions
@@ -0,0 +1,39 @@
package com.mhd.oms.interfaces.dto.gwLog;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@Data
public class GwLogDTO {
@ApiModelProperty("日志类型")
private String type;
@ApiModelProperty("业务Id")
private Long businessId;
@ApiModelProperty("状态:1-初始 2-成功 3-失败")
private Integer status;
@ApiModelProperty("组织id")
private Long organizationId ;
@ApiModelProperty("推送时间起")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String sendTimeFrom;
@ApiModelProperty("推送时间止")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String sendTimeTo;
@ApiModelProperty("一级组织id")
private Long topOrganizationId ;
}
@@ -0,0 +1,39 @@
package com.mhd.oms.interfaces.facade.gwLog;
import com.mhd.common.core.web.controller.BaseController;
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.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 javax.annotation.Resource;
@Api(tags = "GW日志管理")
@RestController
@RequestMapping("/gwLogApi")
public class GwLogApi extends BaseController {
@Resource
private GwLogApplicationService gwLogApplicationService;
@ApiOperation("查询GW日志")
@GetMapping("/queryList")
public TableDataInfo queryList(GwLogDTO gwLogDTO){
startPage();
return gwLogApplicationService.queryList(gwLogDTO);
}
}