package com.willalp.erms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.willalp.erms.domain.HsGoodsType;
import com.willalp.erms.mapper.HsGoodsTypeMapper;
import com.willalp.erms.service.IHsGoodsTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 物资类库Service业务层处理
 *
 * @author willalp
 * @date 2023-03-09
 */
@Service
public class HsGoodsTypeServiceImpl extends ServiceImpl<HsGoodsTypeMapper, HsGoodsType> implements IHsGoodsTypeService {
    @Resource
    private HsGoodsTypeMapper hsGoodsTypeMapper;

    /**
     * 查询物资类库列表
     *
     * @param hsGoodsType 物资类库
     * @return 物资类库
     */
    @Override
    public List<HsGoodsType> selectHsGoodsTypeList(HsGoodsType hsGoodsType) {
        return hsGoodsTypeMapper.selectHsGoodsTypeList(hsGoodsType);
    }

    @Override
    public List<HsGoodsType> appGetGoodsType(String type) {
        return baseMapper.appGetGoodsType(type);
    }
}
