|  | @@ -114,7 +114,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |              mapValue.put("orderField","materialCode");
 |  |              mapValue.put("orderField","materialCode");
 | 
											
												
													
														|  |              mapValue.put("orderType","desc");
 |  |              mapValue.put("orderType","desc");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getAllSaleReport(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getAllSaleReport(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData5(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData5(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -239,7 +241,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |          if (con!=null&&!"null".equals(con)){
 |  |          if (con!=null&&!"null".equals(con)){
 | 
											
												
													
														|  |              mapValue.put("con","%"+con+"%");
 |  |              mapValue.put("con","%"+con+"%");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getSporadicSuppliesReport1(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getSporadicSuppliesReport1(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData4(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData4(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -285,7 +289,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |          if (userIds!=null){
 |  |          if (userIds!=null){
 | 
											
												
													
														|  |              mapValue.put("userIds",userIds);
 |  |              mapValue.put("userIds",userIds);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getSporadicSuppliesReport2(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getSporadicSuppliesReport2(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData4(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData4(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -337,7 +343,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |          if(con != null && !"null".equals(con)){
 |  |          if(con != null && !"null".equals(con)){
 | 
											
												
													
														|  |              mapValue.put("con","%" + con + "%");
 |  |              mapValue.put("con","%" + con + "%");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getLXInwardReport(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getLXInwardReport(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -630,7 +638,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |                                      String startTime,
 |  |                                      String startTime,
 | 
											
												
													
														|  |                                      String endTime){
 |  |                                      String endTime){
 | 
											
												
													
														|  |          DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
 |  |          DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getLoading(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getLoading(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -647,7 +657,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |                                      String startTime,
 |  |                                      String startTime,
 | 
											
												
													
														|  |                                      String endTime){
 |  |                                      String endTime){
 | 
											
												
													
														|  |          DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
 |  |          DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getLoaderResult(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getLoaderResult(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -663,7 +675,9 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |                                      String startTime,
 |  |                                      String startTime,
 | 
											
												
													
														|  |                                      String endTime){
 |  |                                      String endTime){
 | 
											
												
													
														|  |          DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
 |  |          DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
 | 
											
												
													
														|  | -        PageHelper.startPage(pageNum, pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(mapValue.get("isExcel")==null){
 | 
											
												
													
														|  | 
 |  | +            PageHelper.startPage(pageNum, pageSize);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          //分页数据
 |  |          //分页数据
 | 
											
												
													
														|  |          List<Map<String, Object>> report = statisticalReportService.getUnLoading(mapValue);
 |  |          List<Map<String, Object>> report = statisticalReportService.getUnLoading(mapValue);
 | 
											
												
													
														|  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 |  |          PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null, report);
 | 
											
										
											
												
													
														|  | @@ -804,6 +818,335 @@ public class StatisticalReportController extends BaseRESTfulController {
 | 
											
												
													
														|  |          return success(report);
 |  |          return success(report);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation(value="查询销售统计报表")
 | 
											
												
													
														|  | 
 |  | +    @ApiImplicitParams({
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "apiId(423)", value = "动态表头", required = false, dataType = "Integer"),
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
 | 
											
												
													
														|  | 
 |  | +    })
 | 
											
												
													
														|  | 
 |  | +    @PostMapping("/getSaleSteelSpellingReport")
 | 
											
												
													
														|  | 
 |  | +    public RESTfulResult getSaleSteelSpellingReport(@RequestBody(required=false) Map<String,Object> map
 | 
											
												
													
														|  | 
 |  | +    ){
 | 
											
												
													
														|  | 
 |  | +        String startTime = (String)map.get("startTime");
 | 
											
												
													
														|  | 
 |  | +        String endTime = (String) map.get("endTime");
 | 
											
												
													
														|  | 
 |  | +        //分页数据
 | 
											
												
													
														|  | 
 |  | +        List<Map<String, Object>> report = statisticalReportService.getSaleSteelSpellingReport(map);
 | 
											
												
													
														|  | 
 |  | +        //初始化Map的值
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map1=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map1.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map1.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map1.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map1.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map1.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map1.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map2=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map2.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map2.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map2.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map2.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map2.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map2.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map3=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map3.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map3.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map3.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map3.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map3.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map3.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map4=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map4.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map4.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map4.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map4.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map4.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map4.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map5=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map5.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map5.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map5.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map5.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map5.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map5.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map6=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map6.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map6.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map6.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map6.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map6.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map6.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        Map<String,Object> map7=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map7.put("pinZhuang",null);
 | 
											
												
													
														|  | 
 |  | +        map7.put("chongQinSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map7.put("chengDuSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map7.put("gongChengSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map7.put("chaungDongSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        map7.put("AllSpellingData",0);
 | 
											
												
													
														|  | 
 |  | +        //35个数据
 | 
											
												
													
														|  | 
 |  | +        List<Map<String,Object>> spellingData=new LinkedList<>();
 | 
											
												
													
														|  | 
 |  | +        //初始化list集合的值
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map1);
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map2);
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map3);
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map4);
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map5);
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map6);
 | 
											
												
													
														|  | 
 |  | +        spellingData.add(map7);
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(0).put("pinZhuang","一拼");
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(1).put("pinZhuang","二拼");
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(2).put("pinZhuang","三拼");
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(3).put("pinZhuang","四拼");
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(4).put("pinZhuang","五拼");
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(5).put("pinZhuang","六拼");
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(6).put("pinZhuang","合计");
 | 
											
												
													
														|  | 
 |  | +        for (Map<String, Object> stringObjectMap : report) {
 | 
											
												
													
														|  | 
 |  | +            int flag=0;
 | 
											
												
													
														|  | 
 |  | +            String areaName = (String) stringObjectMap.get("areaName");
 | 
											
												
													
														|  | 
 |  | +            //销售订单号
 | 
											
												
													
														|  | 
 |  | +            if (areaName==null){
 | 
											
												
													
														|  | 
 |  | +                continue;
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +            BigDecimal spellingNum =  DataChange.dataToBigDecimal(stringObjectMap.get("spellingNum"));
 | 
											
												
													
														|  | 
 |  | +            if (spellingNum.compareTo(BigDecimal.valueOf(1))==0){
 | 
											
												
													
														|  | 
 |  | +                if (areaName.equals("钢材重庆组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData = (Integer) spellingData.get(0).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (spellingData.get(0).get("chongQinSpellingData")!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("chongQinSpellingData",oneSpellingData+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("chongQinSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材成都组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData1 = (Integer) spellingData.get(0).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (spellingData.get(0).get("chengDuSpellingData")!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("chengDuSpellingData",oneSpellingData1+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("chengDuSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材工程组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData2 = (Integer) spellingData.get(0).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (spellingData.get(0).get("gongChengSpellingData")!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("gongChengSpellingData",oneSpellingData2+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("gongChengSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材南充组")||areaName.equals("钢材达州组")||areaName.equals("钢材万州组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData3 = (Integer) spellingData.get(0).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData3!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("chaungDongSpellingData",oneSpellingData3+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(0).put("chaungDongSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +                Integer oneSpellingData4 = (Integer) spellingData.get(0).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +                if (oneSpellingData4!=null){
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(0).put("AllSpellingData",oneSpellingData4+1);
 | 
											
												
													
														|  | 
 |  | +                }else {
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(0).put("AllSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }else if (spellingNum.compareTo(BigDecimal.valueOf(2))==0){
 | 
											
												
													
														|  | 
 |  | +                if (areaName.equals("钢材重庆组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData = (Integer) spellingData.get(1).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("chongQinSpellingData",oneSpellingData+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("chongQinSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材成都组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData1 = (Integer) spellingData.get(1).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData1!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("chengDuSpellingData",oneSpellingData1+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("chengDuSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材工程组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData2 = (Integer) spellingData.get(1).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData2!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("gongChengSpellingData",oneSpellingData2+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("gongChengSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材南充组")||areaName.equals("钢材达州组")||areaName.equals("钢材万州组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData3 = (Integer) spellingData.get(1).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData3!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("chaungDongSpellingData",oneSpellingData3+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(1).put("chaungDongSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +                Integer oneSpellingData4 = (Integer) spellingData.get(1).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +                if (oneSpellingData4!=null){
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(1).put("AllSpellingData",oneSpellingData4+1);
 | 
											
												
													
														|  | 
 |  | +                }else {
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(1).put("AllSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }else if (spellingNum.compareTo(BigDecimal.valueOf(3))==0){
 | 
											
												
													
														|  | 
 |  | +                if (areaName.equals("钢材重庆组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData = (Integer) spellingData.get(2).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("chongQinSpellingData",oneSpellingData+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("chongQinSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材成都组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData1 = (Integer) spellingData.get(2).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData1!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("chengDuSpellingData",oneSpellingData1+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("chengDuSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材工程组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData2 = (Integer) spellingData.get(2).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData2!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("gongChengSpellingData",oneSpellingData2+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("gongChengSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材南充组")||areaName.equals("钢材达州组")||areaName.equals("钢材万州组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData3 = (Integer) spellingData.get(2).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData3!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("chaungDongSpellingData",oneSpellingData3+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(2).put("chaungDongSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +                Integer oneSpellingData4 = (Integer) spellingData.get(2).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +                if (oneSpellingData4!=null){
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(2).put("AllSpellingData",oneSpellingData4+1);
 | 
											
												
													
														|  | 
 |  | +                }else {
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(2).put("AllSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }else if (spellingNum.compareTo(BigDecimal.valueOf(4))==0){
 | 
											
												
													
														|  | 
 |  | +                if (areaName.equals("钢材重庆组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData = (Integer) spellingData.get(3).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("chongQinSpellingData",oneSpellingData+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("chongQinSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材成都组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData1 = (Integer) spellingData.get(3).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData1!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("chengDuSpellingData",oneSpellingData1+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("chengDuSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材工程组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData2 = (Integer) spellingData.get(3).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData2!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("gongChengSpellingData",oneSpellingData2+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("gongChengSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材南充组")||areaName.equals("钢材达州组")||areaName.equals("钢材万州组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData3 = (Integer) spellingData.get(3).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData3!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("chaungDongSpellingData",oneSpellingData3+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(3).put("chaungDongSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +                Integer oneSpellingData4 = (Integer) spellingData.get(3).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +                if (oneSpellingData4!=null){
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(3).put("AllSpellingData",oneSpellingData4+1);
 | 
											
												
													
														|  | 
 |  | +                }else {
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(3).put("AllSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }else if (spellingNum.compareTo(BigDecimal.valueOf(5))==0){
 | 
											
												
													
														|  | 
 |  | +                if (areaName.equals("钢材重庆组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData = (Integer) spellingData.get(4).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("chongQinSpellingData",oneSpellingData+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("chongQinSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材成都组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData1 = (Integer) spellingData.get(4).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData1!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("chengDuSpellingData",oneSpellingData1+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("chengDuSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材工程组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData2 = (Integer) spellingData.get(4).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData2!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("gongChengSpellingData",oneSpellingData2+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("gongChengSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材南充组")||areaName.equals("钢材达州组")||areaName.equals("钢材万州组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData3 = (Integer) spellingData.get(4).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData3!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("chaungDongSpellingData",oneSpellingData3+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(4).put("chaungDongSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +                Integer oneSpellingData4 = (Integer) spellingData.get(4).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +                if (oneSpellingData4!=null){
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(4).put("AllSpellingData",oneSpellingData4+1);
 | 
											
												
													
														|  | 
 |  | +                }else {
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(4).put("AllSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }else if (spellingNum.compareTo(BigDecimal.valueOf(6))==0){
 | 
											
												
													
														|  | 
 |  | +                if (areaName.equals("钢材重庆组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData = (Integer) spellingData.get(5).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("chongQinSpellingData",oneSpellingData+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("chongQinSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材成都组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData1 = (Integer) spellingData.get(5).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData1!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("chengDuSpellingData",oneSpellingData1+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("chengDuSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材工程组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData2 = (Integer) spellingData.get(5).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData2!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("gongChengSpellingData",oneSpellingData2+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("gongChengSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }else if (areaName.equals("钢材南充组")||areaName.equals("钢材达州组")||areaName.equals("钢材万州组")){
 | 
											
												
													
														|  | 
 |  | +                    Integer oneSpellingData3 = (Integer) spellingData.get(5).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +                    if (oneSpellingData3!=null){
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("chaungDongSpellingData",oneSpellingData3+1);
 | 
											
												
													
														|  | 
 |  | +                    }else {
 | 
											
												
													
														|  | 
 |  | +                        spellingData.get(5).put("chaungDongSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +                Integer oneSpellingData4 = (Integer) spellingData.get(5).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +                if (oneSpellingData4!=null){
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(5).put("AllSpellingData",oneSpellingData4+1);
 | 
											
												
													
														|  | 
 |  | +                }else {
 | 
											
												
													
														|  | 
 |  | +                    spellingData.get(5).put("AllSpellingData",1);
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        //每一列的合计
 | 
											
												
													
														|  | 
 |  | +        int oneData=0;
 | 
											
												
													
														|  | 
 |  | +        int twoData=0;
 | 
											
												
													
														|  | 
 |  | +        int threeData=0;
 | 
											
												
													
														|  | 
 |  | +        int fourData=0;
 | 
											
												
													
														|  | 
 |  | +        int fiveData=0;
 | 
											
												
													
														|  | 
 |  | +        for (int i = 0; i < spellingData.size(); i++) {
 | 
											
												
													
														|  | 
 |  | +            oneData+=(int) spellingData.get(i).get("chongQinSpellingData");
 | 
											
												
													
														|  | 
 |  | +            twoData+=(int) spellingData.get(i).get("chengDuSpellingData");
 | 
											
												
													
														|  | 
 |  | +            threeData+=(int) spellingData.get(i).get("gongChengSpellingData");
 | 
											
												
													
														|  | 
 |  | +            fourData+=(int) spellingData.get(i).get("chaungDongSpellingData");
 | 
											
												
													
														|  | 
 |  | +            fiveData+=(int) spellingData.get(i).get("AllSpellingData");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(6).put("chongQinSpellingData",oneData);
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(6).put("chengDuSpellingData",twoData);
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(6).put("gongChengSpellingData",threeData);
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(6).put("chaungDongSpellingData",fourData);
 | 
											
												
													
														|  | 
 |  | +        spellingData.get(6).put("AllSpellingData",fiveData);
 | 
											
												
													
														|  | 
 |  | +        return success(spellingData);
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @ApiOperation(value="查询销售统计报表")
 |  |      @ApiOperation(value="查询销售统计报表")
 | 
											
												
													
														|  |      @ApiImplicitParams({
 |  |      @ApiImplicitParams({
 | 
											
												
													
														|  |              @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
 |  |              @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
 |