xuefei
2020-12-13 59380c11771d47459b8db5425bc21293823ada74
platform-modules/platform-zhyl/src/main/java/cn/cetc54/platform/zhyl/api/FwjgController.java
@@ -45,19 +45,35 @@
    @RequestMapping(value = "/getCountByAreaId", method = RequestMethod.GET)
    @ApiOperation(value = "根据区域id获取区域下所有机构和人员数量以及订单总数")
    public Result<Object> getCountByAreaId(String areaId){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){
            //如果是全市 areaId设置未空
            areaId = null;
        }
        QueryWrapper<OrgFuwu> wrapper = new QueryWrapper<>();
        wrapper.eq("area_id",areaId);
        if (StrUtil.isNotEmpty(areaId)){
            wrapper.eq("area_id",areaId);
        }
        int orgFuwuCount = iOrgFuwuService.count(wrapper);
        QueryWrapper<FuwuPerson> wrapper1 = new QueryWrapper<>();
        wrapper1.eq("area_id",areaId);
        if (StrUtil.isNotEmpty(areaId)){
            wrapper1.eq("area_id",areaId);
        }
        int fuwuPersonCount = iFuwuPersonService.count(wrapper1);
        QueryWrapper<Order> wrapper2 = new QueryWrapper<>();
        wrapper2.eq("area_id",areaId);
        if (StrUtil.isNotEmpty(areaId)){
            wrapper2.eq("area_id",areaId);
        }
        int orderCount = iOrderService.count(wrapper2);
        QueryWrapper<Order> wrapper3 = new QueryWrapper<>();
        wrapper2.eq("area_id",areaId);
        wrapper2.eq("state",0);
        if (StrUtil.isNotEmpty(areaId)){
            wrapper3.eq("area_id",areaId);
        }
        wrapper3.eq("state",0);
        int orderCount2 = iOrderService.count(wrapper3);
        FwjgCount fwjgCount=new FwjgCount();
        fwjgCount.setFwjgCount(orgFuwuCount);
        fwjgCount.setFwPersonCount(fuwuPersonCount);
@@ -69,6 +85,10 @@
    @RequestMapping(value = "/getFwnlByAreaId", method = RequestMethod.GET)
    @ApiOperation(value = "根据区域id获取区域下所有实际服务以及服务订单数")
    public Result<Object> getFwnlByAreaId(String areaId){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){
            //如果是全市 areaId设置未空
            areaId = null;
        }
        QueryWrapper<FuwuDetails> wrapper = new QueryWrapper<>();
        wrapper.isNull("pid");
        List<FuwuDetails> list = iFuwuDetailsService.list(wrapper);
@@ -98,8 +118,14 @@
    @RequestMapping(value = "/getFwjgOrderByOrderNumber", method = RequestMethod.GET)
    @ApiOperation(value = "根据区域id和订单量查询服务机构排名情况")
    public Result<Object> getFwjgOrderByOrderNumber(String areaId){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){
            //如果是全市 areaId设置未空
            areaId = null;
        }
        QueryWrapper<OrgFuwu> wrapper = new QueryWrapper<>();
        wrapper.eq("area_id",areaId);
        if (StrUtil.isNotEmpty(areaId)){
            wrapper.eq("area_id",areaId);
        }
        List<OrgFuwu> list = iOrgFuwuService.list(wrapper);
        for (OrgFuwu orgFuwu : list) {
            QueryWrapper<FuwuDetails> wrapper1 = new QueryWrapper<>();
@@ -130,7 +156,7 @@
    @RequestMapping(value = "/getFuwuDetailsOrderByOrderNumber", method = RequestMethod.GET)
    @ApiOperation(value = "根据区域id和订单量查询实际服务排名情况")
    public Result<Object> getFuwuDetailsOrderByOrderNumber(String areaId){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("0")){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){
            //如果是全市 areaId设置未空
            areaId = null;
        }
@@ -155,7 +181,7 @@
    @RequestMapping(value = "/getOrder", method = RequestMethod.GET)
    @ApiOperation(value = "执行中订单")
    public Result<Object> getOrder(String areaId){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("0")){
        if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){
            //如果是全市 areaId设置未空
            areaId = null;
        }