package com.hzs.member.handlebusiness.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.core.domain.R;
import com.hzs.common.domain.member.handleBusiness.CuHandleBusiness;
import com.hzs.member.handlebusiness.vo.HandleBusinessShowVO;
import com.hzs.member.handlebusiness.vo.HandleBusinessVO;
import com.hzs.system.sys.dto.ApprovalBusinessResultDTO;
import com.hzs.system.sys.dto.LoginUser;

import java.util.List;

/**
 * 业务办理表 服务类
 */
public interface ICuHandleBusinessService extends IService<CuHandleBusiness> {

    /**
     * 查询办理业务列表
     **/
    List<HandleBusinessShowVO> queryHandleBusinessList(HandleBusinessShowVO handleBusinessVO);


    /**
     * 保存业务办理信息
     *
     * @param handleBusinessVO 业务办理信息
     * @param loginUser        用户信息
     * @return
     */
    Boolean businessHandling(HandleBusinessVO handleBusinessVO, LoginUser loginUser);

    /**
     * 在线签呈审核 （审批状态）  同意/驳回
     *
     * @param approvalBusinessResultDTO
     */
    R signForApprovalExamine(ApprovalBusinessResultDTO approvalBusinessResultDTO);

    /**
     * 在线签呈
     */
    Boolean onlinePetitionConfirm(HandleBusinessVO handleBusinessVO, LoginUser loginUser);

    /**
     * 根据业务大单号查询
     *
     * @param orderNumber
     * @return
     */
    List<CuHandleBusiness> selectByOrderNumber(String orderNumber);

}
