yang_shj
11 months ago
19 changed files with 194 additions and 115 deletions
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.business.entity; |
||||
package com.hnac.hzims.business.early.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
@ -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.springframework.stereotype.Component; |
||||
|
@ -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.business.entity.BusinessEarlyEntity; |
||||
import com.hnac.hzims.business.early.entity.BusinessEarlyEntity; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
@ -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 lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
@ -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 { |
||||
|
||||
} |
@ -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 { |
||||
|
||||
|
||||
} |
@ -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> { |
||||
|
||||
} |
@ -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> |
@ -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> { |
||||
|
||||
} |
@ -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…
Reference in new issue