|
|
@ -63,8 +63,6 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
RedisUtil redisUtil;
|
|
|
|
RedisUtil redisUtil;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
IOcrIdentifyCallbackLogService ocrIdentifyCallbackLogService;
|
|
|
|
IOcrIdentifyCallbackLogService ocrIdentifyCallbackLogService;
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private IOcrIdentifyService ocrIdentifyService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public OcrIdentifyDTO findById(String id) {
|
|
|
|
public OcrIdentifyDTO findById(String id) {
|
|
|
@ -1227,7 +1225,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
public long calculateTimeDifference(String taskName) {
|
|
|
|
public long calculateTimeDifference(String taskName) {
|
|
|
|
QueryWrapper<OcrIdentify> queryWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<OcrIdentify> queryWrapper = new QueryWrapper<>();
|
|
|
|
queryWrapper.eq("taskName", taskName).orderByDesc("createTime").last("LIMIT 1");
|
|
|
|
queryWrapper.eq("taskName", taskName).orderByDesc("createTime").last("LIMIT 1");
|
|
|
|
OcrIdentify lastIdentify = ocrIdentifyService.getOne(queryWrapper);
|
|
|
|
OcrIdentify lastIdentify = this.getOne(queryWrapper);
|
|
|
|
if (lastIdentify != null) {
|
|
|
|
if (lastIdentify != null) {
|
|
|
|
Date lastCreateTime = lastIdentify.getCreateTime();
|
|
|
|
Date lastCreateTime = lastIdentify.getCreateTime();
|
|
|
|
Date currentTime = new Date();
|
|
|
|
Date currentTime = new Date();
|
|
|
|