|
|
@ -135,7 +135,7 @@ public class DailyReportImp implements DailyReport {
|
|
|
|
for (JSONObject clientAmount : clientsAmount) {
|
|
|
|
for (JSONObject clientAmount : clientsAmount) {
|
|
|
|
if (clientAmount.getString("bd_group").equals(kpi.getString("bd_group"))) {
|
|
|
|
if (clientAmount.getString("bd_group").equals(kpi.getString("bd_group"))) {
|
|
|
|
// sys_clients中查询出此bd创建并属于此bd的商户,并且时间是昨天和本月
|
|
|
|
// sys_clients中查询出此bd创建并属于此bd的商户,并且时间是昨天和本月
|
|
|
|
JSONObject countByBd = clientMapper.findCountByBd(clientAmount.getString("bd_group"), DateUtils.truncate(dt, Calendar.DATE), DateUtils.truncate(DateUtils.addDays(dt, -1), Calendar.DATE), DateUtils.truncate(dt, Calendar.MONTH));
|
|
|
|
JSONObject countByBd = clientMapper.findCountByBd(clientAmount.getString("bd_group"), DateUtils.truncate(DateUtils.addDays(dt, 1), Calendar.DATE), DateUtils.truncate(dt, Calendar.DATE), DateUtils.truncate(dt, Calendar.MONTH));
|
|
|
|
if (countByBd.getInteger("month_count") == null){
|
|
|
|
if (countByBd.getInteger("month_count") == null){
|
|
|
|
kpi.put("clients_month", 0);
|
|
|
|
kpi.put("clients_month", 0);
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|