| | |
| | | double qntq = mapper.selectAccumulate(lastYearMonthStart, lastYearMonthEnd, name); // 去年同期 |
| | | String ytq = 0 == qntq ? "--" : CalculateUtils.round2((sy - qntq) / qntq * 100) + "%"; // 月同期 |
| | | |
| | | String ytb = ""; // 月同比 |
| | | String ytb = 0 == qntq ? "--" : CalculateUtils.round2((sy - qntq) / qntq * 100) + "%"; // 月同比 |
| | | |
| | | double lj = mapper.selectAccumulate(yearStart, intMonthEnd, name); // 累计 |
| | | |
| | |
| | | |
| | | list.add(new MonthExcel("" + sy, yhb, ytq, ytb, "" + lj, ljtb, qyn, ys, "", "", "")); |
| | | } |
| | | //saveResult("month", end, list); |
| | | saveResult("month", monthEnd, list); |
| | | |
| | | } catch (Exception ex) { |
| | | logger.error(ex.getMessage(), ex); |
| | | } |