SupplierServiceImpl.java
980 Bytes
package com.huaheng.pc.config.supplier.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.huaheng.common.utils.security.ShiroUtils;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.pc.config.supplier.mapper.SupplierMapper;
import com.huaheng.pc.config.supplier.domain.Supplier;
import java.util.List;
import java.util.Map;
@Service("SupplierService")
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements SupplierService{
@Override
public List<Map<String, Object>> getCode(){
LambdaQueryWrapper<Supplier> lambda = Wrappers.lambdaQuery();
lambda.select(Supplier::getCode, Supplier::getId, Supplier::getName)
.eq(Supplier::getWarehouseCode, ShiroUtils.getWarehouseCode());
return this.listMaps(lambda);
}
}