public static void main(String[] args) {
NutIoc ioc = new NutIoc(new JsonLoader("com/test/datasource.json"));
Dao dao = ioc.get(Dao.class);
Sql sql = Sqls.create("select sum(w_money) as w_money from ad_develop_sett where w_state =1");
sql.setCallback(Sqls.callback.entities());
sql.setEntity(dao.getEntity(Settlement.class));
dao.execute(sql);
Settlement object = sql.getObject(Settlement.class);
System.out.println(object);
}
这样object 不是null
Sql sql = Sqls.create("select w_money from ad_develop_sett where w_state =1");
这样写sql object确是null
但是这两条sql查的记录都是空的
为啥返回结果不一样呢