소스 검색

省级条线单位列表

master
niohe·erbao 1 년 전
부모
커밋
29c27fb517
3개의 변경된 파일40개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/GovBusinessStripController.java
  2. +11
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/GovBusinessStripManage.java
  3. +21
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/organization/model/vo/ProvincialGovBusinessStripVO.java

+ 8
- 0
pmapi/src/main/java/com/ningdatech/pmapi/organization/controller/GovBusinessStripController.java 파일 보기

@@ -3,6 +3,7 @@ package com.ningdatech.pmapi.organization.controller;

import com.ningdatech.pmapi.organization.manage.GovBusinessStripManage;
import com.ningdatech.pmapi.organization.model.vo.GovBusinessStripTreeVO;
import com.ningdatech.pmapi.organization.model.vo.ProvincialGovBusinessStripVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
@@ -41,4 +42,11 @@ public class GovBusinessStripController {
return govBusinessStripManage.getChildOrganizationList(parentCode);
}


@GetMapping("/list")
@ApiOperation("获取省局条线列表")
public List<ProvincialGovBusinessStripVO> getProvincialGovBusinessStripList() {
return govBusinessStripManage.getProvincialGovBusinessStripList();
}

}

+ 11
- 0
pmapi/src/main/java/com/ningdatech/pmapi/organization/manage/GovBusinessStripManage.java 파일 보기

@@ -3,10 +3,12 @@ package com.ningdatech.pmapi.organization.manage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ningdatech.pmapi.organization.entity.GovBusinessStrip;
import com.ningdatech.pmapi.organization.model.vo.GovBusinessStripTreeVO;
import com.ningdatech.pmapi.organization.model.vo.ProvincialGovBusinessStripVO;
import com.ningdatech.pmapi.organization.service.IGovBusinessStripService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
@@ -39,4 +41,13 @@ public class GovBusinessStripManage {
return govBusinessStripTreeVO;
}).collect(Collectors.toList());
}

public List<ProvincialGovBusinessStripVO> getProvincialGovBusinessStripList() {
List<ProvincialGovBusinessStripVO> provincialGovBusinessStripVOList = new ArrayList<>();
ProvincialGovBusinessStripVO provincialGovBusinessStripVO = new ProvincialGovBusinessStripVO();
provincialGovBusinessStripVO.setBusinessStripCode("test_provincial_manage_org_code");
provincialGovBusinessStripVO.setBusinessStripName("测试省局条线主管单位");
provincialGovBusinessStripVOList.add(provincialGovBusinessStripVO);
return provincialGovBusinessStripVOList;
}
}

+ 21
- 0
pmapi/src/main/java/com/ningdatech/pmapi/organization/model/vo/ProvincialGovBusinessStripVO.java 파일 보기

@@ -0,0 +1,21 @@
package com.ningdatech.pmapi.organization.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* @author Liuxinxin
* @since 2023-03-08
*/
@Data
@ApiModel(value = "条线 responseVO", description = "")
public class ProvincialGovBusinessStripVO {

@ApiModelProperty("条线code")
private String businessStripCode;

@ApiModelProperty("条线名称")
private String businessStripName;

}

불러오는 중...
취소
저장