|
|
@ -227,19 +227,22 @@ public class DataCenterRest { |
|
|
|
list.add(nodde); |
|
|
|
} |
|
|
|
} |
|
|
|
if(list.stream().anyMatch(s->s.equals("在途"))){ |
|
|
|
projectDetailsVo.setCreditStage("在途"); |
|
|
|
}else if(list.stream().anyMatch(s->s.equals("在建"))){ |
|
|
|
projectDetailsVo.setCreditStage("在建"); |
|
|
|
}else { |
|
|
|
projectDetailsVo.setCreditStage("竣工"); |
|
|
|
if(list.size()!=0){ |
|
|
|
if(list.stream().anyMatch(s->s.equals("在途"))){ |
|
|
|
projectDetailsVo.setCreditStage("在途"); |
|
|
|
}else if(list.stream().anyMatch(s->s.equals("在建"))){ |
|
|
|
projectDetailsVo.setCreditStage("在建"); |
|
|
|
}else if(list.stream().anyMatch(s->s.equals("竣工"))) { |
|
|
|
projectDetailsVo.setCreditStage("竣工"); |
|
|
|
}else if(list.stream().anyMatch(s->s.equals("结清"))){ |
|
|
|
projectDetailsVo.setCreditStage("结清"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return rb.success().setData(projectDetailsVos); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//@Todo 山海光伏大屏数据接口
|
|
|
|
@ApiOperation("获取仓库明细") |
|
|
|
@PostMapping("/getWarehouseAddressDetail/{shSid}") |
|
|
|
public ResultBean getWarehouseAddressDetail(@PathVariable("shSid") String shSid){ |
|
|
@ -444,6 +447,7 @@ public class DataCenterRest { |
|
|
|
int dd=0; |
|
|
|
int zj=0; |
|
|
|
int jg=0; |
|
|
|
int jq=0; |
|
|
|
for (ProjectInfo infoList : projectInfoList) { |
|
|
|
if(StringUtils.isNotBlank(infoList.getNodeValue())){ |
|
|
|
if (infoList.getNodeValue().equals("在途")){ |
|
|
@ -455,6 +459,9 @@ public class DataCenterRest { |
|
|
|
if (infoList.getNodeValue().equals("竣工")){ |
|
|
|
jg++; |
|
|
|
} |
|
|
|
if (infoList.getNodeValue().equals("结清")){ |
|
|
|
jq++; |
|
|
|
} |
|
|
|
} |
|
|
|
// int a=crmMapper.getPhaseByProject(projectInfo.getSid(),infoList.getNodeValue());
|
|
|
|
} |
|
|
@ -472,6 +479,9 @@ public class DataCenterRest { |
|
|
|
if (shPhaseRecordVo.getNodeValue().equals("竣工")){ |
|
|
|
vo.setJg(vo.getDd()+1); |
|
|
|
} |
|
|
|
if (shPhaseRecordVo.getNodeValue().equals("结清")){ |
|
|
|
vo.setJq(vo.getDd()+1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(c.size()!=0){ |
|
|
@ -480,6 +490,7 @@ public class DataCenterRest { |
|
|
|
warehouseInfoVoSheng1.setJg(vo.getJg()); |
|
|
|
warehouseInfoVoSheng1.setDd(vo.getDd()); |
|
|
|
warehouseInfoVoSheng1.setZj(vo.getZj()); |
|
|
|
warehouseInfoVoSheng1.setJq(vo.getJq()); |
|
|
|
warehouseInfoVoSheng1.setValue(warehouseInfoVoSheng1.getDd()+warehouseInfoVoSheng1.getJg()+warehouseInfoVoSheng1.getZj()); |
|
|
|
warehouseInfoVoSheng1s.add(warehouseInfoVoSheng1); |
|
|
|
} |
|
|
@ -487,6 +498,7 @@ public class DataCenterRest { |
|
|
|
map.put("dd",dd); |
|
|
|
map.put("zj",zj); |
|
|
|
map.put("jg",jg); |
|
|
|
map.put("jq",jq); |
|
|
|
map.put("zs",projectInfoList.size()); |
|
|
|
map.put("map",warehouseInfoVoSheng1s); |
|
|
|
return rb.success().setData(map); |
|
|
@ -514,18 +526,26 @@ public class DataCenterRest { |
|
|
|
ResultBean rb=new ResultBean(); |
|
|
|
Map<String,Object> map=new HashMap<>(); |
|
|
|
IndexVo vo=ShRequester.getscreen$enterprise$index(query); |
|
|
|
IndexVo vo1=ShRequester.screen$screenIndex(query); |
|
|
|
// map.put("enterprise_month",vo.getEnterprise_month());
|
|
|
|
// map.put("enterprise_year",vo.getEnterprise_year());
|
|
|
|
map.put("enterprise_month",new BigDecimal(vo.getEnterprise_month()).setScale(0,RoundingMode.HALF_UP)); |
|
|
|
map.put("enterprise_year",new BigDecimal(vo.getEnterprise_year()).setScale(0, RoundingMode.HALF_UP)); |
|
|
|
map.put("person_month",new BigDecimal(vo1.getPerson_month()).setScale(0,RoundingMode.HALF_UP)); |
|
|
|
map.put("person_year",new BigDecimal(vo1.getPerson_year()).setScale(0, RoundingMode.HALF_UP)); |
|
|
|
List<String> name =new ArrayList<>(); |
|
|
|
List<BigDecimal> enterprise_power =new ArrayList<>(); |
|
|
|
List<BigDecimal> person_power =new ArrayList<>(); |
|
|
|
for (NearVo nearVo : vo.getNear_day()) { |
|
|
|
name.add(nearVo.getName()); |
|
|
|
enterprise_power.add(nearVo.getEnterprise_power()); |
|
|
|
} |
|
|
|
for (NearVo nearVo : vo1.getNear_day()) { |
|
|
|
person_power.add(nearVo.getPerson_power()); |
|
|
|
} |
|
|
|
map.put("name",name); |
|
|
|
map.put("enterprise_power",enterprise_power); |
|
|
|
map.put("person_power",person_power); |
|
|
|
return rb.success().setData(map); |
|
|
|
} |
|
|
|
@ApiOperation("项目规格") |
|
|
@ -721,7 +741,20 @@ public class DataCenterRest { |
|
|
|
LoginVo vo=ShRequester.loginTZ(); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("监控根据") |
|
|
|
@GetMapping("/getMonitorToken") |
|
|
|
public ResultBean token( ){ |
|
|
|
ResultBean rb=new ResultBean(); |
|
|
|
BaseResponse<String> vos=ShRequester.monitor$get_token(); |
|
|
|
return rb.success().setData(vos.getData()); |
|
|
|
} |
|
|
|
@ApiOperation("监控根据") |
|
|
|
@GetMapping("/getMonitorInfo") |
|
|
|
public ResultBean getMonitorInfo(@RequestParam("orderSid") String orderSid){ |
|
|
|
ResultBean rb=new ResultBean(); |
|
|
|
BaseResponse<BaseResponseListObj<MonitorGetInfo>> vos=ShRequester.monitor$get_info(orderSid); |
|
|
|
return rb.success().setData(vos.getData().getList()); |
|
|
|
} |
|
|
|
@ApiOperation("dingshi") |
|
|
|
@GetMapping("/rr") |
|
|
|
@Scheduled(cron = "1 0 0 * * ? ") |
|
|
|