package com.ga.core.mapper.approval;

import com.ga.core.vo.approval.ApprovalLineResp;
import com.ga.core.vo.approval.ApprovalLineSearchParam;
import com.ga.core.vo.approval.ApprovalLineVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApprovalLineMapper {
    ApprovalLineResp selectById(@Param("lineId") Long lineId);
    ApprovalLineVO selectByCode(@Param("lineCode") String lineCode);
    List<ApprovalLineResp> selectList(ApprovalLineSearchParam param);
    int insert(ApprovalLineVO vo);
    int update(ApprovalLineVO vo);
    int updateActive(@Param("lineId") Long lineId, @Param("isActive") boolean isActive);
}
