|
@@ -11,10 +11,7 @@ import com.gyee.common.vo.benchmark.FjjxbmxVo;
|
|
|
import com.gyee.common.vo.benchmark.WxsslVo;
|
|
|
import com.gyee.runeconomy.dto.R;
|
|
|
import com.gyee.runeconomy.dto.ResultMsg;
|
|
|
-import com.gyee.runeconomy.model.auto.ProBasicCompany;
|
|
|
-import com.gyee.runeconomy.model.auto.ProBasicLine;
|
|
|
-import com.gyee.runeconomy.model.auto.ProBasicPowerstation;
|
|
|
-import com.gyee.runeconomy.model.auto.ProBasicProject;
|
|
|
+import com.gyee.runeconomy.model.auto.*;
|
|
|
import com.gyee.runeconomy.service.bmk.BenchmarkingService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -38,7 +35,7 @@ public class BenchmarkingController {
|
|
|
@GetMapping(value = "/companys")
|
|
|
@ApiOperation(value = "公司列表", notes = "公司列表")
|
|
|
public R companys() {
|
|
|
- List<ProBasicCompany> resultList = benchmarkingService.companys();
|
|
|
+ List<ProBasicOrganizeTree> resultList = benchmarkingService.companys();
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
return R.data(ResultMsg.ok(resultList));
|
|
|
} else {
|
|
@@ -48,7 +45,7 @@ public class BenchmarkingController {
|
|
|
@GetMapping(value = "/companysByRg")
|
|
|
@ApiOperation(value = "根据区域查询公司列表", notes = "根据区域查询公司列表")
|
|
|
public R companysByRg(@RequestParam(value = "regionid", required = true) String regionid) {
|
|
|
- List<ProBasicCompany> resultList = benchmarkingService.companys().stream().filter(i->i.getRegionId().equals(regionid)).collect(Collectors.toList());
|
|
|
+ List<ProBasicOrganizeTree> resultList = benchmarkingService.companys().stream().filter(i->i.getParentCode().equals(regionid)).collect(Collectors.toList());
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
return R.data(ResultMsg.ok(resultList));
|
|
|
} else {
|
|
@@ -60,7 +57,7 @@ public class BenchmarkingController {
|
|
|
public R wpByCplist(@RequestParam(value = "companyids", required = true) String companyids,
|
|
|
@RequestParam(value = "type", required = false) String type) {
|
|
|
|
|
|
- List<ProBasicPowerstation> resultList = benchmarkingService.wpByCplist(companyids,type);
|
|
|
+ List<ProBasicOrganizeTree> resultList = benchmarkingService.wpByCplist(companyids,type);
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
return R.data(ResultMsg.ok(resultList));
|
|
|
} else {
|
|
@@ -71,7 +68,7 @@ public class BenchmarkingController {
|
|
|
@ApiOperation(value = "项目列表", notes = "项目列表")
|
|
|
public R pjByWplist(@RequestParam(value = "wpids", required = true) String wpids) {
|
|
|
|
|
|
- List<ProBasicProject> resultList = benchmarkingService.pjByWplist(wpids);
|
|
|
+ List<ProBasicOrganizeTree> resultList = benchmarkingService.pjByWplist(wpids);
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
return R.data(ResultMsg.ok(resultList));
|
|
|
} else {
|
|
@@ -83,7 +80,7 @@ public class BenchmarkingController {
|
|
|
@ApiOperation(value = "线路列表", notes = "线路列表")
|
|
|
public R lnByPjlist(@RequestParam(value = "pjids", required = true) String pjids) {
|
|
|
|
|
|
- List<ProBasicLine> resultList = benchmarkingService.lnByPjlist(pjids);
|
|
|
+ List<ProBasicOrganizeTree> resultList = benchmarkingService.lnByPjlist(pjids);
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
return R.data(ResultMsg.ok(resultList));
|
|
|
} else {
|