| | |
| | | package org.jeecg.modules.base.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | 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 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: 线边仓库信息 |
| | |
| | | @Service |
| | | public class LineSideWarehouseServiceImpl extends ServiceImpl<LineSideWarehouseMapper, LineSideWarehouse> implements ILineSideWarehouseService { |
| | | |
| | | @Override |
| | | public LineSideWarehouse queryByFactoryId(String factoryId) { |
| | | LambdaQueryWrapper<LineSideWarehouse> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(LineSideWarehouse::getFactoryId, factoryId); |
| | | LineSideWarehouse entity = this.getBaseMapper().selectOne(wrapper); |
| | | if(entity != null) { |
| | | entity.setWarehouseName(entity.getWarehouseName() + "(" + entity.getWarehouseCode() + ")"); |
| | | } |
| | | return entity; |
| | | } |
| | | } |