| | |
| | | /// <summary> |
| | | /// 查询元数据 |
| | | /// </summary> |
| | | private static List<SysMeta> selectMetas(string dircode) |
| | | public static List<SysMeta> selectMetas(string dircode) |
| | | { |
| | | string sql = string.Format("select * from lf.sys_meta where dircode like '{0}%'", dircode); |
| | | |
| | |
| | | /// <summary> |
| | | /// 查询元数据 |
| | | /// </summary> |
| | | private static List<SysMeta> selectMetas(List<int> ids) |
| | | public static List<SysMeta> selectMetas(List<int> ids, string types = "") |
| | | { |
| | | string sql = string.Format("select * from lf.sys_meta where id in ({0})", string.Join(",", ids)); |
| | | string sql = string.Format("select * from lf.sys_meta where id in ({0}) {1} order by id", string.Join(",", ids), types); |
| | | DataTable dt = Tool.DBHelper.GetDataTable(sql); |
| | | List<SysMeta> list = ModelHandler.FillModel<SysMeta>(dt); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |