Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / AllocService.java
package com.newfiber.api.pc.service;

import com.baomidou.mybatisplus.service.IService;
import com.newfiber.api.core.commons.PageRequestObject;
import com.newfiber.api.core.commons.PageResultObject;
import com.newfiber.api.pc.dto.SupAllotDTO;
import com.newfiber.api.pc.model.meet.AcceptAllot;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author:zzh
 * @CreateDate:2020/12/1 14:46
 * @Description:
 */
public interface AllocService extends IService<AcceptAllot> {
    /**
     * 调度方法
     * @param supAllotDTO
     * @param userNo
     */
    void alloc(SupAllotDTO supAllotDTO, String userNo);

    /**
     * 查询当前登录用户需要接收的调度物资列表
     * @param page
     * @param request
     * @return
     */
    PageResultObject<AcceptAllot> serchAcceptList(PageRequestObject<Integer> page, HttpServletRequest request);

    /**
     * 查询当前用户自己发布的调度信息
     * @param page
     * @param request
     * @return
     */
    PageResultObject<AcceptAllot> serchAllot(PageRequestObject<Integer> page, HttpServletRequest request);

    /**
     * 接收调度物资
     * @param allotId
     * @param request
     */
    void acceptSup(Integer allotId, HttpServletRequest request);

    /**
     * 查询调度详情
     * @param allotId
     * @return
     */
    AcceptAllot viewInfo(Integer allotId);
}