package com.chinaweal.aiccs.aiccs.system.service;

import com.chinaweal.aiccs.aiccs.system.entity.DeadlineStas;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseService;

import java.time.LocalDate;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lee
 * @since 2021-10-11
 */
public interface DeadlinestasService extends BaseService<DeadlineStas> {

    /**
     * 流程启动时初始化时限表信息
     * @param workflowid       流程主键
     * @param acceptStartDate  经办起算日期
     * @return
     */
    boolean init(String workflowid, LocalDate acceptStartDate);

    boolean update(String workflowid,LocalDate acceptDate,LocalDate handleDate,LocalDate approveDate,boolean isReturn);

    DeadlineStas getByWorkflowId(String workflowid);

}
