修改依赖

淮阴-烟草
LAPTOP-S9HJSOEB\昊天 9 months ago
parent 125f75b7bf
commit ebf8d3bb9b

@ -51,6 +51,7 @@
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
@ -84,6 +85,14 @@
<version>${fastjson.version}</version> <version>${fastjson.version}</version>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>com.zhehekeji</groupId>-->
<!-- <artifactId>core</artifactId>-->
<!-- <version>1.0.0</version>-->
<!-- <scope>system</scope>-->
<!-- <systemPath>${project.basedir}/src/main/resources/lib/core-1.0.0.jar</systemPath>-->
<!-- </dependency>-->
<dependency> <dependency>
<groupId>com.google.zxing</groupId> <groupId>com.google.zxing</groupId>
<artifactId>core</artifactId> <artifactId>core</artifactId>
@ -102,14 +111,6 @@
<groupId>redis.clients</groupId> <groupId>redis.clients</groupId>
<artifactId>jedis</artifactId> <artifactId>jedis</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.zhehekeji</groupId>
<artifactId>core</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/core-1.0.0.jar</systemPath>
</dependency>
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>

@ -1,6 +1,6 @@
package com.zhehekeji.common.util; package com.zhehekeji.common.util;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
import org.apache.http.HttpStatus; import org.apache.http.HttpStatus;

@ -6,7 +6,7 @@ import com.google.zxing.MultiFormatWriter;
import com.google.zxing.WriterException; import com.google.zxing.WriterException;
import com.google.zxing.client.j2se.MatrixToImageWriter; import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix; import com.google.zxing.common.BitMatrix;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.binary.Base64;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;

@ -1,6 +1,6 @@
package com.zhehekeji.common.util; package com.zhehekeji.common.util;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

@ -0,0 +1,33 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package core.exception;
public class BizException extends RuntimeException {
private Integer code;
private String message;
public BizException() {
}
public BizException(String message) {
super(message);
this.message = message;
this.code = 500;
}
public BizException(Integer code, String message) {
this.message = message;
this.code = code;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}

@ -0,0 +1,42 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package core.exception;
import core.pojo.HttpStatus;
import core.pojo.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
@ControllerAdvice
public class BizExceptionHandler {
private static final Logger log = LoggerFactory.getLogger(BizExceptionHandler.class);
public BizExceptionHandler() {
}
@ExceptionHandler({BizException.class})
@ResponseBody
public Result<String> bussException(BizException e) {
log.warn("message:{},{}", e.getMessage(), e);
Result<String> result = new Result();
result.setMessage(e.getMessage());
result.setCode(e.getCode());
return result;
}
@ExceptionHandler({Exception.class})
@ResponseBody
public Result<String> exception(Exception e) {
log.error("{}:{}", e.getMessage(), e);
Result<String> result = new Result();
result.setMessage(HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase());
result.setCode(HttpStatus.INTERNAL_SERVER_ERROR.getCode());
return result;
}
}

@ -0,0 +1,28 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package core.pojo;
public enum HttpStatus {
SUCCESS(200, "SUCCESS"),
UNAUTHORIZED(401, "未认证"),
INTERNAL_SERVER_ERROR(500, "内部异常,请联系管理员");
private final int code;
private final String reasonPhrase;
public int getCode() {
return this.code;
}
public String getReasonPhrase() {
return this.reasonPhrase;
}
private HttpStatus(int code, String reasonPhrase) {
this.code = code;
this.reasonPhrase = reasonPhrase;
}
}

@ -0,0 +1,182 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package core.pojo;
public class Result<T> {
private Integer code;
private String message;
private T data;
public Result(T data) {
this.code = HttpStatus.SUCCESS.getCode();
this.data = data;
}
public static <T> Result<T> success(T data) {
Result<T> result = new Result();
result.setData(data);
result.setCode(HttpStatus.SUCCESS.getCode());
result.setMessage("SUCCESS");
return result;
}
public static <T> Result<T> success(T data, String msg) {
Result<T> result = new Result();
result.setData(data);
result.setCode(HttpStatus.SUCCESS.getCode());
result.setMessage(msg);
return result;
}
public static Result success() {
return builder().code(HttpStatus.SUCCESS.getCode()).message("SUCCESS").build();
}
public static <T> Result<T> error(Integer code, String message) {
Result<T> result = new Result();
result.setCode(code);
result.setMessage(message);
return result;
}
public static <T> ResultBuilder<T> builder() {
return new ResultBuilder();
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
public T getData() {
return this.data;
}
public void setCode(Integer code) {
this.code = code;
}
public void setMessage(String message) {
this.message = message;
}
public void setData(T data) {
this.data = data;
}
public boolean equals(Object o) {
if (o == this) {
return true;
} else if (!(o instanceof Result)) {
return false;
} else {
Result<?> other = (Result)o;
if (!other.canEqual(this)) {
return false;
} else {
label47: {
Object this$code = this.getCode();
Object other$code = other.getCode();
if (this$code == null) {
if (other$code == null) {
break label47;
}
} else if (this$code.equals(other$code)) {
break label47;
}
return false;
}
Object this$message = this.getMessage();
Object other$message = other.getMessage();
if (this$message == null) {
if (other$message != null) {
return false;
}
} else if (!this$message.equals(other$message)) {
return false;
}
Object this$data = this.getData();
Object other$data = other.getData();
if (this$data == null) {
if (other$data != null) {
return false;
}
} else if (!this$data.equals(other$data)) {
return false;
}
return true;
}
}
}
protected boolean canEqual(Object other) {
return other instanceof Result;
}
public int hashCode() {
int result = 1;
Object $code = this.getCode();
result = result * 59 + ($code == null ? 43 : $code.hashCode());
Object $message = this.getMessage();
result = result * 59 + ($message == null ? 43 : $message.hashCode());
Object $data = this.getData();
result = result * 59 + ($data == null ? 43 : $data.hashCode());
return result;
}
public String toString() {
return "Result(code=" + this.getCode() + ", message=" + this.getMessage() + ", data=" + this.getData() + ")";
}
public Result(Integer code, String message, T data) {
this.code = code;
this.message = message;
this.data = data;
}
public Result() {
}
public static class ResultBuilder<T> {
private Integer code;
private String message;
private T data;
ResultBuilder() {
}
public ResultBuilder<T> code(Integer code) {
this.code = code;
return this;
}
public ResultBuilder<T> message(String message) {
this.message = message;
return this;
}
public ResultBuilder<T> data(T data) {
this.data = data;
return this;
}
public Result<T> build() {
return new Result(this.code, this.message, this.data);
}
public String toString() {
return "Result.ResultBuilder(code=" + this.code + ", message=" + this.message + ", data=" + this.data + ")";
}
}
}

@ -0,0 +1,66 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package core.util;
import java.util.Collection;
import core.exception.BizException;
import core.pojo.HttpStatus;
import org.springframework.lang.Nullable;
import org.springframework.util.CollectionUtils;
public class Assert {
public Assert() {
}
public static void isTrue(boolean expression, String message) {
if (!expression) {
throw new BizException(HttpStatus.INTERNAL_SERVER_ERROR.getCode(), message);
}
}
public static void notEmpty(@Nullable Collection<?> collection, String message) {
if (CollectionUtils.isEmpty(collection)) {
throw new BizException(HttpStatus.INTERNAL_SERVER_ERROR.getCode(), message);
}
}
public static void notEmpty(@Nullable Collection<?> collection, Integer code, String message) {
if (CollectionUtils.isEmpty(collection)) {
throw new BizException(code, message);
}
}
public static void isNull(@Nullable Object object, String message) {
if (object != null) {
throw new BizException(HttpStatus.INTERNAL_SERVER_ERROR.getCode(), message);
}
}
public static void notNull(@Nullable Object object, String message) {
if (object == null) {
throw new BizException(HttpStatus.INTERNAL_SERVER_ERROR.getCode(), message);
}
}
public static void isTrue(boolean expression, Integer code, String message) {
if (!expression) {
throw new BizException(code, message);
}
}
public static void isNull(@Nullable Object object, Integer code, String message) {
if (object != null) {
throw new BizException(code, message);
}
}
public static void notNull(@Nullable Object object, Integer code, String message) {
if (object == null) {
throw new BizException(code, message);
}
}
}

@ -49,6 +49,7 @@
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>

@ -2,9 +2,6 @@ package com.zhehekeji.filter.aspect;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.zhehekeji.common.util.HttpUtil; import com.zhehekeji.common.util.HttpUtil;
import com.zhehekeji.core.pojo.HttpStatus;
import com.zhehekeji.core.pojo.Result;
import com.zhehekeji.core.util.Assert;
import com.zhehekeji.filter.FilterConstance; import com.zhehekeji.filter.FilterConstance;
import com.zhehekeji.filter.pojo.CurrentUser; import com.zhehekeji.filter.pojo.CurrentUser;
import com.zhehekeji.filter.pojo.SessionHandler; import com.zhehekeji.filter.pojo.SessionHandler;

@ -37,6 +37,7 @@
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
</dependencies> </dependencies>

@ -34,6 +34,7 @@
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>

@ -1,8 +1,8 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.zhehekeji.common.util.PathUtil; import com.zhehekeji.common.util.PathUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.Camera; import com.zhehekeji.web.entity.Camera;
import com.zhehekeji.web.lib.*; import com.zhehekeji.web.lib.*;

@ -5,7 +5,7 @@ import com.fasterxml.jackson.core.JsonParser;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.IntByReference;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.Camera; import com.zhehekeji.web.entity.Camera;
import com.zhehekeji.web.entity.CameraIO; import com.zhehekeji.web.entity.CameraIO;
import com.zhehekeji.web.entity.CameraIOConfig; import com.zhehekeji.web.entity.CameraIOConfig;

@ -1,7 +1,7 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.Category; import com.zhehekeji.web.entity.Category;
import com.zhehekeji.web.pojo.category.PageSearch; import com.zhehekeji.web.pojo.category.PageSearch;
import com.zhehekeji.web.service.CategoryService; import com.zhehekeji.web.service.CategoryService;

@ -2,7 +2,7 @@ package com.zhehekeji.web.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.CheckLog; import com.zhehekeji.web.entity.CheckLog;
import com.zhehekeji.web.entity.StockLog; import com.zhehekeji.web.entity.StockLog;
import com.zhehekeji.web.pojo.stock.CheckLogSearch; import com.zhehekeji.web.pojo.stock.CheckLogSearch;

@ -1,7 +1,7 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.CheckLog; import com.zhehekeji.web.entity.CheckLog;
import com.zhehekeji.web.entity.Street; import com.zhehekeji.web.entity.Street;
import com.zhehekeji.web.pojo.stock.CheckLogSearch; import com.zhehekeji.web.pojo.stock.CheckLogSearch;

@ -2,7 +2,7 @@ package com.zhehekeji.web.controller;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.CheckStreetSummary; import com.zhehekeji.web.entity.CheckStreetSummary;
import com.zhehekeji.web.entity.CheckSummary; import com.zhehekeji.web.entity.CheckSummary;
import com.zhehekeji.web.pojo.empty.EmptyCheckSearch; import com.zhehekeji.web.pojo.empty.EmptyCheckSearch;

@ -2,7 +2,7 @@ package com.zhehekeji.web.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.pojo.OrderSaveReq; import com.zhehekeji.web.pojo.OrderSaveReq;
import com.zhehekeji.web.pojo.OrderSearch; import com.zhehekeji.web.pojo.OrderSearch;
import com.zhehekeji.web.pojo.OrderVO; import com.zhehekeji.web.pojo.OrderVO;

@ -1,7 +1,7 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.Street; import com.zhehekeji.web.entity.Street;
import com.zhehekeji.web.mapper.StreetMapper; import com.zhehekeji.web.mapper.StreetMapper;

@ -1,6 +1,6 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.Camera; import com.zhehekeji.web.entity.Camera;
import com.zhehekeji.web.pojo.realTime.RealTime; import com.zhehekeji.web.pojo.realTime.RealTime;

@ -2,8 +2,8 @@ package com.zhehekeji.web.controller;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.zhehekeji.common.util.HttpUtil; import com.zhehekeji.common.util.HttpUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.pojo.IndexVO; import com.zhehekeji.web.pojo.IndexVO;
import com.zhehekeji.web.service.sick.SickConnMap; import com.zhehekeji.web.service.sick.SickConnMap;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;

@ -3,7 +3,7 @@ package com.zhehekeji.web.controller;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.Stock; import com.zhehekeji.web.entity.Stock;
import com.zhehekeji.web.pojo.category.PageSearch; import com.zhehekeji.web.pojo.category.PageSearch;
import com.zhehekeji.web.pojo.stock.*; import com.zhehekeji.web.pojo.stock.*;

@ -2,7 +2,7 @@ package com.zhehekeji.web.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.entity.StockLog; import com.zhehekeji.web.entity.StockLog;
import com.zhehekeji.web.pojo.stock.StockLogSearch; import com.zhehekeji.web.pojo.stock.StockLogSearch;
import com.zhehekeji.web.service.StockLogService; import com.zhehekeji.web.service.StockLogService;

@ -2,7 +2,7 @@ package com.zhehekeji.web.controller;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.LightSource; import com.zhehekeji.web.entity.LightSource;
import com.zhehekeji.web.entity.Street; import com.zhehekeji.web.entity.Street;

@ -1,6 +1,6 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.service.TestService; import com.zhehekeji.web.service.TestService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;

@ -2,7 +2,7 @@ package com.zhehekeji.web.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.pojo.warn.WarnSearch; import com.zhehekeji.web.pojo.warn.WarnSearch;
import com.zhehekeji.web.pojo.warn.WarnVO; import com.zhehekeji.web.pojo.warn.WarnVO;
import com.zhehekeji.web.service.WarnService; import com.zhehekeji.web.service.WarnService;

@ -4,7 +4,7 @@ import com.sun.jna.NativeLong;
import com.sun.jna.Pointer; import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.IntByReference;
import com.zhehekeji.common.util.PathUtil; import com.zhehekeji.common.util.PathUtil;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.entity.Camera; import com.zhehekeji.web.entity.Camera;
import com.zhehekeji.web.lib.CameraConnMap; import com.zhehekeji.web.lib.CameraConnMap;
import com.zhehekeji.web.lib.CameraControlModule; import com.zhehekeji.web.lib.CameraControlModule;

@ -2,7 +2,7 @@ package com.zhehekeji.web.lib.joyware;
import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.IntByReference;
import com.zhehekeji.common.util.PathUtil; import com.zhehekeji.common.util.PathUtil;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.lib.CameraConnMap; import com.zhehekeji.web.lib.CameraConnMap;
import com.zhehekeji.web.lib.CameraControlModule; import com.zhehekeji.web.lib.CameraControlModule;
import com.zhehekeji.web.pojo.camera.CameraPtzPojo; import com.zhehekeji.web.pojo.camera.CameraPtzPojo;

@ -4,7 +4,7 @@ import com.alibaba.excel.EasyExcel;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.Camera; import com.zhehekeji.web.entity.Camera;
import com.zhehekeji.web.entity.CameraIO; import com.zhehekeji.web.entity.CameraIO;

@ -6,7 +6,7 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.entity.Category; import com.zhehekeji.web.entity.Category;
import com.zhehekeji.web.mapper.CategoryMapper; import com.zhehekeji.web.mapper.CategoryMapper;
import com.zhehekeji.web.pojo.camera.IOImport; import com.zhehekeji.web.pojo.camera.IOImport;

@ -7,6 +7,7 @@ import com.zhehekeji.web.mapper.LightSourceMapper;
import com.zhehekeji.web.service.damLightSource.JYDAMEquip; import com.zhehekeji.web.service.damLightSource.JYDAMEquip;
import com.zhehekeji.web.service.damLightSource.JYDamHelper; import com.zhehekeji.web.service.damLightSource.JYDamHelper;
import com.zhehekeji.web.service.hikLightSource.HikControlSocket; import com.zhehekeji.web.service.hikLightSource.HikControlSocket;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -21,6 +22,7 @@ import java.nio.charset.StandardCharsets;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@Slf4j
@Service @Service
public class LightSourceService { public class LightSourceService {

@ -3,7 +3,7 @@ package com.zhehekeji.web.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhehekeji.common.util.PathUtil; import com.zhehekeji.common.util.PathUtil;
import com.zhehekeji.core.pojo.Result; import core.pojo.Result;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.*; import com.zhehekeji.web.entity.*;
import com.zhehekeji.web.lib.*; import com.zhehekeji.web.lib.*;
@ -675,7 +675,7 @@ public class PlcService {
public boolean check(PlcCmdInfo plcCmdInfo, KsecDataInfo dataInfo) { public boolean check(PlcCmdInfo plcCmdInfo, KsecDataInfo dataInfo) {
Street street = streetService.getStreetByPlcId(dataInfo.getSRMNumber()); Street street = streetService.getStreetByPlcId(dataInfo.getSRMNumber());
dataInfo.setFromSide(plcCmdInfo.getSeparation1());
//开始盘点具体货位 //开始盘点具体货位
CheckLog checkLog = new CheckLog(); CheckLog checkLog = new CheckLog();
checkLog.setStreetId(street.getId()); checkLog.setStreetId(street.getId());
@ -734,6 +734,7 @@ public class PlcService {
// 格式化为字符串 // 格式化为字符串
String formattedDate = now.format(formatter); String formattedDate = now.format(formatter);
log.info("algorithmPojo:{}", algorithmPojo);
if (algorithmPojo!=null ){ if (algorithmPojo!=null ){
if (algorithmPojo.equals(Objects.equals(dataInfo.getTrayCode(), "0"))){ if (algorithmPojo.equals(Objects.equals(dataInfo.getTrayCode(), "0"))){
checkLog.setStatus(StockStatus.SUCCESS.getStatus()); checkLog.setStatus(StockStatus.SUCCESS.getStatus());
@ -796,6 +797,9 @@ public class PlcService {
} }
public static void main(String[] args) {
System.out.println(Boolean.TRUE.equals(Objects.equals("1", "0")));
}
public void visualCalculationResults(TransmissionPojo transmissionPojo) { public void visualCalculationResults(TransmissionPojo transmissionPojo) {

@ -5,7 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.*; import com.zhehekeji.web.entity.*;
import com.zhehekeji.web.mapper.*; import com.zhehekeji.web.mapper.*;

@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.core.util.Assert; import core.util.Assert;
import com.zhehekeji.web.config.ConfigProperties; import com.zhehekeji.web.config.ConfigProperties;
import com.zhehekeji.web.entity.LightSource; import com.zhehekeji.web.entity.LightSource;
import com.zhehekeji.web.entity.RFID; import com.zhehekeji.web.entity.RFID;

Loading…
Cancel
Save