package com.fjhx.stock.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fjhx.entity.stock.StockArea;
import com.fjhx.stock.mapper.StockAreaMapper;
import com.fjhx.stock.service.StockAreaService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 仓库 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-08-01
 */
@Service
public class StockAreaServiceImpl extends ServiceImpl<StockAreaMapper, StockArea> implements StockAreaService {

    @Override
    public List<StockArea> getList() {
        return list(Wrappers.<StockArea>lambdaQuery()
                .eq(StockArea::getIsdelete, 0)
                .eq(StockArea::getStockhouseId, "c185883dba22478cb593d33f6b66cc53")
        );
    }

}
