Commit 7edea1ed authored by liqin's avatar liqin 💬

Merge branch 'dev' of http://111.203.232.171:8888/lee/chnmuseum-party into dev

parents fd89d5e9 3808b93b
......@@ -107,13 +107,18 @@ 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];
TOperationLog operationLog = new TOperationLog();
operationLog.setCreateTime(LocalDateTime.now());
operationLog.setUserId(user.getId());
if (user.getAreaName() != null) {
operationLog.setArea(user.getAreaName());
}
operationLog.setOperationType(methodLog.operType().getMsg());
if (OperType.ACTIVATION.getMsg().equals(methodLog.operType().getMsg())&&3==(t.getStatus())){
operationLog.setOperationType(OperType.FAULT.getMsg());
}else {
operationLog.setOperationType(OperType.ACTIVATION.getMsg());
}
operationLogService.save(operationLog);
return method_param;
}
......
......@@ -123,6 +123,9 @@ public class TOrganController extends BaseController {
if (!byId.getParentId().equals(tOrgan.getParentId())) {
tOrgan.setCode(getOrganCode(tOrgan.getParentId()));
}
}else {
tOrgan.setParentId("0");
tOrgan.setCode(getOrganCode(tOrgan.getParentId()));
}
if (StringUtils.isNotBlank(tOrgan.getCode())) {
if (byId.getChildren().size() > 0) {
......
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