修复bug

dev_xq_0.0.1
刘政 2 weeks ago
parent 8fcae28c5e
commit da8f4f3307

@ -1,7 +1,7 @@
spring: spring:
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:13306/sz_admin_preview?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://127.0.0.1:3306/sz_admin_preview?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: 123456
hikari: hikari:

@ -35,12 +35,4 @@ public class UserModelContentDTO {
* *
*/ */
private String modelContentId; private String modelContentId;
/**
*
*/
private Date addTime;
/**
*
*/
private Date updateTime;
} }

@ -71,12 +71,7 @@ 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,7 @@ 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,6 @@ 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,7 @@ 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;

@ -45,16 +45,6 @@ public class UserModelContentDO implements Serializable {
*/ */
@Schema(description = "模型内容") @Schema(description = "模型内容")
private String modelContentId; private String modelContentId;
/**
*
*/
@Schema(description = "添加时间")
private Date addTime;
/**
*
*/
@Schema(description = "修改时间")
private Date updateTime;
public static final String ID="id"; public static final String ID="id";
public static final String USER_ID="user_id"; public static final String USER_ID="user_id";

@ -194,7 +194,7 @@ public class IpChannelServiceImpl extends ServiceImpl<CameraMapper, Camera> impl
if (hcPlayControlEnum == null) { if (hcPlayControlEnum == null) {
throw new BusinessException(AdminResponseEnum.DEVICE_PTZ_CONTROL_FAIL, null, "PTZ控制失败"); throw new BusinessException(AdminResponseEnum.DEVICE_PTZ_CONTROL_FAIL, null, "PTZ控制失败");
} }
return manageNVR.ptzCon(id.intValue(), hcPlayControlEnum.getCode().toString(), String.valueOf(speed), String.valueOf(startFlag)); return manageNVR. ptzCon(id.intValue(), hcPlayControlEnum.getCode().toString(), String.valueOf(speed), String.valueOf(startFlag));
} }
@Override @Override
@ -336,7 +336,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