| | |
| | | |
| | | |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.report.QueryStatisticsDto; |
| | | import com.java110.intf.report.IReportFeeStatisticsInnerServiceSMO; |
| | | import com.java110.report.dao.IReportFeeStatisticsServiceDao; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | return info; |
| | | } |
| | | |
| | | /** |
| | | * 查询当月应收 |
| | | * |
| | | * @param queryStatisticsDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public double getCurReceivableFee(@RequestBody QueryStatisticsDto queryStatisticsDto) { |
| | | double info = reportFeeStatisticsServiceDaoImpl.getCurReceivableFee(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | |
| | | @Override |
| | | public double getHisReceivedFee(@RequestBody QueryStatisticsDto queryFeeStatisticsDto) { |
| | | double info = reportFeeStatisticsServiceDaoImpl.getHisReceivedFee(BeanConvertUtil.beanCovertMap(queryFeeStatisticsDto)); |
| | |
| | | |
| | | /** |
| | | * 查询欠费户数 |
| | | * |
| | | * @param queryStatisticsDto |
| | | * @return |
| | | */ |
| | |
| | | int info = reportFeeStatisticsServiceDaoImpl.getOweRoomCount(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | |
| | | /** |
| | | * 查询收费房屋数 |
| | | * |
| | | * @param queryStatisticsDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public long getFeeRoomCount(@RequestBody QueryStatisticsDto queryStatisticsDto) { |
| | | int info = reportFeeStatisticsServiceDaoImpl.getFeeRoomCount(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | |
| | | /** |
| | | * 楼栋收费率信息统计 |
| | | * |
| | | * @param queryStatisticsDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map> getFloorFeeSummary(@RequestBody QueryStatisticsDto queryStatisticsDto) { |
| | | |
| | | List<Map> info = reportFeeStatisticsServiceDaoImpl.getFloorFeeSummary(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | |
| | | /** |
| | | * 费用项收费率信息统计 |
| | | * |
| | | * @param queryStatisticsDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map> getConfigFeeSummary(@RequestBody QueryStatisticsDto queryStatisticsDto) { |
| | | |
| | | List<Map> info = reportFeeStatisticsServiceDaoImpl.getConfigFeeSummary(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | |
| | | @Override |
| | | public int getObjFeeSummaryCount(@RequestBody QueryStatisticsDto queryStatisticsDto) { |
| | | int info = reportFeeStatisticsServiceDaoImpl.getObjFeeSummaryCount(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getObjFeeSummary(@RequestBody QueryStatisticsDto queryStatisticsDto) { |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = queryStatisticsDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | queryStatisticsDto.setPage((page - 1) * queryStatisticsDto.getRow()); |
| | | } |
| | | |
| | | List<Map> info = reportFeeStatisticsServiceDaoImpl.getObjFeeSummary(BeanConvertUtil.beanCovertMap(queryStatisticsDto)); |
| | | return info; |
| | | } |
| | | } |