| | |
| | | if (companyTarget == null) { |
| | | return R.error(); |
| | | } |
| | | map.put("yearTarget", formatter.format(Double.parseDouble(companyTarget.getTarget())));//全年交易目标 |
| | | double whole = Double.parseDouble(companyTarget.getTarget()); |
| | | map.put("yearTarget", formatter.format(whole));//全年交易目标 |
| | | |
| | | //获取全年交易成功金额 |
| | | Double successMoney = orderService.selectMoneyByYearAndStatus(year, 1); |
| | | //获取全年未交易成功金额 |
| | | Double progressMoney = orderService.selectMoneyByYearAndStatus(year, 0); |
| | | // double v = whole - orderService.selectMoneyByYearAndStatus(year, 0); |
| | | double v = whole - orderService.selectMoneyByYearAndStatus(year, 1); |
| | | Double progressMoney = v > 0? v : 0D; |
| | | //获取全年交易失败金额 |
| | | Double failedMoney = orderService.selectMoneyByYearAndStatus(year, 2); |
| | | //全年完成率 |
| | |
| | | //获取全年交易成功金额 |
| | | Double successMoney = orderService.selectMoneyByUserAndYearAndStatus(getUserId(), year, 1); |
| | | //获取全年未交易成功金额 |
| | | Double progressMoney = orderService.selectMoneyByUserAndYearAndStatus(getUserId(), year, 0); |
| | | double v = yearTarget - orderService.selectMoneyByUserAndYearAndStatus(getUserId(), year, 1); |
| | | Double progressMoney = v > 0? v : 0D; |
| | | Double progressMoney2 = orderService.selectMoneyByUserAndYearAndStatus(getUserId(), year, 0); |
| | | //获取全年交易失败金额 |
| | | Double failedMoney = orderService.selectMoneyByUserAndYearAndStatus(getUserId(), year, 2); |
| | | //全年完成率 |
| | |
| | | |
| | | map.put("successMoney", formatter.format(successMoney));//全年交易成功金额 |
| | | map.put("progressMoney", formatter.format(progressMoney));//全年未交易成功金额 |
| | | map.put("progressMoney2", formatter.format(progressMoney2));//跟踪项目金额 |
| | | map.put("yearTransactionRate", String.format("%.2f", yearTransactionRate));//全年交易率 |
| | | |
| | | //获取全年跟踪数量 |