管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-12-25 035d6d22f53b0d5e84262df7c88da9d58b119e8b
src/main/java/com/lf/server/mapper/show/ApplyMapper.java
@@ -1,9 +1,12 @@
package com.lf.server.mapper.show;
import com.lf.server.entity.show.ApplyEntity;
import com.lf.server.entity.show.FlowEntity;
import com.lf.server.entity.sys.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.sql.Timestamp;
import java.util.List;
/**
@@ -16,20 +19,27 @@
    /**
     * 查询记录数
     *
     * @param userid 用户ID
     * @param uname  用户名
     * @param status 审核状态
     * @param start  开始时间
     * @param end    结束时间
     * @return 记录数
     */
    public Integer selectCount(Integer userid);
    public Integer selectCount(String uname, Integer status, Timestamp start, Timestamp end);
    /**
     * 分页查询
     *
     * @param userid   用户ID
     * @param userid 用户ID
     * @param uname  用户名
     * @param status 审核状态
     * @param start  开始时间
     * @param end    结束时间
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<ApplyEntity> selectByPage(Integer userid, Integer limit, Integer offset);
    public List<ApplyEntity> selectByPage(Integer userid, String uname, Integer status, Timestamp start, Timestamp end, Integer limit, Integer offset);
    /**
     * 查询所有
@@ -47,6 +57,30 @@
    public ApplyEntity selectById(int id);
    /**
     * 根据单位ID查询用户
     *
     * @param depid 单位ID
     * @return 用户
     */
    public UserEntity selectUserByDepid(Integer depid);
    /**
     * 查询待审核数
     *
     * @param userid 用户ID
     * @return 待审核数
     */
    public Integer selectSubmits(Integer userid);
    /**
     * 查询流程
     *
     * @param applyid 数据申请ID
     * @return 数据流程
     */
    public List<FlowEntity> selectFlows(Integer applyid);
    /**
     * 插入一条
     *
     * @param entity