yang_shj
1 year ago
5 changed files with 73 additions and 2 deletions
@ -0,0 +1,20 @@ |
|||||||
|
package com.hnac.hzims.business.vo; |
||||||
|
|
||||||
|
import com.hnac.hzims.business.entity.BusinessEarlyEntity; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @author ysj |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
@ApiModel(value = "告警对象", description = "各告警数据源保存对象") |
||||||
|
public class BusinessEarlyVo extends BusinessEarlyEntity { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,41 @@ |
|||||||
|
package com.hnac.hzims.business.early.controller; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import com.hnac.hzims.business.early.service.BusinessEarlyService; |
||||||
|
import com.hnac.hzims.business.entity.BusinessEarlyEntity; |
||||||
|
import com.hnac.hzims.business.vo.BusinessEarlyVo; |
||||||
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
||||||
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
||||||
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
||||||
|
import com.hnac.hzims.operational.access.vo.ConstructionVo; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.boot.ctrl.BladeController; |
||||||
|
import org.springblade.core.mp.support.Condition; |
||||||
|
import org.springblade.core.mp.support.Query; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author ysj |
||||||
|
*/ |
||||||
|
@Api(tags = {"业务预警"}) |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/business/early") |
||||||
|
public class BusinessEarlyController extends BladeController { |
||||||
|
|
||||||
|
private final BusinessEarlyService businessEarlyService; |
||||||
|
|
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "分页查询") |
||||||
|
public R<IPage<BusinessEarlyVo>> list(BusinessEarlyVo early, Query query) { |
||||||
|
return R.data(businessEarlyService.pageCondition(Condition.getPage(query), early)); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue