MaterialAreaServiceImpl.java
1.31 KB
package com.huaheng.pc.config.materialArea.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.common.utils.security.ShiroUtils;
import com.huaheng.pc.config.locationHigh.domain.LocationHigh;
import com.huaheng.pc.config.locationHigh.mapper.LocationHighMapper;
import com.huaheng.pc.config.locationHigh.service.LocationHighService;
import com.huaheng.pc.config.materialArea.domain.MaterialArea;
import com.huaheng.pc.config.materialArea.mapper.MaterialAreaMapper;
import com.huaheng.pc.config.zone.domain.Zone;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@Service("materialArea")
public class MaterialAreaServiceImpl extends ServiceImpl<MaterialAreaMapper, MaterialArea> implements MaterialAreaService {
@Override
public List<Map<String, Object>> queryCode() {
LambdaQueryWrapper<MaterialArea> lambda = Wrappers.lambdaQuery();
lambda.select(MaterialArea::getCode, MaterialArea::getId, MaterialArea::getName)
.eq(MaterialArea::getWarehouseCode, ShiroUtils.getWarehouseCode());
List<Map<String, Object>> mapList = this.listMaps(lambda);
return mapList;
}
}