Browse Source

#数据中断告警移植

zhongwei
yang_shj 11 months ago
parent
commit
0b09a79ea0
  1. 2
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/entity/BusinessEarlyEntity.java
  2. 4
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/feign/BusinessEarlyClientFallback.java
  3. 4
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/feign/IBusinessEarlyClient.java
  4. 4
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/vo/BusinessEarlyVo.java
  5. 19
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/interruption/entity/InterruptionEntity.java
  6. 7
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/controller/BusinessEarlyController.java
  7. 3
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/feign/BusinessEarlyClient.java
  8. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/mapper/BusinessEarlyMapper.java
  9. 5
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/service/BusinessEarlyService.java
  10. 4
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/service/impl/BusinessEarlyServiceImpl.java
  11. 20
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/controller/InterruptionController.java
  12. 11
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/mapper/InterruptionMapper.java
  13. 6
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/mapper/InterruptionMapper.xml
  14. 11
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/service/InterruptionService.java
  15. 19
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/service/impl/InterruptionServiceImpl.java

2
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/entity/BusinessEarlyEntity.java → hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/entity/BusinessEarlyEntity.java

@ -1,4 +1,4 @@
package com.hnac.hzims.business.entity; package com.hnac.hzims.business.early.entity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;

4
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/feign/BusinessEarlyClientFallback.java → hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/feign/BusinessEarlyClientFallback.java

@ -1,6 +1,6 @@
package com.hnac.hzims.business.feign; package com.hnac.hzims.business.early.feign;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

4
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/feign/IBusinessEarlyClient.java → hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/feign/IBusinessEarlyClient.java

@ -1,7 +1,7 @@
package com.hnac.hzims.business.feign; package com.hnac.hzims.business.early.feign;
import com.hnac.hzims.alarm.config.constants.AlarmConstants; import com.hnac.hzims.alarm.config.constants.AlarmConstants;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;

4
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/vo/BusinessEarlyVo.java → hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/early/vo/BusinessEarlyVo.java

@ -1,6 +1,6 @@
package com.hnac.hzims.business.vo; package com.hnac.hzims.business.early.vo;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;

19
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/business/interruption/entity/InterruptionEntity.java

@ -0,0 +1,19 @@
package com.hnac.hzims.business.interruption.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
* @author ysj
*/
@Data
@TableName("hzims_interruption_alarm")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "数据中断告警", description = "数据中断告警对象")
public class InterruptionEntity extends TenantEntity {
}

7
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/controller/BusinessEarlyController.java

@ -4,12 +4,7 @@ package com.hnac.hzims.business.early.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.hnac.hzims.business.early.service.BusinessEarlyService; import com.hnac.hzims.business.early.service.BusinessEarlyService;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.vo.BusinessEarlyVo;
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.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

3
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/feign/BusinessEarlyClient.java

@ -1,8 +1,7 @@
package com.hnac.hzims.business.early.feign; package com.hnac.hzims.business.early.feign;
import com.hnac.hzims.business.early.service.BusinessEarlyService; import com.hnac.hzims.business.early.service.BusinessEarlyService;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
import com.hnac.hzims.business.feign.IBusinessEarlyClient;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/mapper/BusinessEarlyMapper.java

@ -1,7 +1,7 @@
package com.hnac.hzims.business.early.mapper; package com.hnac.hzims.business.early.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
/** /**
* @author ysj * @author ysj

5
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/service/BusinessEarlyService.java

@ -1,9 +1,8 @@
package com.hnac.hzims.business.early.service; package com.hnac.hzims.business.early.service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
import com.hnac.hzims.business.vo.BusinessEarlyVo; import com.hnac.hzims.business.early.vo.BusinessEarlyVo;
import com.hnac.hzims.operational.access.vo.ConstructionVo;
import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.base.BaseService;
/** /**

4
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/early/service/impl/BusinessEarlyServiceImpl.java

@ -3,8 +3,8 @@ package com.hnac.hzims.business.early.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hnac.hzims.business.early.mapper.BusinessEarlyMapper; import com.hnac.hzims.business.early.mapper.BusinessEarlyMapper;
import com.hnac.hzims.business.early.service.BusinessEarlyService; import com.hnac.hzims.business.early.service.BusinessEarlyService;
import com.hnac.hzims.business.entity.BusinessEarlyEntity; import com.hnac.hzims.business.early.entity.BusinessEarlyEntity;
import com.hnac.hzims.business.vo.BusinessEarlyVo; import com.hnac.hzims.business.early.vo.BusinessEarlyVo;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.base.BaseServiceImpl;

20
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/controller/InterruptionController.java

@ -0,0 +1,20 @@
package com.hnac.hzims.business.interruption.controller;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author ysj
*/
@Api(tags = {"数据中断告警"})
@RestController
@AllArgsConstructor
@RequestMapping("/interruption")
public class InterruptionController extends BladeController {
}

11
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/mapper/InterruptionMapper.java

@ -0,0 +1,11 @@
package com.hnac.hzims.business.interruption.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzims.business.interruption.entity.InterruptionEntity;
/**
* @author ysj
*/
public interface InterruptionMapper extends BaseMapper<InterruptionEntity> {
}

6
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/mapper/InterruptionMapper.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hnac.hzims.business.interruption.mapper.InterruptionMapper">
</mapper>

11
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/service/InterruptionService.java

@ -0,0 +1,11 @@
package com.hnac.hzims.business.interruption.service;
import com.hnac.hzims.business.interruption.entity.InterruptionEntity;
import org.springblade.core.mp.base.BaseService;
/**
* @author ysj
*/
public interface InterruptionService extends BaseService<InterruptionEntity> {
}

19
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/business/interruption/service/impl/InterruptionServiceImpl.java

@ -0,0 +1,19 @@
package com.hnac.hzims.business.interruption.service.impl;
import com.hnac.hzims.business.interruption.entity.InterruptionEntity;
import com.hnac.hzims.business.interruption.mapper.InterruptionMapper;
import com.hnac.hzims.business.interruption.service.InterruptionService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* @author ysj
*/
@AllArgsConstructor
@Service
@Slf4j
public class InterruptionServiceImpl extends BaseServiceImpl<InterruptionMapper, InterruptionEntity> implements InterruptionService {
}
Loading…
Cancel
Save