|
|
|
@ -21,8 +21,8 @@ import com.logpm.oldproject.entity.WarehouseEntity;
|
|
|
|
|
import com.logpm.oldproject.mapper.WarehouseMapper; |
|
|
|
|
import com.logpm.oldproject.service.IWarehouseService; |
|
|
|
|
import com.logpm.oldproject.vo.WarehouseVO; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.log4j.Log4j2; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -33,17 +33,25 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
*/ |
|
|
|
|
@Log4j2 |
|
|
|
|
@Service |
|
|
|
|
public class WarehouseServiceImpl extends BaseServiceImpl<WarehouseMapper, WarehouseEntity> implements IWarehouseService { |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
public class WarehouseServiceImpl implements IWarehouseService { |
|
|
|
|
|
|
|
|
|
private WarehouseMapper warehouseMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<WarehouseVO> selectWarehousePage(IPage<WarehouseVO> page, WarehouseVO warehouse) { |
|
|
|
|
return page.setRecords(baseMapper.selectWarehousePage(page, warehouse)); |
|
|
|
|
return page.setRecords(warehouseMapper.selectWarehousePage(page, warehouse)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Integer selectIdByName(String siteName) { |
|
|
|
|
log.info("##########selectIdByName: siteName="+siteName); |
|
|
|
|
return baseMapper.selectIdByName(siteName); |
|
|
|
|
return warehouseMapper.selectIdByName(siteName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public WarehouseEntity getById(Integer id) { |
|
|
|
|
return warehouseMapper.selectById(id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|