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 = "获得分组标签列表")
|
@Operation(summary = "获得分组标签列表")
|
||||||
@PreAuthorize("@ss.hasPermission('system:label:query')")
|
@PreAuthorize("@ss.hasPermission('system:label:query')")
|
||||||
@OperateLog(enable = false)
|
@OperateLog(enable = false)
|
||||||
public CommonResult<Map<String, List<LabelRespVO>>> getGroupList() {
|
public CommonResult<Map<String, List<LabelRespVO>>> getGroupList(@RequestParam(value = "organId", required = false) Long organId) {
|
||||||
return success(labelService.getGroupList());
|
return success(labelService.getGroupList(organId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ public interface LabelService {
|
|||||||
PageResult<LabelDO> getLabelPage(LabelPageReqVO pageReqVO);
|
PageResult<LabelDO> getLabelPage(LabelPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
|
||||||
Map<String, List<LabelRespVO>> getGroupList();
|
Map<String, List<LabelRespVO>> getGroupList(Long organId);
|
||||||
|
|
||||||
List<LabelDO> list(String type);
|
List<LabelDO> list(String type);
|
||||||
}
|
}
|
||||||
+2
-2
@@ -97,8 +97,8 @@ public class LabelServiceImpl implements LabelService {
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, List<LabelRespVO>> getGroupList() {
|
public Map<String, List<LabelRespVO>> getGroupList(Long organId) {
|
||||||
List<LabelDO> LabelDOS = labelMapper.selectList();
|
List<LabelDO> LabelDOS = labelMapper.selectList(new LambdaQueryWrapperX<LabelDO>().eqIfPresent(LabelDO::getOrganId, organId));
|
||||||
List<LabelRespVO> LabelRespVOS = BeanUtils.toBean(LabelDOS, LabelRespVO.class);
|
List<LabelRespVO> LabelRespVOS = BeanUtils.toBean(LabelDOS, LabelRespVO.class);
|
||||||
return LabelRespVOS.stream().collect(Collectors.groupingBy(LabelRespVO::getType));
|
return LabelRespVOS.stream().collect(Collectors.groupingBy(LabelRespVO::getType));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user