| | |
| | | public MetaEntity selectByGuid(String guid, String tab); |
| | | |
| | | /** |
| | | * 根据多个ID查询元数据(数据表) |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | public List<MetaEntity> selectByIdsForTab(String ids); |
| | | |
| | | /** |
| | | * 查询元数据文件 |
| | | * |
| | | * @param ids 元数据ID集合 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<MetaEntity> selectByIdsForTab(String ids) { |
| | | return metaMapper.selectByIdsForTab(ids); |
| | | } |
| | | |
| | | @Override |
| | | public List<MetaEntity> selectMetaFiles(List<Integer> ids) { |
| | | return metaMapper.selectMetaFiles(ids); |
| | | } |
| | |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="selectByIdsForTab" resultType="com.lf.server.entity.data.MetaEntity"> |
| | | select a.* from lf.sys_meta a |
| | | where id in (${ids}) and a.tab is not null and a.rows > 0 |
| | | order by a.tab; |
| | | </select> |
| | | |
| | | <select id="selectMetaFiles" resultType="com.lf.server.entity.data.MetaEntity"> |
| | | select a.*,fn_uname(a.create_user) uname,fn_get_fullname(a.depcode, 1) depName,fn_ver(a.verid) verName,fn_get_fullname(a.dircode, 2) dirName |
| | | from lf.sys_meta a |
| | |
| | | |
| | | <delete id="deletes"> |
| | | <if test="sql != null"> |
| | | ${sql}; |
| | | ${sql} |
| | | </if> |
| | | delete from lf.sys_meta where id in (${ids}); |
| | | </delete> |