|
@@ -353,9 +353,10 @@ public class BasicWarehouseServiceImpl implements BasicWarehouseService {
|
353
|
353
|
} else {//油罐的
|
354
|
354
|
BasicTankExample example = new BasicTankExample();
|
355
|
355
|
BasicTankExample.Criteria criteria = example.createCriteria();
|
356
|
|
- criteria.andIdEqualTo(sptDataId);
|
357
|
|
- BasicTank basicTank = bankMapper.selectByPrimaryKey(sptDataId);
|
358
|
|
- if(null != basicTank){
|
|
356
|
+ criteria.andSptDataidEqualTo(sptDataId);
|
|
357
|
+ List<BasicTank> list = bankMapper.selectByExample(example);
|
|
358
|
+ if(null != list && list.size() > 0){
|
|
359
|
+ BasicTank basicTank = list.get(0);
|
359
|
360
|
houseId = Integer.parseInt(basicTank.getId());
|
360
|
361
|
wareHouseId = houseId;
|
361
|
362
|
orgId = basicTank.getOrgId();
|