1
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 12m21s
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 12m21s
This commit is contained in:
@@ -7,14 +7,13 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.*;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.dromara.common.core.domain.TreeNode;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.web.core.BaseController;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.excel.utils.ExcelUtil;
|
||||
import org.dromara.sis.domain.vo.SisAuthRecordVo;
|
||||
@@ -69,28 +68,6 @@ public class SisAuthRecordController extends BaseController {
|
||||
return R.ok(sisAuthRecordService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增授权记录
|
||||
*/
|
||||
// @SaCheckPermission("sis:authRecord:add")
|
||||
// @Log(title = "人员库授权", businessType = BusinessType.INSERT)
|
||||
// @RepeatSubmit()
|
||||
// @PostMapping()
|
||||
// public R<Void> add(@Validated(AddGroup.class) @RequestBody SisAuthRecordBo bo) {
|
||||
// return toAjax(sisAuthRecordService.insertByBo(bo));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 修改授权记录
|
||||
*/
|
||||
// @SaCheckPermission("sis:authRecord:edit")
|
||||
// @Log(title = "授权记录", businessType = BusinessType.UPDATE)
|
||||
// @RepeatSubmit()
|
||||
// @PutMapping()
|
||||
// public R<Void> edit(@Validated(EditGroup.class) @RequestBody SisAuthRecordBo bo) {
|
||||
// return toAjax(sisAuthRecordService.updateByBo(bo));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 删除授权记录
|
||||
*
|
||||
@@ -104,16 +81,6 @@ public class SisAuthRecordController extends BaseController {
|
||||
return toAjax(sisAuthRecordService.deleteWithValidByIds(List.of(ids), true));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询库id授权的设备
|
||||
*
|
||||
* @param libId 人像库id
|
||||
*/
|
||||
// @GetMapping("/authDevice/{libId}")
|
||||
// public R<List<SisAuthRecord>> queryAuthDevice(@PathVariable("libId") String libId) {
|
||||
// return R.ok(sisAuthRecordService.queryAuthDevice(libId));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 查询所有可授权设备
|
||||
*
|
||||
@@ -123,4 +90,16 @@ public class SisAuthRecordController extends BaseController {
|
||||
public R<List<TreeNode<Long>>> tree() {
|
||||
return R.ok(sisAuthRecordService.authDeviceTree());
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动授权接口
|
||||
*
|
||||
* @param personId 人员id
|
||||
*/
|
||||
@RepeatSubmit()
|
||||
@GetMapping("/auth/{id}")
|
||||
public R<Void> auth(@NotNull(message = "人员id不能为空")
|
||||
@PathVariable("id") Long personId) {
|
||||
return toAjax(sisAuthRecordService.manualAuth(personId));
|
||||
}
|
||||
}
|
||||
|
@@ -68,21 +68,6 @@ public interface ISisAuthRecordService {
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
|
||||
/**
|
||||
* 查询库id授权的设备
|
||||
*
|
||||
* @param libId 人像库id
|
||||
* @return List<SisAuthRecord>
|
||||
*/
|
||||
// List<SisAuthRecord> queryAuthDevice(String libId);
|
||||
|
||||
/**
|
||||
* 根据人像库id删除授权记录
|
||||
*
|
||||
* @param libId 人像库id
|
||||
*/
|
||||
// Boolean deleteByLibId(Long libId);
|
||||
|
||||
/**
|
||||
* 查询所有可授权设备树
|
||||
*
|
||||
@@ -121,5 +106,11 @@ public interface ISisAuthRecordService {
|
||||
*/
|
||||
Boolean queryByGroupIds(Collection<Long> groupIds);
|
||||
|
||||
/**
|
||||
* 手动授权
|
||||
*
|
||||
* @param personId 人员id
|
||||
*/
|
||||
Boolean manualAuth(Long personId);
|
||||
|
||||
}
|
||||
|
@@ -394,4 +394,14 @@ public class SisAuthRecordServiceImpl implements ISisAuthRecordService {
|
||||
List<SisAuthRecordVo> authVoList = baseMapper.selectVoList(lqw);
|
||||
return CollUtil.isNotEmpty(authVoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动授权
|
||||
*
|
||||
* @param personId 人员id
|
||||
*/
|
||||
@Override
|
||||
public Boolean manualAuth(Long personId) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user