|
@@ -0,0 +1,35 @@
|
|
|
+package com.rongwei.bscommon.sys.dao;
|
|
|
+
|
|
|
+import com.rongwei.rwadmincommon.system.domain.SysDictDo;
|
|
|
+import com.rongwei.rwadmincommon.system.vo.SysOrganizationVo;
|
|
|
+import com.rongwei.rwcommonentity.commonservers.domain.SysFileItemDo;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
+import org.springframework.stereotype.Repository;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * CommonDao class
|
|
|
+ *
|
|
|
+ * @author XH LXD
|
|
|
+ * @date 2021/05/27
|
|
|
+ */
|
|
|
+@Mapper
|
|
|
+@Repository("commonMapper")
|
|
|
+public interface CommonDao {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据id查询文件路径
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select *\n" +
|
|
|
+ "from sys_file_item\n" +
|
|
|
+ "where ID = #{id}\n" +
|
|
|
+ "and DELETED = '0'\n" +
|
|
|
+ "limit 1")
|
|
|
+ Map<String, Object> getFileUrlById(@Param("id") String id);
|
|
|
+}
|