修复bug

main
刘政 2 weeks ago
parent 198c50c082
commit d098154f5a

@ -71,12 +71,6 @@ public class AlgorithmTask implements Serializable {
@Column(typeHandler = JacksonTypeHandler.class) @Column(typeHandler = JacksonTypeHandler.class)
private JsonNode userData; private JsonNode userData;
/**
* 0-1-
*/
// @Column(isLogicDelete = true)
@Schema(description = "是否删除")
private String isDeleted;
/** /**
* *

@ -79,12 +79,6 @@ public class Camera implements Serializable {
@Schema(description = "在线状态1-在线, 0-离线") @Schema(description = "在线状态1-在线, 0-离线")
private Integer status; private Integer status;
/**
* 0-1-
*/
// @Column(isLogicDelete = true)
@Schema(description = "是否删除")
private String isDeleted;
@Schema(description = "创建时间") @Schema(description = "创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;

@ -45,12 +45,7 @@ public class CameraSnapshot implements Serializable {
@Schema(description = "0-正常, 1-移位") @Schema(description = "0-正常, 1-移位")
private Integer isAbnormal; private Integer isAbnormal;
/**
* 0-1-
*/
// @Column(isLogicDelete = true)
@Schema(description = "是否删除")
private String isDeleted;
@Schema(description = "抓拍时间") @Schema(description = "抓拍时间")
private LocalDateTime createTime; private LocalDateTime createTime;

@ -44,12 +44,6 @@ public class Preset {
@Schema(description = "上报的url") @Schema(description = "上报的url")
private String presetUrl; private String presetUrl;
/**
* 0-1-
*/
// @Column(isLogicDelete = true)
@Schema(description = "是否删除")
private String isDeleted;
@Schema(description = "创建时间") @Schema(description = "创建时间")
private LocalDateTime createdTime; private LocalDateTime createdTime;

@ -340,7 +340,6 @@ public class IpChannelServiceImpl extends ServiceImpl<CameraMapper, Camera> impl
algorithmTaskDTO.setUserData(userDataDto); algorithmTaskDTO.setUserData(userDataDto);
// DTO转PO // DTO转PO
AlgorithmTask algorithmTask = BeanCopyUtils.copy(algorithmTaskDTO, AlgorithmTask.class); AlgorithmTask algorithmTask = BeanCopyUtils.copy(algorithmTaskDTO, AlgorithmTask.class);
algorithmTask.setIsDeleted("F");
algorithmTask.setCreateTime(createTime); algorithmTask.setCreateTime(createTime);
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
try { try {

Loading…
Cancel
Save