|
|
@@ -6,6 +6,7 @@ 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.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
@@ -42,12 +43,16 @@ public class GovBusinessStripManage { |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
|
|
|
|
public List<ProvincialGovBusinessStripVO> getProvincialGovBusinessStripList() { |
|
|
|
public List<ProvincialGovBusinessStripVO> getProvincialGovBusinessStripList(String businessStripName) { |
|
|
|
List<ProvincialGovBusinessStripVO> provincialGovBusinessStripVOList = new ArrayList<>(); |
|
|
|
ProvincialGovBusinessStripVO provincialGovBusinessStripVO = new ProvincialGovBusinessStripVO(); |
|
|
|
provincialGovBusinessStripVO.setBusinessStripCode("test_provincial_manage_org_code"); |
|
|
|
provincialGovBusinessStripVO.setBusinessStripName("测试省局条线主管单位"); |
|
|
|
provincialGovBusinessStripVOList.add(provincialGovBusinessStripVO); |
|
|
|
|
|
|
|
provincialGovBusinessStripVOList = provincialGovBusinessStripVOList.stream() |
|
|
|
.filter(b -> StringUtils.isBlank(businessStripName) || b.getBusinessStripName().equals(businessStripName)) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
return provincialGovBusinessStripVOList; |
|
|
|
} |
|
|
|
} |