|
|
|
@ -6,6 +6,7 @@ import com.ruoyi.common.annotation.DataSource;
|
|
|
|
|
import com.ruoyi.common.enums.DataSourceType;
|
|
|
|
|
import com.ruoyi.system.domain.scada.OrderInfo;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import com.ruoyi.system.mapper.BaseLocationInfoMapper;
|
|
|
|
|
import com.ruoyi.system.domain.BaseLocationInfo;
|
|
|
|
@ -24,6 +25,9 @@ public class BaseLocationInfoServiceImpl implements IBaseLocationInfoService
|
|
|
|
|
@Autowired
|
|
|
|
|
private BaseLocationInfoMapper baseLocationInfoMapper;
|
|
|
|
|
|
|
|
|
|
@Value("${in_id}")
|
|
|
|
|
private int in_id;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询库位信息
|
|
|
|
|
*
|
|
|
|
@ -45,7 +49,9 @@ public class BaseLocationInfoServiceImpl implements IBaseLocationInfoService
|
|
|
|
|
@Override
|
|
|
|
|
public List<BaseLocationInfo> selectBaseLocationInfoList(BaseLocationInfo baseLocationInfo)
|
|
|
|
|
{
|
|
|
|
|
return baseLocationInfoMapper.selectBaseLocationInfoList(baseLocationInfo);
|
|
|
|
|
// List<BaseLocationInfo> baseLocationInfos = baseLocationInfoMapper.selectBaseLocationInfoList(baseLocationInfo);
|
|
|
|
|
List<BaseLocationInfo> baseLocationInfos = baseLocationInfoMapper.selectBaseLocationInfoListNew(in_id,baseLocationInfo.getStoreCode());
|
|
|
|
|
return baseLocationInfos;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -57,7 +63,7 @@ public class BaseLocationInfoServiceImpl implements IBaseLocationInfoService
|
|
|
|
|
@Override
|
|
|
|
|
@DataSource(value = DataSourceType.SLAVE)
|
|
|
|
|
public List<OrderInfo> getPlanInfo(){
|
|
|
|
|
return baseLocationInfoMapper.getPlanInfo(1);
|
|
|
|
|
return baseLocationInfoMapper.getPlanInfo(in_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|