|
@@ -47,6 +47,7 @@ import com.platform.dao.vo.export.sb.ExportSbInfoVO;
|
|
|
import com.platform.dao.vo.export.sqarepartmanage.ExportSparePartInfoVO;
|
|
|
import com.platform.dao.vo.query.check.CheckStandardSpareVO;
|
|
|
import com.platform.dao.vo.query.sparepartmanage.SparePartInfoVO;
|
|
|
+import com.platform.dao.vo.query.store.StoreVO;
|
|
|
import com.platform.dao.vo.sb.SbInfoVO;
|
|
|
import com.platform.dao.vo.sb.SbModelSpareBomVO;
|
|
|
import com.platform.dao.vo.spare.SparePartInfo1VO;
|
|
@@ -103,6 +104,15 @@ public class SparePartInfoServiceImpl extends BaseServiceImpl<SparePartInfoMappe
|
|
|
|
|
|
@Override
|
|
|
public List<SparePartInfoVO> getByCondition(SparePartInfoDTO sparePartInfoDTO) {
|
|
|
+ Store store = new Store();
|
|
|
+ store.setParentId(sparePartInfoDTO.getStoreId());
|
|
|
+ List<Store> stores = storeMapper.select(store);
|
|
|
+ List<String> storeIds = new ArrayList<>();
|
|
|
+ storeIds.add(sparePartInfoDTO.getStoreId());
|
|
|
+ if(stores!=null&&stores.size()>0){
|
|
|
+ storeIds.addAll(stores.stream().map(Store::getId).collect(Collectors.toList()));
|
|
|
+ }
|
|
|
+ sparePartInfoDTO.setStoreIds(storeIds);
|
|
|
List<SparePartInfoVO> sparePartInfoVOS = mapper.getByCondition(sparePartInfoDTO);
|
|
|
return sparePartInfoVOS;
|
|
|
}
|