6 changed files with 86 additions and 1 deletions
@ -0,0 +1,15 @@ |
|||||
|
package cn.iocoder.yudao.module.alert.controller.admin.warn.vo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Schema(description = "运行中心 - 预警级别分页 返回结果 VO") |
||||
|
@Data |
||||
|
public class AlarmLevelRespVO { |
||||
|
@Schema(description = "级别id", example = "id") |
||||
|
private Long alarmLevel; |
||||
|
|
||||
|
@Schema(description = "报警级别名称", example = "id") |
||||
|
private String alarmLevelName; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
package cn.iocoder.yudao.module.alert.dal.dataobject.warn; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.KeySequence; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
@TableName(value = "alarm_level_cfg", autoResultMap = true) |
||||
|
@KeySequence("system_role_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@Data |
||||
|
public class AlarmLevelDO { |
||||
|
|
||||
|
@TableId(value="alarm_level") |
||||
|
private Long alarmLevel; |
||||
|
|
||||
|
private String alarmLevelName; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,13 @@ |
|||||
|
package cn.iocoder.yudao.module.alert.dal.mysql.warn; |
||||
|
|
||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
||||
|
import cn.iocoder.yudao.module.alert.dal.dataobject.warn.AlarmLevelDO; |
||||
|
import cn.iocoder.yudao.module.alert.dal.dataobject.warn.WarnCalcDO; |
||||
|
import cn.iocoder.yudao.module.alert.dal.dataobject.warn.WarnDO; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
@Mapper |
||||
|
public interface AlarmLevelMapper extends BaseMapperX<AlarmLevelDO> { |
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue