package org.dromara.biz.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.dromara.biz.domain.BizTask;
import org.dromara.biz.domain.vo.BizTaskVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 流程数据Mapper接口
 *
 * @author Blue
 * @date 2025-05-13
 */
@Mapper
public interface BizTaskMapper extends BaseMapperPlus<BizTask, BizTaskVo> {


    @Update("update biz_task set status = #{status} where task_no = #{taskNo}")
    int updateStatus(@Param("taskNo") String taskNo,@Param("status") String status);

    @Select("select * from biz_task where task_no = #{instanceId}")
    BizTask selectByTaskNo(String instanceId);
}
