最近接手了一个项目。。现在我这里需新增加个接口关联查询返回数据。。按照它系统的接口规范写好了模板。。但是现在查不出数据,报空指针异常
List<ReportPayment> list = ReportPayment.dao.find(sql);
public class ReportPayment extends BaseReportPayment<ReportPayment> { public static final ReportPayment dao = new ReportPayment(); }
List<ReportPayment> list = ReportPayment.dao.find(sql); // ReportPayment.dao.findById() // List<Record> list = Db.find(sql, startTime, endTime);
public class _MappingKit { public static void mapping(ActiveRecordPlugin arp) { arp.addMapping("report_customer", "statDate", ReportCustomer.class); arp.addMapping("report_customer_stat", "statDate", ReportCustomerStat.class); arp.addMapping("report_device", "statDate", ReportDevice.class); arp.addMapping("report_device_bak", "statDate", ReportDeviceBak.class); arp.addMapping("report_payment", "statDate", ReportPayment.class); arp.addMapping("report_proprietor", "statDate", ReportProprietor.class); arp.addMapping("report_stat_center", "statDate", ReportStatCenter.class); } }
项目:JFinal