add 增加标协会议时,同步到会员系统
This commit is contained in:
+5
-1
@@ -2,7 +2,11 @@ package com.jero.modules.oss.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface OSSFileMapper extends BaseMapper<OSSFile> {
|
||||
|
||||
/**
|
||||
* 根据文件id获取文件名称
|
||||
*/
|
||||
String findFileNameByFileId(@Param("fileId")String fileId);
|
||||
}
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.oss.mapper.OSSFileMapper">
|
||||
|
||||
<!-- 根据文件id获取文件名称-->
|
||||
<select id="findFileNameByFileId" resultType="java.lang.String">
|
||||
SELECT
|
||||
file_name
|
||||
FROM
|
||||
oss_file a
|
||||
WHERE
|
||||
a.id = #{fileId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+8
-1
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.google.common.base.Joiner;
|
||||
import com.jero.modules.oss.mapper.OSSFileMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
@@ -84,7 +85,8 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||
private SysDepartMapper departMapper;
|
||||
@Resource
|
||||
private SysCategoryMapper categoryMapper;
|
||||
|
||||
@Resource
|
||||
private OSSFileMapper ossFileMapper;
|
||||
@Autowired
|
||||
private ISysDataSourceService dataSourceService;
|
||||
@Autowired
|
||||
@@ -1023,4 +1025,9 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||
public List<SysDepartTreeModel> listSonDepartsByDepId(String departId) {
|
||||
return sysDepartService.listSonDepartsByDepId(departId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String findFileNameByFileId(String fileId) {
|
||||
return ossFileMapper.findFileNameByFileId(fileId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user