文件记录-流程查询-添加记录列表

This commit is contained in:
YBP
2026-03-13 13:41:58 +08:00
parent fa306e8ff7
commit 6bf81bf380
11 changed files with 220 additions and 187 deletions

View File

@@ -51,7 +51,7 @@ public class RecordConstants {
/** /**
* 查看申请 * 查看申请
*/ */
public static final String VIEW_APPLY = "文件查看申请"; public static final String VIEW_APPLY = "文件查看";
/** /**
* 作废 * 作废
*/ */
@@ -67,7 +67,7 @@ public class RecordConstants {
/** /**
* 文件提交 * 文件提交
* */ * */
public static final String RECORD_UPDATE = "文件修改申请"; public static final String RECORD_UPDATE = "文件更改";
} }
/** /**

View File

@@ -114,13 +114,13 @@ public class RecordCategoryController extends AbstractFileUploadController imple
// 文件评审,获取满足当前账户权限的记录列表 // 文件评审,获取满足当前账户权限的记录列表
@GetMapping("/getReviewRecordList") // @GetMapping("/getReviewRecordList")
@Operation(summary = "获得文件记录分类") // @Operation(summary = "获得文件记录分类")
//@PreAuthorize("@ss.hasPermission('qms:record-record:query')") // //@PreAuthorize("@ss.hasPermission('qms:record-record:query')")
public CommonResult<List<RecordCategoryRespVO>> getReviewRecordList() { // public CommonResult<List<RecordCategoryRespVO>> getReviewRecordList() {
List<RecordCategoryRespVO> recordRecords = recordCategoryService.getReviewRecordList(); // List<RecordCategoryRespVO> recordRecords = recordCategoryService.getReviewRecordList();
return success(recordRecords); // return success(recordRecords);
} // }
@GetMapping("/getRecordCategoryTree") @GetMapping("/getRecordCategoryTree")

View File

@@ -136,4 +136,13 @@ public class RecordPermissionController extends AbstractFileUploadController imp
BeanUtils.toBean(list, RecordPermissionRespVO.class)); BeanUtils.toBean(list, RecordPermissionRespVO.class));
} }
@GetMapping("/test")
@Operation(summary = "导出记录权限 Excel")
//@PreAuthorize("@ss.hasPermission('qms:record-permission:export')")
@ApiAccessLog(operateType = EXPORT)
public void test() {
recordPermissionService.test();
}
} }

View File

@@ -140,17 +140,16 @@ public class RecordRecordController extends AbstractFileUploadController impleme
return success(BeanUtils.toBean(matchedPermissionList, RecordPermissionRespVO.class)); return success(BeanUtils.toBean(matchedPermissionList, RecordPermissionRespVO.class));
} }
// @GetMapping("/export-excel")
// @Operation(summary = "导出文件、模板、记录 Excel") // 流程--查询记录列表
// //@PreAuthorize("@ss.hasPermission('qms:record-record:export')") @GetMapping("/getRecordList")
// @ApiAccessLog(operateType = EXPORT) @Operation(summary = "获得文件、模板、记录分页")
// public void exportRecordRecordExcel(@Valid RecordRecordPageReqVO pageReqVO, //@PreAuthorize("@ss.hasPermission('qms:record-record:query')")
// HttpServletResponse response) throws IOException { public CommonResult<List<RecordRecordRespVO>> getRecordList(RecordRecordPageReqVO pageReqVO) {
// pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
// List<RecordRecordDO> list = recordRecordService.getRecordRecordPage(pageReqVO).getList(); List<RecordRecordRespVO> result = recordRecordService.getRecordList(pageReqVO);
// // 导出 Excel return success(BeanUtils.toBean(result, RecordRecordRespVO.class));
// ExcelUtils.write(response, "文件、模板、记录.xls", "数据", RecordRecordRespVO.class, }
// BeanUtils.toBean(list, RecordRecordRespVO.class));
// }
} }

View File

@@ -91,5 +91,6 @@ public interface RecordRecordMapper extends BaseMapperX<RecordRecordDO> {
@Param("userId") Long userId, @Param("userId") Long userId,
@Param("userDepts") List<Long> userDepts); @Param("userDepts") List<Long> userDepts);
List<RecordRecordDO> selectViewApplyRecordList(@Param("pageReqVO") RecordRecordPageReqVO pageReqVO); // TODO
// List<RecordRecordDO> selectViewApplyRecordList(@Param("pageReqVO") RecordRecordPageReqVO pageReqVO);
} }

View File

@@ -100,4 +100,6 @@ public interface RecordPermissionService {
* @return * @return
*/ */
List<Long> getParentDepts(); List<Long> getParentDepts();
void test();
} }

View File

@@ -13,6 +13,7 @@ import com.zt.plat.module.qms.resource.record.controller.admin.recordpermission.
import com.zt.plat.module.qms.resource.record.dal.dataobject.recordcategory.RecordCategoryDO; import com.zt.plat.module.qms.resource.record.dal.dataobject.recordcategory.RecordCategoryDO;
import com.zt.plat.module.system.api.dept.DeptApi; import com.zt.plat.module.system.api.dept.DeptApi;
import com.zt.plat.module.system.api.dept.dto.DeptRespDTO; import com.zt.plat.module.system.api.dept.dto.DeptRespDTO;
import com.zt.plat.module.system.api.dept.dto.DeptSimpleRespDTO;
import com.zt.plat.module.system.api.permission.PermissionApi; import com.zt.plat.module.system.api.permission.PermissionApi;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@@ -55,6 +56,17 @@ public class RecordPermissionServiceImpl implements RecordPermissionService {
private Set<Long> roles = new HashSet<>(); private Set<Long> roles = new HashSet<>();
@Override
public void test(){
CommonResult<List<DeptSimpleRespDTO>> allCompanyList = deptApi.getAllCompanyList();
log.info("allCompanyList:{}",allCompanyList);
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
Long visitDeptId = loginUser.getVisitDeptId();
if (ObjectUtils.isEmpty(visitDeptId)) CommonResult.error(RECORD_APPLY_NOT_EXISTS.getCode(), RECORD_APPLY_NOT_EXISTS.getMsg());
CommonResult<List<DeptRespDTO>> childDeptList = deptApi.getChildDeptList(visitDeptId);
log.info("booleanCommonResult:{}",childDeptList);
}
/** /**
* 通过分类Id 获取满足当前用户的权限列表 * 通过分类Id 获取满足当前用户的权限列表
* @param categoryId * @param categoryId

View File

@@ -88,8 +88,10 @@ public interface RecordRecordService {
void updateRecordRecordListByIds(List<RecordRecordDO> recordRecordDOS); void updateRecordRecordListByIds(List<RecordRecordDO> recordRecordDOS);
List<RecordRecordRespVO> getRecordList(RecordRecordPageReqVO pageReqVO);
/** /**
* 文件更改申请流程-- 查询文件记录数据 * 文件更改申请流程-- 查询文件记录数据
*/ */
List<RecordRecordDO> selectViewApplyRecordList(RecordRecordPageReqVO pageReqVO); // List<RecordRecordDO> selectViewApplyRecordList(RecordRecordPageReqVO pageReqVO);
} }

Some files were not shown because too many files have changed in this diff Show More