public List<EventDataDictValue> queryByAssetId(String typeid) { Sql sql = Sqls.create("select name,value,orderby,type_id from event_data_dict_value where type_id=@typeid"); sql.params().set("typeid", typeid); sql.setCallback(Sqls.callback.entities()); sql.setEntity(getEntity()); dao().execute(sql); List<EventDataDictValue> listmap=sql.getList(EventDataDictValue.class); return listmap; }
Nutz自定义sql
最新推荐文章于 2021-02-21 18:06:31 发布