Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -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 = "文件更改";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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));
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -100,4 +100,6 @@ public interface RecordPermissionService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<Long> getParentDepts();
|
List<Long> getParentDepts();
|
||||||
|
|
||||||
|
void test();
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user