forked from dyf/fys-Multi-tenant
feat(equipment): 实现设备维修记录图片管理和报警处理功能
-重构文件哈希工具类路径并优化上传逻辑,支持秒传 - 新增维修记录图片ID列表字段及删除旧图片逻辑- 设备维修记录查询增加设备名称模糊搜索条件 -日期查询条件添加格式化注解支持 yyyy-MM-dd- MQTT规则中新增SOS与静止报警处理机制 - 实现报警生命周期管理(开始/结束)及Redis缓存控制 - 添加报警信息入库和位置解析功能 - 优化设备状态数据解析与经纬度异步存储逻辑
This commit is contained in:
@ -11,6 +11,8 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import jakarta.validation.constraints.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@ -70,4 +72,6 @@ public class DeviceRepairRecordsBo extends BaseEntity {
|
||||
@Schema(title = "维修后图片")
|
||||
@JsonIgnore
|
||||
private MultipartFile afterFile;
|
||||
|
||||
private List<Long> imageIds;
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.Date;
|
||||
@ -51,8 +52,10 @@ public class DeviceRepairRecordsQueryCriteria extends BaseEntity {
|
||||
private String repairPerson;
|
||||
|
||||
@Schema(title = "维修开始时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date repairBeginTime;
|
||||
@Schema(title = "维修结束时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date repairEndTime;
|
||||
|
||||
@Schema(title = "所属客户")
|
||||
|
||||
Reference in New Issue
Block a user