|
|
@@ -16,6 +16,7 @@ import org.aspectj.lang.annotation.*;
|
|
|
import org.aspectj.lang.reflect.MethodSignature;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.lang.reflect.Method;
|
|
|
@@ -29,6 +30,7 @@ public class OperatorTrajectoryAspect {
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
+ @Lazy
|
|
|
OperatorTrajectoryService operatorTrajectoryService;
|
|
|
|
|
|
|
|
|
@@ -63,7 +65,7 @@ public class OperatorTrajectoryAspect {
|
|
|
byId.setExecuteStatus(2);
|
|
|
byId.setErrorMsg(result.getMsg());
|
|
|
}
|
|
|
- operatorTrajectoryService.updateById(byId);
|
|
|
+// operatorTrajectoryService.updateById(byId);
|
|
|
}
|
|
|
}
|
|
|
// 清除上下文
|
|
|
@@ -77,10 +79,10 @@ public class OperatorTrajectoryAspect {
|
|
|
if (context != null) {
|
|
|
String methodName = context.getMethodName();
|
|
|
if(joinPoint.getSignature().getName().equals(methodName)){
|
|
|
- com.jzg.commons.entity.po.OperatorTrajectory byId = operatorTrajectoryService.getById(context.getId());
|
|
|
- byId.setExecuteStatus(2);
|
|
|
- byId.setErrorMsg(ex.getMessage());
|
|
|
- operatorTrajectoryService.updateById(byId);
|
|
|
+// com.jzg.commons.entity.po.OperatorTrajectory byId = operatorTrajectoryService.getById(context.getId());
|
|
|
+// byId.setExecuteStatus(2);
|
|
|
+// byId.setErrorMsg(ex.getMessage());
|
|
|
+// operatorTrajectoryService.updateById(byId);
|
|
|
}
|
|
|
}
|
|
|
// 清除上下文
|