Browse Source

提交附件上传管理功能

Signed-off-by: zjc <15896567520@163.com>
zjc 1 year ago
parent
commit
67971cb283

+ 105 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/invest/TProjectInformationController.java

@@ -0,0 +1,105 @@
+package com.ruoyi.web.controller.invest;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.ruoyi.system.domain.invest.TProjectInformation;
+import com.ruoyi.system.service.invest.ITProjectInformationService;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 文件资料Controller
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+@RestController
+@RequestMapping("/invest/information")
+public class TProjectInformationController extends BaseController
+{
+    @Autowired
+    private ITProjectInformationService tProjectInformationService;
+
+    /**
+     * 查询文件资料列表
+     */
+    @PreAuthorize("@ss.hasPermi('invest:information:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TProjectInformation tProjectInformation)
+    {
+        startPage();
+        List<TProjectInformation> list = tProjectInformationService.selectTProjectInformationList(tProjectInformation);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出文件资料列表
+     */
+    @PreAuthorize("@ss.hasPermi('invest:information:export')")
+    @Log(title = "文件资料", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TProjectInformation tProjectInformation)
+    {
+        List<TProjectInformation> list = tProjectInformationService.selectTProjectInformationList(tProjectInformation);
+        ExcelUtil<TProjectInformation> util = new ExcelUtil<TProjectInformation>(TProjectInformation.class);
+        util.exportExcel(response, list, "文件资料数据");
+    }
+
+    /**
+     * 获取文件资料详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('invest:information:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(tProjectInformationService.selectTProjectInformationById(id));
+    }
+
+    /**
+     * 新增文件资料
+     */
+    @PreAuthorize("@ss.hasPermi('invest:information:add')")
+    @Log(title = "文件资料", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TProjectInformation tProjectInformation)
+    {
+        return toAjax(tProjectInformationService.insertTProjectInformation(tProjectInformation));
+    }
+
+    /**
+     * 修改文件资料
+     */
+    @PreAuthorize("@ss.hasPermi('invest:information:edit')")
+    @Log(title = "文件资料", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TProjectInformation tProjectInformation)
+    {
+        return toAjax(tProjectInformationService.updateTProjectInformation(tProjectInformation));
+    }
+
+    /**
+     * 删除文件资料
+     */
+    @PreAuthorize("@ss.hasPermi('invest:information:remove')")
+    @Log(title = "文件资料", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(tProjectInformationService.deleteTProjectInformationByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysFileController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.SysFile;
+import com.ruoyi.system.service.ISysFileService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 附件Controller
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+@RestController
+@RequestMapping("/system/file")
+public class SysFileController extends BaseController
+{
+    @Autowired
+    private ISysFileService sysFileService;
+
+    /**
+     * 查询附件列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:file:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysFile sysFile)
+    {
+        startPage();
+        List<SysFile> list = sysFileService.selectSysFileList(sysFile);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出附件列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:file:export')")
+    @Log(title = "附件", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysFile sysFile)
+    {
+        List<SysFile> list = sysFileService.selectSysFileList(sysFile);
+        ExcelUtil<SysFile> util = new ExcelUtil<SysFile>(SysFile.class);
+        util.exportExcel(response, list, "附件数据");
+    }
+
+    /**
+     * 获取附件详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:file:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(sysFileService.selectSysFileById(id));
+    }
+
+    /**
+     * 新增附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:file:add')")
+    @Log(title = "附件", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysFile sysFile)
+    {
+        return toAjax(sysFileService.insertSysFile(sysFile));
+    }
+
+    /**
+     * 修改附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:file:edit')")
+    @Log(title = "附件", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysFile sysFile)
+    {
+        return toAjax(sysFileService.updateSysFile(sysFile));
+    }
+
+    /**
+     * 删除附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:file:remove')")
+    @Log(title = "附件", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(sysFileService.deleteSysFileByIds(ids));
+    }
+}

+ 148 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/SysFile.java

@@ -0,0 +1,148 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 附件对象 sys_file
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+public class SysFile extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键ID */
+    private String id;
+
+    /** 文件ID */
+    private String fileId;
+
+    /** 文件名称 */
+    @Excel(name = "文件名称")
+    private String uploadName;
+
+    /** 文件类别 */
+    @Excel(name = "文件类别")
+    private String uploadType;
+
+    /** 文件地址 */
+    private String uploadPath;
+
+    /** 文件格式 */
+    @Excel(name = "文件格式")
+    private String uploadFormat;
+
+    /** 新文件名称 */
+    private String newUploadName;
+
+    /** 状态 */
+    private String delFlag;
+
+    /** 附件业务ID */
+    private String fileBusinessId;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setFileId(String fileId) 
+    {
+        this.fileId = fileId;
+    }
+
+    public String getFileId() 
+    {
+        return fileId;
+    }
+    public void setUploadName(String uploadName) 
+    {
+        this.uploadName = uploadName;
+    }
+
+    public String getUploadName() 
+    {
+        return uploadName;
+    }
+    public void setUploadType(String uploadType) 
+    {
+        this.uploadType = uploadType;
+    }
+
+    public String getUploadType() 
+    {
+        return uploadType;
+    }
+    public void setUploadPath(String uploadPath) 
+    {
+        this.uploadPath = uploadPath;
+    }
+
+    public String getUploadPath() 
+    {
+        return uploadPath;
+    }
+    public void setUploadFormat(String uploadFormat) 
+    {
+        this.uploadFormat = uploadFormat;
+    }
+
+    public String getUploadFormat() 
+    {
+        return uploadFormat;
+    }
+    public void setNewUploadName(String newUploadName) 
+    {
+        this.newUploadName = newUploadName;
+    }
+
+    public String getNewUploadName() 
+    {
+        return newUploadName;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+    public void setFileBusinessId(String fileBusinessId) 
+    {
+        this.fileBusinessId = fileBusinessId;
+    }
+
+    public String getFileBusinessId() 
+    {
+        return fileBusinessId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("fileId", getFileId())
+            .append("uploadName", getUploadName())
+            .append("uploadType", getUploadType())
+            .append("uploadPath", getUploadPath())
+            .append("uploadFormat", getUploadFormat())
+            .append("newUploadName", getNewUploadName())
+            .append("delFlag", getDelFlag())
+            .append("fileBusinessId", getFileBusinessId())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 123 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/invest/TProjectInformation.java

@@ -0,0 +1,123 @@
+package com.ruoyi.system.domain.invest;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 文件资料对象 t_project_information
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+public class TProjectInformation extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键ID */
+    private String id;
+
+    /** 文件名称 */
+    @Excel(name = "文件名称")
+    private String fileName;
+
+    /** 文件类别 */
+    @Excel(name = "文件类别")
+    private String fileType;
+
+    /** 项目ID */
+    private String projectPoolId;
+
+    /** 会议编号 */
+    @Excel(name = "会议编号")
+    private String meetingCode;
+
+    /** 附件业务ID */
+    private String fileBusinessId;
+
+    /** 状态 */
+    private String delFlag;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setFileName(String fileName) 
+    {
+        this.fileName = fileName;
+    }
+
+    public String getFileName() 
+    {
+        return fileName;
+    }
+    public void setFileType(String fileType) 
+    {
+        this.fileType = fileType;
+    }
+
+    public String getFileType() 
+    {
+        return fileType;
+    }
+    public void setProjectPoolId(String projectPoolId) 
+    {
+        this.projectPoolId = projectPoolId;
+    }
+
+    public String getProjectPoolId() 
+    {
+        return projectPoolId;
+    }
+    public void setMeetingCode(String meetingCode) 
+    {
+        this.meetingCode = meetingCode;
+    }
+
+    public String getMeetingCode() 
+    {
+        return meetingCode;
+    }
+    public void setFileBusinessId(String fileBusinessId) 
+    {
+        this.fileBusinessId = fileBusinessId;
+    }
+
+    public String getFileBusinessId() 
+    {
+        return fileBusinessId;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("fileName", getFileName())
+            .append("fileType", getFileType())
+            .append("projectPoolId", getProjectPoolId())
+            .append("meetingCode", getMeetingCode())
+            .append("fileBusinessId", getFileBusinessId())
+            .append("delFlag", getDelFlag())
+            .append("remark", getRemark())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysFileMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.SysFile;
+
+/**
+ * 附件Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+public interface SysFileMapper 
+{
+    /**
+     * 查询附件
+     * 
+     * @param id 附件主键
+     * @return 附件
+     */
+    public SysFile selectSysFileById(String id);
+
+    /**
+     * 查询附件列表
+     * 
+     * @param sysFile 附件
+     * @return 附件集合
+     */
+    public List<SysFile> selectSysFileList(SysFile sysFile);
+
+    /**
+     * 新增附件
+     * 
+     * @param sysFile 附件
+     * @return 结果
+     */
+    public int insertSysFile(SysFile sysFile);
+
+    /**
+     * 修改附件
+     * 
+     * @param sysFile 附件
+     * @return 结果
+     */
+    public int updateSysFile(SysFile sysFile);
+
+    /**
+     * 删除附件
+     * 
+     * @param id 附件主键
+     * @return 结果
+     */
+    public int deleteSysFileById(String id);
+
+    /**
+     * 批量删除附件
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysFileByIds(String[] ids);
+}

+ 62 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/invest/TProjectInformationMapper.java

@@ -0,0 +1,62 @@
+package com.ruoyi.system.mapper.invest;
+
+import com.ruoyi.system.domain.invest.TProjectInformation;
+
+import java.util.List;
+
+/**
+ * 文件资料Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+public interface TProjectInformationMapper 
+{
+    /**
+     * 查询文件资料
+     * 
+     * @param id 文件资料主键
+     * @return 文件资料
+     */
+    public TProjectInformation selectTProjectInformationById(String id);
+
+    /**
+     * 查询文件资料列表
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 文件资料集合
+     */
+    public List<TProjectInformation> selectTProjectInformationList(TProjectInformation tProjectInformation);
+
+    /**
+     * 新增文件资料
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 结果
+     */
+    public int insertTProjectInformation(TProjectInformation tProjectInformation);
+
+    /**
+     * 修改文件资料
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 结果
+     */
+    public int updateTProjectInformation(TProjectInformation tProjectInformation);
+
+    /**
+     * 删除文件资料
+     * 
+     * @param id 文件资料主键
+     * @return 结果
+     */
+    public int deleteTProjectInformationById(String id);
+
+    /**
+     * 批量删除文件资料
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTProjectInformationByIds(String[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysFileService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.SysFile;
+
+/**
+ * 附件Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+public interface ISysFileService 
+{
+    /**
+     * 查询附件
+     * 
+     * @param id 附件主键
+     * @return 附件
+     */
+    public SysFile selectSysFileById(String id);
+
+    /**
+     * 查询附件列表
+     * 
+     * @param sysFile 附件
+     * @return 附件集合
+     */
+    public List<SysFile> selectSysFileList(SysFile sysFile);
+
+    /**
+     * 新增附件
+     * 
+     * @param sysFile 附件
+     * @return 结果
+     */
+    public int insertSysFile(SysFile sysFile);
+
+    /**
+     * 修改附件
+     * 
+     * @param sysFile 附件
+     * @return 结果
+     */
+    public int updateSysFile(SysFile sysFile);
+
+    /**
+     * 批量删除附件
+     * 
+     * @param ids 需要删除的附件主键集合
+     * @return 结果
+     */
+    public int deleteSysFileByIds(String[] ids);
+
+    /**
+     * 删除附件信息
+     * 
+     * @param id 附件主键
+     * @return 结果
+     */
+    public int deleteSysFileById(String id);
+}

+ 98 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysFileServiceImpl.java

@@ -0,0 +1,98 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.uuid.IdUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.SysFileMapper;
+import com.ruoyi.system.domain.SysFile;
+import com.ruoyi.system.service.ISysFileService;
+
+/**
+ * 附件Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+@Service
+public class SysFileServiceImpl implements ISysFileService 
+{
+    @Autowired
+    private SysFileMapper sysFileMapper;
+
+    /**
+     * 查询附件
+     * 
+     * @param id 附件主键
+     * @return 附件
+     */
+    @Override
+    public SysFile selectSysFileById(String id)
+    {
+        return sysFileMapper.selectSysFileById(id);
+    }
+
+    /**
+     * 查询附件列表
+     * 
+     * @param sysFile 附件
+     * @return 附件
+     */
+    @Override
+    public List<SysFile> selectSysFileList(SysFile sysFile)
+    {
+        return sysFileMapper.selectSysFileList(sysFile);
+    }
+
+    /**
+     * 新增附件
+     * 
+     * @param sysFile 附件
+     * @return 结果
+     */
+    @Override
+    public int insertSysFile(SysFile sysFile)
+    {
+        sysFile.setCreateTime(DateUtils.getNowDate());
+        sysFile.setId(IdUtils.fastSimpleUUID());
+        return sysFileMapper.insertSysFile(sysFile);
+    }
+
+    /**
+     * 修改附件
+     * 
+     * @param sysFile 附件
+     * @return 结果
+     */
+    @Override
+    public int updateSysFile(SysFile sysFile)
+    {
+        sysFile.setUpdateTime(DateUtils.getNowDate());
+        return sysFileMapper.updateSysFile(sysFile);
+    }
+
+    /**
+     * 批量删除附件
+     * 
+     * @param ids 需要删除的附件主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysFileByIds(String[] ids)
+    {
+        return sysFileMapper.deleteSysFileByIds(ids);
+    }
+
+    /**
+     * 删除附件信息
+     * 
+     * @param id 附件主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysFileById(String id)
+    {
+        return sysFileMapper.deleteSysFileById(id);
+    }
+}

+ 62 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/invest/ITProjectInformationService.java

@@ -0,0 +1,62 @@
+package com.ruoyi.system.service.invest;
+
+import com.ruoyi.system.domain.invest.TProjectInformation;
+
+import java.util.List;
+
+/**
+ * 文件资料Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+public interface ITProjectInformationService 
+{
+    /**
+     * 查询文件资料
+     * 
+     * @param id 文件资料主键
+     * @return 文件资料
+     */
+    public TProjectInformation selectTProjectInformationById(String id);
+
+    /**
+     * 查询文件资料列表
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 文件资料集合
+     */
+    public List<TProjectInformation> selectTProjectInformationList(TProjectInformation tProjectInformation);
+
+    /**
+     * 新增文件资料
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 结果
+     */
+    public int insertTProjectInformation(TProjectInformation tProjectInformation);
+
+    /**
+     * 修改文件资料
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 结果
+     */
+    public int updateTProjectInformation(TProjectInformation tProjectInformation);
+
+    /**
+     * 批量删除文件资料
+     * 
+     * @param ids 需要删除的文件资料主键集合
+     * @return 结果
+     */
+    public int deleteTProjectInformationByIds(String[] ids);
+
+    /**
+     * 删除文件资料信息
+     * 
+     * @param id 文件资料主键
+     * @return 结果
+     */
+    public int deleteTProjectInformationById(String id);
+}

+ 98 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/invest/impl/TProjectInformationServiceImpl.java

@@ -0,0 +1,98 @@
+package com.ruoyi.system.service.invest.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.uuid.IdUtils;
+import com.ruoyi.system.domain.invest.TProjectInformation;
+import com.ruoyi.system.mapper.invest.TProjectInformationMapper;
+import com.ruoyi.system.service.invest.ITProjectInformationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 文件资料Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-02-22
+ */
+@Service
+public class TProjectInformationServiceImpl implements ITProjectInformationService
+{
+    @Autowired
+    private TProjectInformationMapper tProjectInformationMapper;
+
+    /**
+     * 查询文件资料
+     * 
+     * @param id 文件资料主键
+     * @return 文件资料
+     */
+    @Override
+    public TProjectInformation selectTProjectInformationById(String id)
+    {
+        return tProjectInformationMapper.selectTProjectInformationById(id);
+    }
+
+    /**
+     * 查询文件资料列表
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 文件资料
+     */
+    @Override
+    public List<TProjectInformation> selectTProjectInformationList(TProjectInformation tProjectInformation)
+    {
+        return tProjectInformationMapper.selectTProjectInformationList(tProjectInformation);
+    }
+
+    /**
+     * 新增文件资料
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 结果
+     */
+    @Override
+    public int insertTProjectInformation(TProjectInformation tProjectInformation)
+    {
+        tProjectInformation.setCreateTime(DateUtils.getNowDate());
+        tProjectInformation.setId(IdUtils.fastSimpleUUID());
+        return tProjectInformationMapper.insertTProjectInformation(tProjectInformation);
+    }
+
+    /**
+     * 修改文件资料
+     * 
+     * @param tProjectInformation 文件资料
+     * @return 结果
+     */
+    @Override
+    public int updateTProjectInformation(TProjectInformation tProjectInformation)
+    {
+        tProjectInformation.setUpdateTime(DateUtils.getNowDate());
+        return tProjectInformationMapper.updateTProjectInformation(tProjectInformation);
+    }
+
+    /**
+     * 批量删除文件资料
+     * 
+     * @param ids 需要删除的文件资料主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTProjectInformationByIds(String[] ids)
+    {
+        return tProjectInformationMapper.deleteTProjectInformationByIds(ids);
+    }
+
+    /**
+     * 删除文件资料信息
+     * 
+     * @param id 文件资料主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTProjectInformationById(String id)
+    {
+        return tProjectInformationMapper.deleteTProjectInformationById(id);
+    }
+}

+ 100 - 0
ruoyi-system/src/main/resources/mapper/invest/TProjectInformationMapper.xml

@@ -0,0 +1,100 @@
+<?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.ruoyi.system.mapper.invest.TProjectInformationMapper">
+    
+    <resultMap type="TProjectInformation" id="TProjectInformationResult">
+        <result property="id"    column="id"    />
+        <result property="fileName"    column="file_name"    />
+        <result property="fileType"    column="file_type"    />
+        <result property="projectPoolId"    column="project_pool_id"    />
+        <result property="meetingCode"    column="meeting_code"    />
+        <result property="fileBusinessId"    column="file_business_id"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="remark"    column="remark"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectTProjectInformationVo">
+        select id, file_name, file_type, project_pool_id, meeting_code, file_business_id, del_flag, remark, create_by, create_time, update_by, update_time from t_project_information
+    </sql>
+
+    <select id="selectTProjectInformationList" parameterType="TProjectInformation" resultMap="TProjectInformationResult">
+        <include refid="selectTProjectInformationVo"/>
+        <where>  
+            <if test="fileName != null  and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
+            <if test="fileType != null  and fileType != ''"> and file_type = #{fileType}</if>
+            <if test="meetingCode != null  and meetingCode != ''"> and meeting_code = #{meetingCode}</if>
+        </where>
+    </select>
+    
+    <select id="selectTProjectInformationById" parameterType="String" resultMap="TProjectInformationResult">
+        <include refid="selectTProjectInformationVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTProjectInformation" parameterType="TProjectInformation">
+        insert into t_project_information
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="fileName != null">file_name,</if>
+            <if test="fileType != null">file_type,</if>
+            <if test="projectPoolId != null">project_pool_id,</if>
+            <if test="meetingCode != null">meeting_code,</if>
+            <if test="fileBusinessId != null">file_business_id,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="remark != null">remark,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="fileName != null">#{fileName},</if>
+            <if test="fileType != null">#{fileType},</if>
+            <if test="projectPoolId != null">#{projectPoolId},</if>
+            <if test="meetingCode != null">#{meetingCode},</if>
+            <if test="fileBusinessId != null">#{fileBusinessId},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTProjectInformation" parameterType="TProjectInformation">
+        update t_project_information
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="fileName != null">file_name = #{fileName},</if>
+            <if test="fileType != null">file_type = #{fileType},</if>
+            <if test="projectPoolId != null">project_pool_id = #{projectPoolId},</if>
+            <if test="meetingCode != null">meeting_code = #{meetingCode},</if>
+            <if test="fileBusinessId != null">file_business_id = #{fileBusinessId},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTProjectInformationById" parameterType="String">
+        delete from t_project_information where id = #{id}
+    </delete>
+
+    <delete id="deleteTProjectInformationByIds" parameterType="String">
+        delete from t_project_information where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 104 - 0
ruoyi-system/src/main/resources/mapper/system/SysFileMapper.xml

@@ -0,0 +1,104 @@
+<?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.ruoyi.system.mapper.SysFileMapper">
+    
+    <resultMap type="SysFile" id="SysFileResult">
+        <result property="id"    column="id"    />
+        <result property="fileId"    column="file_id"    />
+        <result property="uploadName"    column="upload_name"    />
+        <result property="uploadType"    column="upload_type"    />
+        <result property="uploadPath"    column="upload_path"    />
+        <result property="uploadFormat"    column="upload_format"    />
+        <result property="newUploadName"    column="new_upload_name"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="fileBusinessId"    column="file_business_id"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectSysFileVo">
+        select id, file_id, upload_name, upload_type, upload_path, upload_format, new_upload_name, del_flag, file_business_id, create_by, create_time, update_by, update_time from sys_file
+    </sql>
+
+    <select id="selectSysFileList" parameterType="SysFile" resultMap="SysFileResult">
+        <include refid="selectSysFileVo"/>
+        <where>  
+            <if test="uploadName != null  and uploadName != ''"> and upload_name like concat('%', #{uploadName}, '%')</if>
+            <if test="uploadType != null  and uploadType != ''"> and upload_type = #{uploadType}</if>
+            <if test="uploadFormat != null  and uploadFormat != ''"> and upload_format = #{uploadFormat}</if>
+        </where>
+    </select>
+    
+    <select id="selectSysFileById" parameterType="String" resultMap="SysFileResult">
+        <include refid="selectSysFileVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertSysFile" parameterType="SysFile">
+        insert into sys_file
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="fileId != null">file_id,</if>
+            <if test="uploadName != null">upload_name,</if>
+            <if test="uploadType != null">upload_type,</if>
+            <if test="uploadPath != null">upload_path,</if>
+            <if test="uploadFormat != null">upload_format,</if>
+            <if test="newUploadName != null">new_upload_name,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="fileBusinessId != null">file_business_id,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="fileId != null">#{fileId},</if>
+            <if test="uploadName != null">#{uploadName},</if>
+            <if test="uploadType != null">#{uploadType},</if>
+            <if test="uploadPath != null">#{uploadPath},</if>
+            <if test="uploadFormat != null">#{uploadFormat},</if>
+            <if test="newUploadName != null">#{newUploadName},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="fileBusinessId != null">#{fileBusinessId},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSysFile" parameterType="SysFile">
+        update sys_file
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="fileId != null">file_id = #{fileId},</if>
+            <if test="uploadName != null">upload_name = #{uploadName},</if>
+            <if test="uploadType != null">upload_type = #{uploadType},</if>
+            <if test="uploadPath != null">upload_path = #{uploadPath},</if>
+            <if test="uploadFormat != null">upload_format = #{uploadFormat},</if>
+            <if test="newUploadName != null">new_upload_name = #{newUploadName},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="fileBusinessId != null">file_business_id = #{fileBusinessId},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSysFileById" parameterType="String">
+        delete from sys_file where id = #{id}
+    </delete>
+
+    <delete id="deleteSysFileByIds" parameterType="String">
+        delete from sys_file where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>