sql,多了一个where 怎么办?
Cnd cnd = Cnd.NEW();
and(cnd,"a.year","=",yearString);
and(cnd,"a.allotId","=",allotId);
and(cnd,"b.PARENT_CODE","=",region);//TODO:前一个region是街道id,后一个是用户所属区id,要改 对象region=字典表街道id parentid=user.regionid
// List<DfjgProjectDO> list = dao.query(DfjgProjectDO.class,cnd,pager);
Sql sql = Sqls.create("select a.* from DFJG_PROJECT a,dc_region b where a.BSHA0008 = b.id $cnd");
sql.setCallback(Sqls.callback.entities());
sql.setEntity(dao.getEntity(DfjgProjectDO.class));
sql.setVar("cnd",cnd);
dao.execute(sql);