package org.dromara.wflow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.wflow.bean.entity.WflowModels;
import org.dromara.wflow.bean.vo.ModelGroupVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : willian fu
 * @date : 2022/6/27
 */
@Mapper
public interface WflowModelsMapper extends BaseMapper<WflowModels> {

    @Select("SELECT * FROM wflow_models WHERE is_delete = 0 ORDER BY group_id ASC, sort ASC")
    List<ModelGroupVo.Form> getSysModels();
}
