|  |  |  | 
|---|
|  |  |  | rsVo.pageCurr = qo.pageCurr; | 
|---|
|  |  |  | rsVo.calculateAndSet(itemTotal, params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<VoStClientIdAmountYearRecord> clientIds = stClientAmountDayDao.selectClientIds4DayStatistics(params); | 
|---|
|  |  |  | String clientIdsJson = JSON.toJSONString(clientIds) ; | 
|---|
|  |  |  | params.put("clientIdsJson", clientIdsJson); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | rsVo.obj = stClientAmountDayDao.selectDayStatistics(params); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return rsVo ; | 
|---|
|  |  |  | 
|---|
|  |  |  | rsVo.pageCurr = qo.pageCurr; | 
|---|
|  |  |  | rsVo.calculateAndSet(itemTotal, params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<VoStClientIdAmountYearRecord> clientIds = stClientAmountMonthDao.selectClientIds4MonthStatistics(params); | 
|---|
|  |  |  | String clientIdsJson = JSON.toJSONString(clientIds) ; | 
|---|
|  |  |  | params.put("clientIdsJson", clientIdsJson); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | rsVo.obj = stClientAmountMonthDao.selectMonthStatistics(params); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return rsVo ; | 
|---|
|  |  |  | 
|---|
|  |  |  | // 生成查询参数 | 
|---|
|  |  |  | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo) ; | 
|---|
|  |  |  | // 获取符合条件的记录数 | 
|---|
|  |  |  | Long itemTotal = 0L ; | 
|---|
|  |  |  | String clientIdsJson = null ; | 
|---|
|  |  |  | /* 2025-07-14 采用农户总数 | 
|---|
|  |  |  | if(oneYear){ | 
|---|
|  |  |  | itemTotal = stClientAmountYearDao.selectCountYearStatistics4OneYear(params) ; | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | itemTotal = stClientAmountYearDao.selectCountYearStatistics(params) ; | 
|---|
|  |  |  | }*/ | 
|---|
|  |  |  | itemTotal = stClientAmountYearDao.selectCountYearStatistics(params) ; | 
|---|
|  |  |  | Long itemTotal = stClientAmountYearDao.selectCountYearStatistics(params) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(itemTotal != null && itemTotal > 0) { | 
|---|
|  |  |  | rsQrVo.pageSize = qo.pageSize; | 
|---|
|  |  |  | 
|---|
|  |  |  | rsQrVo.calculateAndSet(itemTotal, params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<VoStClientIdAmountYearRecord> clientIds = stClientAmountYearDao.selectClientIds4YearStatistics(params); | 
|---|
|  |  |  | clientIdsJson = JSON.toJSONString(clientIds) ; | 
|---|
|  |  |  | String clientIdsJson = JSON.toJSONString(clientIds) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<VoStClientAmountYearRecords> group = new ArrayList<>(); | 
|---|
|  |  |  | int count = 1 ; | 
|---|
|  |  |  | 
|---|
|  |  |  | params.put("year", year); | 
|---|
|  |  |  | params.put("clientIdsJson", clientIdsJson); | 
|---|
|  |  |  | List<VoStClientAmountYearRecord> list = stClientAmountYearDao.selectYearStatistics(params); | 
|---|
|  |  |  | /* 2025-07-14 | 
|---|
|  |  |  | if(oneYear){ | 
|---|
|  |  |  | list = stClientAmountYearDao.selectYearStatistics4OneYear(params); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | if(clientIdsJson != null){ | 
|---|
|  |  |  | params.put("clientIdsJson", clientIdsJson); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | list = stClientAmountYearDao.selectYearStatistics(params); | 
|---|
|  |  |  | }*/ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(group.isEmpty()){ | 
|---|
|  |  |  | this.completion(group, list); | 
|---|
|  |  |  | } | 
|---|