mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
获得分组标签列表接口添加组织id参数筛选
This commit is contained in:
+2
-2
@@ -92,8 +92,8 @@ public class LabelController {
|
||||
@Operation(summary = "获得分组标签列表")
|
||||
@PreAuthorize("@ss.hasPermission('system:label:query')")
|
||||
@OperateLog(enable = false)
|
||||
public CommonResult<Map<String, List<LabelRespVO>>> getGroupList() {
|
||||
return success(labelService.getGroupList());
|
||||
public CommonResult<Map<String, List<LabelRespVO>>> getGroupList(@RequestParam(value = "organId", required = false) Long organId) {
|
||||
return success(labelService.getGroupList(organId));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ public interface LabelService {
|
||||
PageResult<LabelDO> getLabelPage(LabelPageReqVO pageReqVO);
|
||||
|
||||
|
||||
Map<String, List<LabelRespVO>> getGroupList();
|
||||
Map<String, List<LabelRespVO>> getGroupList(Long organId);
|
||||
|
||||
List<LabelDO> list(String type);
|
||||
}
|
||||
+2
-2
@@ -97,8 +97,8 @@ public class LabelServiceImpl implements LabelService {
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, List<LabelRespVO>> getGroupList() {
|
||||
List<LabelDO> LabelDOS = labelMapper.selectList();
|
||||
public Map<String, List<LabelRespVO>> getGroupList(Long organId) {
|
||||
List<LabelDO> LabelDOS = labelMapper.selectList(new LambdaQueryWrapperX<LabelDO>().eqIfPresent(LabelDO::getOrganId, organId));
|
||||
List<LabelRespVO> LabelRespVOS = BeanUtils.toBean(LabelDOS, LabelRespVO.class);
|
||||
return LabelRespVOS.stream().collect(Collectors.groupingBy(LabelRespVO::getType));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user