fix:日志
This commit is contained in:
@@ -1011,13 +1011,13 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
requireSucess = false;
|
requireSucess = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//判断有没有第二段出库输送指令,有的话则不生成入库指令
|
//TODO 判断有没有第二段出库输送指令,有的话则不生成入库指令
|
||||||
Instruction byStarCodeAndExcute = instructionService.findByStarCodeAndExcute(next_device_code);
|
// Instruction byStarCodeAndExcute = instructionService.findByStarCodeAndExcute(next_device_code);
|
||||||
if (ObjectUtil.isNotEmpty(byStarCodeAndExcute)) {
|
// if (ObjectUtil.isNotEmpty(byStarCodeAndExcute)) {
|
||||||
this.message = "有DDJ对接位出入库的指令";
|
// this.message = "有DDJ对接位出入库的指令";
|
||||||
requireSucess = false;
|
// requireSucess = false;
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
//关联站点判断
|
//关联站点判断
|
||||||
Device nextDevice = deviceAppService.findDeviceByCode(next_device_code);
|
Device nextDevice = deviceAppService.findDeviceByCode(next_device_code);
|
||||||
BeltConveyorDeviceDriver beltConveyorDeviceDriver;
|
BeltConveyorDeviceDriver beltConveyorDeviceDriver;
|
||||||
@@ -1037,7 +1037,6 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TaskDto dto = taskserver.findByCodeAndExcute(taskdto.getNext_device_code(), taskdto.getStart_device_code());
|
TaskDto dto = taskserver.findByCodeAndExcute(taskdto.getNext_device_code(), taskdto.getStart_device_code());
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public @interface Log {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
boolean isAddLogTable() default true;
|
boolean isAddLogTable() default false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否接口日志
|
* 是否接口日志
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ public class LogAspect {
|
|||||||
log.error("track_id:{},error:{}", trackId, ex.getMessage());
|
log.error("track_id:{},error:{}", trackId, ex.getMessage());
|
||||||
SysLog log = new SysLog("ERROR", System.currentTimeMillis() - startTime);
|
SysLog log = new SysLog("ERROR", System.currentTimeMillis() - startTime);
|
||||||
log.setException_detail(ThrowableUtil.getStackTrace(ex).getBytes());
|
log.setException_detail(ThrowableUtil.getStackTrace(ex).getBytes());
|
||||||
logService.save(getUsername(), StringUtils.getBrowser(request), StringUtils.getIp(request), (ProceedingJoinPoint) joinPoint, log);
|
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user