| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.modules.base.entity.LineSideWarehouse; |
| | | import org.jeecg.modules.base.mapper.LineSideWarehouseMapper; |
| | | import org.jeecg.modules.base.service.ILineSideWarehouseService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 线边仓库信息 |
| | |
| | | } |
| | | return entity; |
| | | } |
| | | |
| | | @Override |
| | | public List<LineSideWarehouse> queryByProductionType(String productionType) { |
| | | if(StringUtils.isBlank(productionType)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | String[] types = productionType.split(","); |
| | | return this.getBaseMapper().queryByProductionType(types); |
| | | } |
| | | |
| | | @Override |
| | | public LineSideWarehouse queryByWarehouseCode(String warehouseCode) { |
| | | LambdaQueryWrapper<LineSideWarehouse> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(LineSideWarehouse::getWarehouseCode, warehouseCode); |
| | | wrapper.eq(LineSideWarehouse::getDelFlag, CommonConstant.DEL_FLAG_0); |
| | | wrapper.eq(LineSideWarehouse::getWarehouseStatus, CommonConstant.STATUS_1); |
| | | return this.getBaseMapper().selectOne(wrapper); |
| | | } |
| | | } |