WarehouseCompanyServiceImpl.java
1.08 KB
package com.huaheng.pc.config.warehouseCompany.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.common.utils.StringUtils;
import com.huaheng.common.utils.Wrappers;
import com.huaheng.pc.config.company.domain.CompanyU8;
import com.huaheng.pc.config.warehouseCompany.domain.WarehouseCompany;
import com.huaheng.pc.config.warehouseCompany.mapper.WarehouseCompanyMapper;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class WarehouseCompanyServiceImpl extends ServiceImpl<WarehouseCompanyMapper, WarehouseCompany> implements WarehouseCompanyService {
@Override
public List<WarehouseCompany> getByDoamin(WarehouseCompany warehouseCompany){
LambdaQueryWrapper<WarehouseCompany> lambdaQueryWrapper = Wrappers.lambdaQuery();
lambdaQueryWrapper.eq(StringUtils.isNotEmpty(warehouseCompany.getCompanyCode()),WarehouseCompany::getCompanyCode, warehouseCompany.getCompanyCode());
return this.list(lambdaQueryWrapper);
}
}