Search in sources :

Example 1 with ReportEntityQuery

use of com.tony.billing.entity.query.ReportEntityQuery in project BillingDubbo by TonyJiangWJ.

the class CostReportServiceImpl method getReportInfo.

private ReportEntity getReportInfo(String datePrefix, Long userId) {
    ReportEntityQuery query = new ReportEntityQuery();
    query.setDatePrefix(datePrefix);
    query.setUserId(userId);
    RawReportEntity reportEntity = costReportMapper.getReportTypeAmountByCondition(query);
    if (reportEntity != null) {
        return new ReportEntity(datePrefix, reportEntity);
    } else {
        return null;
    }
}
Also used : ReportEntityQuery(com.tony.billing.entity.query.ReportEntityQuery) RawReportEntity(com.tony.billing.entity.RawReportEntity) ReportEntity(com.tony.billing.entity.ReportEntity) RawReportEntity(com.tony.billing.entity.RawReportEntity)

Aggregations

RawReportEntity (com.tony.billing.entity.RawReportEntity)1 ReportEntity (com.tony.billing.entity.ReportEntity)1 ReportEntityQuery (com.tony.billing.entity.query.ReportEntityQuery)1