package com.shinsoft.sto.mapper.main;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shinsoft.sto.model.common.selectModel;
import com.shinsoft.sto.model.main.Ware;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WareMapper extends BaseMapper<Ware> {

    @Select("SELECT id AS value, ware_nm AS label FROM T_MAIN_WARE WHERE NVL(cancel_flag,'0') = '0' ORDER BY add_time DESC")
    List<selectModel> selectWareOptions();
}
