| | |
| | | } |
| | | |
| | | @Override |
| | | public List<OrderStatusCount> signCounts2New(OrderStatusCount orderStatusCount) { |
| | | List<OrderStatusCount> records = this.signCountMapper.signCount2New(orderStatusCount); |
| | | List<OrderStatusCount> recordsAll = this.signCountMapper.signCountNewTotal(orderStatusCount); |
| | | for (int i=0;i<records.size();i++) { |
| | | for (OrderStatusCount statusCountx: recordsAll) { |
| | | if(records.get(i).getCarName().equals(statusCountx.getCarName())){ |
| | | records.get(i).setSendMonth(statusCountx.getProportion()); |
| | | break; |
| | | } |
| | | } |
| | | //"oneBatch":"01段","twoBatch":"0","threeBatch":"0","fourBatch":"0","fiveBatch":"0" |
| | | if("0".equals(records.get(i).getOneBatch())){ |
| | | records.get(i).setOneBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getTwoBatch())){ |
| | | records.get(i).setTwoBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getThreeBatch())){ |
| | | records.get(i).setThreeBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getFourBatch())){ |
| | | records.get(i).setFourBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getFiveBatch())){ |
| | | records.get(i).setFiveBatch(null); |
| | | } |
| | | } |
| | | return records; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<OrderStatusCount> signCountsNew(OrderStatusCount orderStatusCount, QueryRequest queryRequest) { |
| | | Page<OrderStatusCount> page = new Page<>(); |
| | | if (org.apache.commons.lang3.StringUtils.isNotBlank(queryRequest.getPageSize() + "") && (queryRequest.getPageSize() != 0)) { |
| | |
| | | page.setCurrent(0); |
| | | page.setSize(-1); |
| | | } |
| | | |
| | | IPage<OrderStatusCount> orderStatusCountIPage = this.signCountMapper.signCountNew(orderStatusCount, page); |
| | | List<OrderStatusCount> recordsAll = this.signCountMapper.signCountNewTotal(orderStatusCount); |
| | | List<OrderStatusCount> records = orderStatusCountIPage.getRecords(); |
| | |
| | | break; |
| | | } |
| | | } |
| | | //"oneBatch":"01段","twoBatch":"0","threeBatch":"0","fourBatch":"0","fiveBatch":"0" |
| | | if("0".equals(records.get(i).getOneBatch())){ |
| | | records.get(i).setOneBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getTwoBatch())){ |
| | | records.get(i).setTwoBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getThreeBatch())){ |
| | | records.get(i).setThreeBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getFourBatch())){ |
| | | records.get(i).setFourBatch(null); |
| | | } |
| | | if("0".equals(records.get(i).getFiveBatch())){ |
| | | records.get(i).setFiveBatch(null); |
| | | } |
| | | } |
| | | // List<OrderStatusCount> recordsLast = new ArrayList<>(); |
| | | orderStatusCountIPage.setRecords(records); |