|  |  |  | 
|---|
|  |  |  | List<VoIcRechargeStatistics> list = seRechargeHistoryMapper.statisticsByIc(statisticsStartId, statisticsEndId) ; | 
|---|
|  |  |  | if(list != null && list.size() > 0){ | 
|---|
|  |  |  | for(VoIcRechargeStatistics vo : list){ | 
|---|
|  |  |  | StRechargeIcDay po = this.stRechargeIcDayMapper.selectByClientAndCardAndYearAndMonth(vo.clientId, vo.cardId, statisticsYear, statisticsMonth) ; | 
|---|
|  |  |  | List<StRechargeIcDay> listOfDay = this.stRechargeIcDayMapper.selectByClientAndCardAndYearAndMonth(vo.clientId, vo.cardId, statisticsYear, statisticsMonth) ; | 
|---|
|  |  |  | StRechargeIcDay po = null ; | 
|---|
|  |  |  | if(listOfDay != null && listOfDay.size() > 0){ | 
|---|
|  |  |  | //程序逻辑控制上,集合中只有一个对象 | 
|---|
|  |  |  | po = listOfDay.get(0) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(po == null){ | 
|---|
|  |  |  | po = new StRechargeIcDay() ; | 
|---|
|  |  |  | po.clientId = vo.clientId ; | 
|---|
|  |  |  | 
|---|
|  |  |  | List<VoIcRechargeStatistics> list = stRechargeIcDayMapper.statisticsByIc(statisticsYear, statisticsMonth) ; | 
|---|
|  |  |  | if(list != null && list.size() > 0){ | 
|---|
|  |  |  | for(VoIcRechargeStatistics vo : list){ | 
|---|
|  |  |  | StRechargeIcMonth po = this.stRechargeIcMonthMapper.selectByClientAndCardAndYear(vo.clientId, vo.cardId, statisticsYear) ; | 
|---|
|  |  |  | List<StRechargeIcMonth> listOfMonth = this.stRechargeIcMonthMapper.selectByClientAndCardAndYear(vo.clientId, vo.cardId, statisticsYear) ; | 
|---|
|  |  |  | StRechargeIcMonth po = null ; | 
|---|
|  |  |  | if(listOfMonth != null && listOfMonth.size() > 0){ | 
|---|
|  |  |  | //程序逻辑控制上,集合中只有一个对象 | 
|---|
|  |  |  | po = listOfMonth.get(0) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(po == null){ | 
|---|
|  |  |  | po = new StRechargeIcMonth() ; | 
|---|
|  |  |  | po.clientId = vo.clientId ; | 
|---|
|  |  |  | 
|---|
|  |  |  | List<VoIcRechargeStatistics> list = stRechargeIcMonthMapper.statisticsByIc(statisticsYear) ; | 
|---|
|  |  |  | if(list != null && list.size() > 0){ | 
|---|
|  |  |  | for(VoIcRechargeStatistics vo : list){ | 
|---|
|  |  |  | StRechargeIcYear po = this.stRechargeIcYearMapper.selectByClientAndCardAndYear(vo.clientId, vo.cardId, statisticsYear) ; | 
|---|
|  |  |  | List<StRechargeIcYear> listOfYear = this.stRechargeIcYearMapper.selectByClientAndCardAndYear(vo.clientId, vo.cardId, statisticsYear) ; | 
|---|
|  |  |  | StRechargeIcYear po = null ; | 
|---|
|  |  |  | if(listOfYear != null && listOfYear.size() > 0){ | 
|---|
|  |  |  | //程序逻辑控制上,集合中只有一个对象 | 
|---|
|  |  |  | po = listOfYear.get(0) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(po == null){ | 
|---|
|  |  |  | po = new StRechargeIcYear() ; | 
|---|
|  |  |  | po.clientId = vo.clientId ; | 
|---|