6 files modified
11 files added
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import org.sxkj.fw.record.param.FwAlarmFavoriteAddParam; |
| | | import org.sxkj.fw.record.vo.FwAlarmFavoriteVO; |
| | | import org.sxkj.fw.record.excel.FwAlarmFavoriteExcel; |
| | | import org.sxkj.fw.record.wrapper.FwAlarmFavoriteWrapper; |
| | | import org.sxkj.fw.record.service.IFwAlarmFavoriteService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * 告警记录关注表 控制器 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("record/fwAlarmFavorite") |
| | | @Api(value = "告警记录关注表", tags = "告警记录关注表接口") |
| | | public class FwAlarmFavoriteController extends BladeController { |
| | | |
| | | private final IFwAlarmFavoriteService fwAlarmFavoriteService; |
| | | |
| | | |
| | | /** |
| | | * 告警记录关注表 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "重点关注", notes = "传入fwAlarmFavorite") |
| | | public R save(@Valid @RequestBody FwAlarmFavoriteAddParam fwAlarmFavorite) { |
| | | FwAlarmFavoriteEntity fwAlarmFavoriteEntity = Objects.requireNonNull(BeanUtil.copy(fwAlarmFavorite, FwAlarmFavoriteEntity.class)); |
| | | fwAlarmFavoriteEntity.setUserId(AuthUtil.getUserId()); |
| | | return R.status(fwAlarmFavoriteService.save(fwAlarmFavoriteEntity)); |
| | | } |
| | | |
| | | /** |
| | | * 告警记录关注表 删除 |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "取消关注", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(fwAlarmFavoriteService.deleteLogic(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.dto; |
| | | |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * 告警记录关注表 数据传输对象实体类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class FwAlarmFavoriteDTO extends FwAlarmFavoriteEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "区域名称") |
| | | private String areaName; |
| | | |
| | | @ApiModelProperty(value = "当前用户id") |
| | | private Long currentUserId; |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.mp.base.BaseEntity; |
| | | |
| | | /** |
| | | * 告警记录关注表 实体类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @Data |
| | | @TableName("ja_fw_alarm_favorite") |
| | | @ApiModel(value = "FwAlarmFavorite对象", description = "告警记录关注表") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class FwAlarmFavoriteEntity extends BaseEntity { |
| | | |
| | | /** |
| | | * 告警记录id |
| | | */ |
| | | @ApiModelProperty(value = "告警记录id") |
| | | private Long alarmRecordId; |
| | | /** |
| | | * 用户ID |
| | | */ |
| | | @ApiModelProperty(value = "用户ID") |
| | | private Long userId; |
| | | /** |
| | | * 关注标题 |
| | | */ |
| | | @ApiModelProperty(value = "关注标题") |
| | | private String title; |
| | | /** |
| | | * 备注信息 |
| | | */ |
| | | @ApiModelProperty(value = "备注信息") |
| | | private String remark; |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.excel; |
| | | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.alibaba.excel.annotation.write.style.ColumnWidth; |
| | | import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
| | | import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
| | | import java.io.Serializable; |
| | | |
| | | |
| | | /** |
| | | * 告警记录关注表 Excel实体类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @Data |
| | | @ColumnWidth(25) |
| | | @HeadRowHeight(20) |
| | | @ContentRowHeight(18) |
| | | public class FwAlarmFavoriteExcel implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 告警记录id |
| | | */ |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("告警记录id") |
| | | private Long alarmRecordId; |
| | | /** |
| | | * 用户ID |
| | | */ |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("用户ID") |
| | | private Long userId; |
| | | /** |
| | | * 关注标题 |
| | | */ |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("关注标题") |
| | | private String title; |
| | | /** |
| | | * 备注信息 |
| | | */ |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("备注信息") |
| | | private String remark; |
| | | /** |
| | | * 是否删除 0:否 1:是 |
| | | */ |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("是否删除 0:否 1:是") |
| | | private Integer isDeleted; |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.mapper; |
| | | |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import org.sxkj.fw.record.vo.FwAlarmFavoriteVO; |
| | | import org.sxkj.fw.record.excel.FwAlarmFavoriteExcel; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 告警记录关注表 Mapper 接口 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | public interface FwAlarmFavoriteMapper extends BaseMapper<FwAlarmFavoriteEntity> { |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | | * @param fwAlarmFavorite |
| | | * @return |
| | | */ |
| | | List<FwAlarmFavoriteVO> selectFwAlarmFavoritePage(IPage page, FwAlarmFavoriteVO fwAlarmFavorite); |
| | | |
| | | |
| | | /** |
| | | * 获取导出数据 |
| | | * |
| | | * @param queryWrapper |
| | | * @return |
| | | */ |
| | | List<FwAlarmFavoriteExcel> exportFwAlarmFavorite(@Param("ew") Wrapper<FwAlarmFavoriteEntity> queryWrapper); |
| | | |
| | | } |
| New file |
| | |
| | | <?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="org.sxkj.fw.record.mapper.FwAlarmFavoriteMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="fwAlarmFavoriteResultMap" type="org.sxkj.fw.record.entity.FwAlarmFavoriteEntity"> |
| | | <result column="id" property="id"/> |
| | | <result column="alarm_record_id" property="alarmRecordId"/> |
| | | <result column="user_id" property="userId"/> |
| | | <result column="title" property="title"/> |
| | | <result column="remark" property="remark"/> |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="create_user" property="createUser"/> |
| | | <result column="create_dept" property="createDept"/> |
| | | <result column="update_user" property="updateUser"/> |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="status" property="status"/> |
| | | <result column="is_deleted" property="isDeleted"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectFwAlarmFavoritePage" resultMap="fwAlarmFavoriteResultMap"> |
| | | select * from ja_fw_alarm_favorite where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="exportFwAlarmFavorite" resultType="org.sxkj.fw.record.excel.FwAlarmFavoriteExcel"> |
| | | SELECT * FROM ja_fw_alarm_favorite ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | <select id="selectFwDroneAlarmRecordPage" resultType="org.sxkj.fw.record.vo.FwDroneAlarmRecordVO"> |
| | | select |
| | | dar.*, |
| | | d.device_name, |
| | | d.status deviceStatus |
| | | dar.*, |
| | | d.device_name, |
| | | d.status deviceStatus, |
| | | /* 1=已关注,0=未关注 */ |
| | | EXISTS ( |
| | | SELECT |
| | | 1 |
| | | FROM |
| | | ja_fw_alarm_favorite f |
| | | WHERE |
| | | f.alarm_record_id = dar.id |
| | | AND f.user_id = #{param2.currentUserId} -- MyBatis 参数 |
| | | AND f.is_deleted = 0 |
| | | ) AS favorited |
| | | from |
| | | ja_fw_drone_alarm_record dar |
| | | left join ja_fw_device d on dar.device_id = d.id |
| | | ja_fw_drone_alarm_record dar |
| | | left join |
| | | ja_fw_device d on dar.device_id = d.id |
| | | <where> |
| | | dar.is_deleted = 0 |
| | | <if test="param2.deviceId != null and param2.deviceId != ''"> |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.param; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.mp.base.BaseEntity; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * 告警记录关注表 实体类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "FwAlarmFavorite对象", description = "告警记录关注表") |
| | | public class FwAlarmFavoriteAddParam { |
| | | /** |
| | | * 告警记录id |
| | | */ |
| | | @ApiModelProperty(value = "告警记录id") |
| | | @NotNull |
| | | private Long alarmRecordId; |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import org.sxkj.fw.record.vo.FwAlarmFavoriteVO; |
| | | import org.sxkj.fw.record.excel.FwAlarmFavoriteExcel; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseService; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 告警记录关注表 服务类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | public interface IFwAlarmFavoriteService extends BaseService<FwAlarmFavoriteEntity> { |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | | * @param fwAlarmFavorite |
| | | * @return |
| | | */ |
| | | IPage<FwAlarmFavoriteVO> selectFwAlarmFavoritePage(IPage<FwAlarmFavoriteVO> page, FwAlarmFavoriteVO fwAlarmFavorite); |
| | | |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * |
| | | * @param queryWrapper |
| | | * @return |
| | | */ |
| | | List<FwAlarmFavoriteExcel> exportFwAlarmFavorite(Wrapper<FwAlarmFavoriteEntity> queryWrapper); |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import org.sxkj.fw.record.vo.FwAlarmFavoriteVO; |
| | | import org.sxkj.fw.record.excel.FwAlarmFavoriteExcel; |
| | | import org.sxkj.fw.record.mapper.FwAlarmFavoriteMapper; |
| | | import org.sxkj.fw.record.service.IFwAlarmFavoriteService; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 告警记录关注表 服务实现类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @Service |
| | | public class FwAlarmFavoriteServiceImpl extends BaseServiceImpl<FwAlarmFavoriteMapper, FwAlarmFavoriteEntity> implements IFwAlarmFavoriteService { |
| | | |
| | | @Override |
| | | public IPage<FwAlarmFavoriteVO> selectFwAlarmFavoritePage(IPage<FwAlarmFavoriteVO> page, FwAlarmFavoriteVO fwAlarmFavorite) { |
| | | return page.setRecords(baseMapper.selectFwAlarmFavoritePage(page, fwAlarmFavorite)); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<FwAlarmFavoriteExcel> exportFwAlarmFavorite(Wrapper<FwAlarmFavoriteEntity> queryWrapper) { |
| | | List<FwAlarmFavoriteExcel> fwAlarmFavoriteList = baseMapper.exportFwAlarmFavorite(queryWrapper); |
| | | // fwAlarmFavoriteList.forEach(fwAlarmFavorite -> { |
| | | // fwAlarmFavorite.setTypeName(DictCache.getValue(DictEnum.YES_NO, FwAlarmFavorite.getType())); |
| | | //}); |
| | | return fwAlarmFavoriteList; |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | package org.sxkj.fw.record.service.impl; |
| | | |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.sxkj.fw.cockpit.vo.AlarmStatisticsVO; |
| | | import org.sxkj.fw.record.dto.FwDroneAlarmRecordDTO; |
| | | import org.sxkj.fw.record.entity.FwDroneAlarmRecordEntity; |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | @Override |
| | | public IPage<FwDroneAlarmRecordVO> selectFwDroneAlarmRecordPage(IPage<FwDroneAlarmRecordVO> page, FwDroneAlarmRecordDTO fwDroneAlarmRecord) { |
| | | fwDroneAlarmRecord.setCurrentUserId(AuthUtil.getUserId()); |
| | | return page.setRecords(baseMapper.selectFwDroneAlarmRecordPage(page, fwDroneAlarmRecord)); |
| | | } |
| | | |
| | |
| | | |
| | | /** |
| | | * 告警类型统计 |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.vo; |
| | | |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import org.springblade.core.tool.node.INode; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * 告警记录关注表 视图实体类 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class FwAlarmFavoriteVO extends FwAlarmFavoriteEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty(value = "设备状态(0:在线/1:离线/2:故障/3:报废)") |
| | | private String deviceStatus; |
| | | |
| | | // favorited |
| | | @ApiModelProperty(value = "是否关注 0 未关注 1 已关注 ") |
| | | private Integer favorited; |
| | | } |
| New file |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.sxkj.fw.record.wrapper; |
| | | |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.sxkj.fw.record.entity.FwAlarmFavoriteEntity; |
| | | import org.sxkj.fw.record.vo.FwAlarmFavoriteVO; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 告警记录关注表 包装类,返回视图层所需的字段 |
| | | * |
| | | * @author lw |
| | | * @since 2026-01-23 |
| | | */ |
| | | public class FwAlarmFavoriteWrapper extends BaseEntityWrapper<FwAlarmFavoriteEntity, FwAlarmFavoriteVO> { |
| | | |
| | | public static FwAlarmFavoriteWrapper build() { |
| | | return new FwAlarmFavoriteWrapper(); |
| | | } |
| | | |
| | | @Override |
| | | public FwAlarmFavoriteVO entityVO(FwAlarmFavoriteEntity fwAlarmFavorite) { |
| | | FwAlarmFavoriteVO fwAlarmFavoriteVO = Objects.requireNonNull(BeanUtil.copy(fwAlarmFavorite, FwAlarmFavoriteVO.class)); |
| | | |
| | | //User createUser = UserCache.getUser(fwAlarmFavorite.getCreateUser()); |
| | | //User updateUser = UserCache.getUser(fwAlarmFavorite.getUpdateUser()); |
| | | //fwAlarmFavoriteVO.setCreateUserName(createUser.getName()); |
| | | //fwAlarmFavoriteVO.setUpdateUserName(updateUser.getName()); |
| | | |
| | | return fwAlarmFavoriteVO; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | /** |
| | | * 应用创新状态(审核中/审核通过/审核不通过) |
| | | */ |
| | | @ApiModelProperty(value = "应用创新状态(1.审核中/2.审核通过/3.审核不通过)") |
| | | @ApiModelProperty(value = "应用创新状态(0.审核中/1.审核通过/3.审核不通过)") |
| | | private String innovationStatus; |
| | | /** |
| | | * 应用场景描述 |
| | |
| | | /** |
| | | * 应用创新状态(审核中/审核通过/审核不通过) |
| | | */ |
| | | @ApiModelProperty(value = "应用创新状态(1.审核中/2.审核通过/3.审核不通过)") |
| | | @ApiModelProperty(value = "应用创新状态(0.审核中/1.审核通过/2.审核不通过)") |
| | | private String innovationStatus; |
| | | |
| | | } |