ExcelTemplateServiceImpl.java
1.1 KB
package com.huaheng.pc.config.excelTemplate.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.excelTemplate.domain.ExcelTemplate;
import com.huaheng.pc.config.excelTemplate.mapper.ExcelTemplateMapper;
import java.util.List;
import java.util.Map;
@Service("excelService")
public class ExcelTemplateServiceImpl extends ServiceImpl<ExcelTemplateMapper, ExcelTemplate> implements ExcelTemplateService{
@Override
public List<Map<String, Object>> getList(){
LambdaQueryWrapper<ExcelTemplate> lambdaQueryWrapper = Wrappers.lambdaQuery();
lambdaQueryWrapper.eq(ExcelTemplate::getWarehouseCode, ShiroUtils.getWarehouseCode())
.in(ExcelTemplate::getCompanyCode, ShiroUtils.getCompanyCodeList())
.eq(ExcelTemplate::getEnable,true);
return this.listMaps(lambdaQueryWrapper);
}
}