Commit 35817894 authored by liqin's avatar liqin 💬

bug fixed

parent b60b0009
......@@ -107,16 +107,23 @@ public class SystemOperationLogService extends ServiceImpl<SysLogMapper, SysLog>
}
Object[] method_param = point.getArgs(); //获取方法参数;
if (OperModule.STBOPERATION.getMsg().equals(methodLog.operModule().getMsg())) {
TBoxOperation t = (TBoxOperation) method_param[0];
Object obj = method_param[0];
String status;
if (obj instanceof TBoxOperation) {
TBoxOperation t = (TBoxOperation) obj;
status = t.getStatus() + "";
} else {
status = (String) obj;
}
TOperationLog operationLog = new TOperationLog();
operationLog.setCreateTime(LocalDateTime.now());
operationLog.setUserId(user.getId());
if (user.getAreaName() != null) {
operationLog.setArea(user.getAreaName());
}
if (OperType.ACTIVATION.getMsg().equals(methodLog.operType().getMsg())&&3==(t.getStatus())){
operationLog.setOperationType(OperType.FAULT.getMsg());
}else {
if (OperType.ACTIVATION.getMsg().equals(methodLog.operType().getMsg()) && "3".equals(status)) {
operationLog.setOperationType(OperType.FAULT.getMsg());
} else {
operationLog.setOperationType(OperType.ACTIVATION.getMsg());
}
operationLogService.save(operationLog);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment