fei
15 小时以前 830c17b5137c930b5e7682ee94868910050af3a5
增加了签名和注解
10个文件已添加
652 ■■■■■ 已修改文件
archiveManager/src/main/java/com/ruoyi/domain/ArchiveAnnotation.java 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/ArchiveSignature.java 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/mapper/ArchiveAnnotationMapper.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/mapper/ArchiveSignatureMapper.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/service/IArchiveAnnotationService.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/service/IArchiveSignatureService.java 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/service/impl/ArchiveAnnotationServiceImpl.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/service/impl/ArchiveSignatureServiceImpl.java 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/ArchiveAnnotationController.java 107 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/ArchiveSignatureController.java 114 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
archiveManager/src/main/java/com/ruoyi/domain/ArchiveAnnotation.java
New file
@@ -0,0 +1,73 @@
package com.ruoyi.domain;
import lombok.Data;
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;
import java.util.Date;
/**
 * 【请填写功能名称】对象 archive_annotation
 *
 * @author ruoyi
 * @date 2026-01-19
 */
@Data
public class ArchiveAnnotation extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** $column.columnComment */
    private Long id;
    /** 注解名称 */
    @Excel(name = "注解名称")
    private String name;
    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long srt;
    private Date createTime;
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    public String getName()
    {
        return name;
    }
    public void setSrt(Long srt)
    {
        this.srt = srt;
    }
    public Long getSrt()
    {
        return srt;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("srt", getSrt())
                .toString();
    }
}
archiveManager/src/main/java/com/ruoyi/domain/ArchiveSignature.java
New file
@@ -0,0 +1,72 @@
package com.ruoyi.domain;
import lombok.Data;
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;
import java.util.Date;
/**
 * 【请填写功能名称】对象 archive_signature
 *
 * @author ruoyi
 * @date 2026-01-19
 */
@Data
public class ArchiveSignature extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** $column.columnComment */
    private Long id;
    /** 签名名称 */
    @Excel(name = "签名名称")
    private String sigaName;
    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long sot;
    private Date createTime;
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setSigaName(String sigaName)
    {
        this.sigaName = sigaName;
    }
    public String getSigaName()
    {
        return sigaName;
    }
    public void setSot(Long sot)
    {
        this.sot = sot;
    }
    public Long getSot()
    {
        return sot;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sigaName", getSigaName())
                .append("sot", getSot())
                .toString();
    }
}
archiveManager/src/main/java/com/ruoyi/mapper/ArchiveAnnotationMapper.java
New file
@@ -0,0 +1,11 @@
package com.ruoyi.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.ArchiveAnnotation;
import com.ruoyi.domain.DocumentMaterials;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ArchiveAnnotationMapper  extends BaseMapper<ArchiveAnnotation> {
}
archiveManager/src/main/java/com/ruoyi/mapper/ArchiveSignatureMapper.java
New file
@@ -0,0 +1,12 @@
package com.ruoyi.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.ArchiveCategory;
import com.ruoyi.domain.ArchiveSignature;
import org.apache.ibatis.annotations.Mapper;
import javax.annotation.ManagedBean;
@Mapper
public interface ArchiveSignatureMapper  extends BaseMapper<ArchiveSignature> {
}
archiveManager/src/main/java/com/ruoyi/service/IArchiveAnnotationService.java
New file
@@ -0,0 +1,63 @@
package com.ruoyi.service;
import com.ruoyi.domain.ArchiveAnnotation;
import java.util.List;
/**
 * 【请填写功能名称】Service接口
 *
 * @author ruoyi
 * @date 2026-01-19
 */
public interface IArchiveAnnotationService
{
    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    public ArchiveAnnotation selectArchiveAnnotationById(Long id);
    /**
     * 查询【请填写功能名称】列表
     *
     * @param archiveAnnotation 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    public List<ArchiveAnnotation> selectArchiveAnnotationList(ArchiveAnnotation archiveAnnotation);
    /**
     * 新增【请填写功能名称】
     *
     * @param archiveAnnotation 【请填写功能名称】
     * @return 结果
     */
    public int insertArchiveAnnotation(ArchiveAnnotation archiveAnnotation);
    /**
     * 修改【请填写功能名称】
     *
     * @param archiveAnnotation 【请填写功能名称】
     * @return 结果
     */
    public int updateArchiveAnnotation(ArchiveAnnotation archiveAnnotation);
    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键集合
     * @return 结果
     */
    public int deleteArchiveAnnotationByIds(Long[] ids);
    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    public int deleteArchiveAnnotationById(Long id);
}
archiveManager/src/main/java/com/ruoyi/service/IArchiveSignatureService.java
New file
@@ -0,0 +1,71 @@
package com.ruoyi.service;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.domain.ArchiveRecords;
import com.ruoyi.domain.ArchiveSignature;
import java.util.List;
/**
 * 【请填写功能名称】Service接口
 *
 * @author ruoyi
 * @date 2026-01-19
 */
public interface IArchiveSignatureService
{
    AjaxResult selectDataList(ArchiveSignature archiveSignature, Integer pageNum, Integer pageSize);
    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    public ArchiveSignature selectArchiveSignatureById(Long id);
    /**
     * 查询【请填写功能名称】列表
     *
     * @param archiveSignature 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    public List<ArchiveSignature> selectArchiveSignatureList(ArchiveSignature archiveSignature);
    /**
     * 新增【请填写功能名称】
     *
     * @param archiveSignature 【请填写功能名称】
     * @return 结果
     */
    public int insertArchiveSignature(ArchiveSignature archiveSignature);
    /**
     * 修改【请填写功能名称】
     *
     * @param archiveSignature 【请填写功能名称】
     * @return 结果
     */
    public int updateArchiveSignature(ArchiveSignature archiveSignature);
    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键集合
     * @return 结果
     */
    public int deleteArchiveSignatureByIds(Long[] ids);
    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    public int deleteArchiveSignatureById(Long id);
}
archiveManager/src/main/java/com/ruoyi/service/impl/ArchiveAnnotationServiceImpl.java
New file
@@ -0,0 +1,45 @@
package com.ruoyi.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.domain.ArchiveAnnotation;
import com.ruoyi.domain.ArchiveCategory;
import com.ruoyi.mapper.ArchiveAnnotationMapper;
import com.ruoyi.mapper.ArchiveCategoryMapper;
import com.ruoyi.service.IArchiveAnnotationService;
import com.ruoyi.service.IArchiveCategoryService;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
@Service
public class ArchiveAnnotationServiceImpl  extends ServiceImpl<ArchiveAnnotationMapper, ArchiveAnnotation> implements IArchiveAnnotationService {
    @Override
    public ArchiveAnnotation selectArchiveAnnotationById(Long id) {
        return null;
    }
    @Override
    public List<ArchiveAnnotation> selectArchiveAnnotationList(ArchiveAnnotation archiveAnnotation) {
        return Collections.emptyList();
    }
    @Override
    public int insertArchiveAnnotation(ArchiveAnnotation archiveAnnotation) {
        return 0;
    }
    @Override
    public int updateArchiveAnnotation(ArchiveAnnotation archiveAnnotation) {
        return 0;
    }
    @Override
    public int deleteArchiveAnnotationByIds(Long[] ids) {
        return 0;
    }
    @Override
    public int deleteArchiveAnnotationById(Long id) {
        return 0;
    }
}
archiveManager/src/main/java/com/ruoyi/service/impl/ArchiveSignatureServiceImpl.java
New file
@@ -0,0 +1,84 @@
package com.ruoyi.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.MapUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.domain.ArchiveCategory;
import com.ruoyi.domain.ArchiveSignature;
import com.ruoyi.domain.Archiverecordstouser;
import com.ruoyi.mapper.ArchiveSignatureMapper;
import com.ruoyi.mapper.ArchiverecordstouserMapper;
import com.ruoyi.service.IArchiveSignatureService;
import com.ruoyi.service.IArchiverecordstouserService;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@Service
public class ArchiveSignatureServiceImpl extends ServiceImpl<ArchiveSignatureMapper, ArchiveSignature> implements IArchiveSignatureService {
    private LambdaQueryWrapper<ArchiveSignature> buildCondition(ArchiveSignature archiveSignature){
        LambdaQueryWrapper<ArchiveSignature> lqw = new LambdaQueryWrapper<>();
        lqw.like(!StringUtils.isEmpty(archiveSignature.getSigaName()), ArchiveSignature::getSigaName, archiveSignature.getSigaName());
        lqw.orderByDesc(ArchiveSignature::getCreateTime);
        System.out.println("ssssssssssssddd0000000000000000");
        return lqw;
    }
    @Override
    public AjaxResult selectDataList(ArchiveSignature archiveSignature, Integer pageNum, Integer pageSize) {
        LambdaQueryWrapper<ArchiveSignature> lqw = buildCondition(archiveSignature);
        Page<ArchiveSignature> archiveSignaturePage = new Page<>(pageNum, pageSize);
        Page<ArchiveSignature> pageResult = page(archiveSignaturePage, lqw);
        List<ArchiveSignature> beanRecords = pageResult.getRecords();//得到查询出来的数据
        //  List<ArchiveRecords> beanRecords = list(lqw);
        //   log.info("从数据库中查到的为:{}", beanRecords);
        //    return markOwnData(familyId, fatherFaId, motherFaId, beanRecords);
        HashMap<String, Object> data = MapUtils.getResult(pageResult, beanRecords);
        return AjaxResult.success(data);      }
    @Override
    public ArchiveSignature selectArchiveSignatureById(Long id) {
        return null;
    }
    @Override
    public List<ArchiveSignature> selectArchiveSignatureList(ArchiveSignature archiveSignature) {
        return Collections.emptyList();
    }
    @Override
    public int insertArchiveSignature(ArchiveSignature archiveSignature) {
        return 0;
    }
    @Override
    public int updateArchiveSignature(ArchiveSignature archiveSignature) {
        return 0;
    }
    @Override
    public int deleteArchiveSignatureByIds(Long[] ids) {
        return 0;
    }
    @Override
    public int deleteArchiveSignatureById(Long id) {
        return 0;
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/ArchiveAnnotationController.java
New file
@@ -0,0 +1,107 @@
package com.ruoyi.web.controller.archive;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.domain.ArchiveAnnotation;
import com.ruoyi.service.IArchiveAnnotationService;
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 2026-01-19
 */
@RestController
@RequestMapping("/system/annotation")
public class ArchiveAnnotationController extends BaseController
{
    @Autowired
    private IArchiveAnnotationService archiveAnnotationService;
    /**
     * 查询【请填写功能名称】列表
     */
    @PreAuthorize("@ss.hasPermi('system:annotation:list')")
    @GetMapping("/list")
    public TableDataInfo list(ArchiveAnnotation archiveAnnotation)
    {
        startPage();
        List<ArchiveAnnotation> list = archiveAnnotationService.selectArchiveAnnotationList(archiveAnnotation);
        return getDataTable(list);
    }
    /**
     * 导出【请填写功能名称】列表
     */
    @PreAuthorize("@ss.hasPermi('system:annotation:export')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ArchiveAnnotation archiveAnnotation)
    {
        List<ArchiveAnnotation> list = archiveAnnotationService.selectArchiveAnnotationList(archiveAnnotation);
        ExcelUtil<ArchiveAnnotation> util = new ExcelUtil<ArchiveAnnotation>(ArchiveAnnotation.class);
        util.exportExcel(response, list, "【请填写功能名称】数据");
    }
    /**
     * 获取【请填写功能名称】详细信息
     */
    @PreAuthorize("@ss.hasPermi('system:annotation:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return success(archiveAnnotationService.selectArchiveAnnotationById(id));
    }
    /**
     * 新增【请填写功能名称】
     */
    @PreAuthorize("@ss.hasPermi('system:annotation:add')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody ArchiveAnnotation archiveAnnotation)
    {
        return toAjax(archiveAnnotationService.insertArchiveAnnotation(archiveAnnotation));
    }
    /**
     * 修改【请填写功能名称】
     */
    @PreAuthorize("@ss.hasPermi('system:annotation:edit')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody ArchiveAnnotation archiveAnnotation)
    {
        return toAjax(archiveAnnotationService.updateArchiveAnnotation(archiveAnnotation));
    }
    /**
     * 删除【请填写功能名称】
     */
    @PreAuthorize("@ss.hasPermi('system:annotation:remove')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(archiveAnnotationService.deleteArchiveAnnotationByIds(ids));
    }
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/ArchiveSignatureController.java
New file
@@ -0,0 +1,114 @@
package com.ruoyi.web.controller.archive;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.ServletUtils;
import com.ruoyi.domain.ArchiveSignature;
import com.ruoyi.service.IArchiveSignatureService;
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;
import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM;
import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE;
/**
 * 【请填写功能名称】Controller
 *
 * @author ruoyi
 * @date 2026-01-19
 */
@RestController
@RequestMapping("/system/signature")
public class ArchiveSignatureController extends BaseController
{
    @Autowired
    private IArchiveSignatureService archiveSignatureService;
    /**
     * 查询【请填写功能名称】列表
     */
    @PreAuthorize("@ss.hasPermi('system:signature:list')")
    @GetMapping("/list")
    public AjaxResult list(ArchiveSignature archiveSignature)
    {
        Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1);
        Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10);
       return archiveSignatureService.selectDataList(archiveSignature, pageNum, pageSize);
        // return archiveCategoryService.selectDataList(archiveCategory, pageNum, pageSize);
    }
    /**
     * 导出【请填写功能名称】列表
     */
    @PreAuthorize("@ss.hasPermi('system:signature:export')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ArchiveSignature archiveSignature)
    {
        List<ArchiveSignature> list = archiveSignatureService.selectArchiveSignatureList(archiveSignature);
        ExcelUtil<ArchiveSignature> util = new ExcelUtil<ArchiveSignature>(ArchiveSignature.class);
        util.exportExcel(response, list, "【请填写功能名称】数据");
    }
    /**
     * 获取【请填写功能名称】详细信息
     */
    @PreAuthorize("@ss.hasPermi('system:signature:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return success(archiveSignatureService.selectArchiveSignatureById(id));
    }
    /**
     * 新增【请填写功能名称】
     */
    @PreAuthorize("@ss.hasPermi('system:signature:add')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody ArchiveSignature archiveSignature)
    {
        return toAjax(archiveSignatureService.insertArchiveSignature(archiveSignature));
    }
    /**
     * 修改【请填写功能名称】
     */
    @PreAuthorize("@ss.hasPermi('system:signature:edit')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody ArchiveSignature archiveSignature)
    {
        return toAjax(archiveSignatureService.updateArchiveSignature(archiveSignature));
    }
    /**
     * 删除【请填写功能名称】
     */
    @PreAuthorize("@ss.hasPermi('system:signature:remove')")
    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(archiveSignatureService.deleteArchiveSignatureByIds(ids));
    }
}