管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-12-25 035d6d22f53b0d5e84262df7c88da9d58b119e8b
src/main/java/com/lf/server/service/show/ApplyService.java
@@ -7,10 +7,10 @@
import com.lf.server.helper.Md5Helper;
import com.lf.server.helper.StringHelper;
import com.lf.server.mapper.show.ApplyMapper;
import org.hsqldb.rights.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
@@ -27,13 +27,17 @@
    FlowService flowService;
    @Override
    public Integer selectCount(Integer userid) {
        return applyMapper.selectCount(userid);
    public Integer selectCount(String uname, Integer status, Timestamp start, Timestamp end) {
        uname = StringHelper.getLikeStr(uname);
        return applyMapper.selectCount(uname, status, start, end);
    }
    @Override
    public List<ApplyEntity> selectByPage(Integer userid, Integer limit, Integer offset) {
        return applyMapper.selectByPage(userid, limit, offset);
    public List<ApplyEntity> selectByPage(Integer userid, String uname, Integer status, Timestamp start, Timestamp end, Integer limit, Integer offset) {
        uname = StringHelper.getLikeStr(uname);
        return applyMapper.selectByPage(userid, uname, status, start, end, limit, offset);
    }
    @Override
@@ -44,6 +48,21 @@
    @Override
    public ApplyEntity selectById(int id) {
        return applyMapper.selectById(id);
    }
    @Override
    public UserEntity selectUserByDepid(Integer depid) {
        return applyMapper.selectUserByDepid(depid);
    }
    @Override
    public Integer selectSubmits(Integer userid) {
        return applyMapper.selectSubmits(userid);
    }
    @Override
    public List<FlowEntity> selectFlows(Integer applyid) {
        return applyMapper.selectFlows(applyid);
    }
    @Override
@@ -120,6 +139,9 @@
        List<FlowEntity> list = new ArrayList<>();
        for (Integer depid : dr.getIds()) {
            UserEntity user = selectUserByDepid(depid);
            if (null == user) {
                continue;
            }
            FlowEntity flow = new FlowEntity();
            flow.setApplyid(applyId);
@@ -133,14 +155,5 @@
        }
        return list;
    }
    /**
     * 根据单位ID查询用户
     */
    private UserEntity selectUserByDepid(Integer depid) {
        //
        return null;
    }
}