|
@@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
public class InterlockLoginConfigController extends JeecgController<InterlockLoginConfig, IInterlockLoginConfigService> {
|
|
|
@Autowired
|
|
|
private IInterlockLoginConfigService interlockLoginConfigService;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +71,7 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
|
|
|
IPage<InterlockLoginConfig> pageList = interlockLoginConfigService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -86,7 +86,7 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
|
|
|
interlockLoginConfigService.save(interlockLoginConfig);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
@@ -101,7 +101,7 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
|
|
|
interlockLoginConfigService.updateById(interlockLoginConfig);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -116,7 +116,7 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
|
|
|
interlockLoginConfigService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -131,7 +131,7 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
|
|
|
this.interlockLoginConfigService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|
|
@@ -174,4 +174,20 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
|
|
|
return super.importExcel(request, response, InterlockLoginConfig.class);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 编辑状态 是否使用 id和status
|
|
|
+ *
|
|
|
+ * @param interlockLoginConfig
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @AutoLog(value = "联锁登陆页配置表-编辑使用状态")
|
|
|
+ @ApiOperation(value="联锁登陆页配置表-编辑使用状态", notes="联锁登陆页配置表-编辑使用状态")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:interlock_login_config:edit")
|
|
|
+ @RequestMapping(value = "/editStatus", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
+ public Result<String> editStatus(@RequestBody InterlockLoginConfig interlockLoginConfig) {
|
|
|
+ interlockLoginConfigService.updateStatusById(interlockLoginConfig);
|
|
|
+ return Result.OK("编辑成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|