|
@@ -9,6 +9,7 @@ import com.platform.common.cache.DictCache;
|
|
|
import com.platform.common.exception.BusinessException;
|
|
|
import com.platform.common.model.UserInfo;
|
|
|
import com.platform.common.util.*;
|
|
|
+import com.platform.dao.bean.MyPage;
|
|
|
import com.platform.dao.bean.MyVOPage;
|
|
|
import com.platform.dao.dto.longyanpurchaseorder.LongYanPurchaseDetailDTO;
|
|
|
import com.platform.dao.dto.longyanpurchaseorder.LongYanPurchaseOrderDTO;
|
|
@@ -25,6 +26,7 @@ import com.platform.dao.entity.sb.SbModelSpareBom;
|
|
|
import com.platform.dao.entity.spareAdd.LongYanSpareAdd;
|
|
|
import com.platform.dao.entity.store.OutStoreDetail;
|
|
|
import com.platform.dao.entity.store.OutStoreForm;
|
|
|
+import com.platform.dao.entity.store.SpareStore;
|
|
|
import com.platform.dao.enums.LongYanSpareAddStatusEnum;
|
|
|
import com.platform.dao.enums.OutStoreStatusEnum;
|
|
|
import com.platform.dao.enums.SbInfoStatusEnum;
|
|
@@ -333,6 +335,9 @@ public class YongyouServiceImpl implements YongyouService {
|
|
|
SbModelSpareBom bom = new SbModelSpareBom();
|
|
|
bom.setSbId(sbInfo.getId());
|
|
|
sbModelSpareBoms = sbModelSpareBomMapper.select(bom);
|
|
|
+ if (sbModelSpareBoms==null||sbModelSpareBoms.size()==0){
|
|
|
+ return new MyVOPage(new ArrayList<SpareStoreVO>());
|
|
|
+ }
|
|
|
}else {
|
|
|
throw new BusinessException("系统有误,请查验!");
|
|
|
}
|
|
@@ -349,6 +354,9 @@ public class YongyouServiceImpl implements YongyouService {
|
|
|
SbModelSpareBom bom = new SbModelSpareBom();
|
|
|
bom.setSbId(sbInfo.getId());
|
|
|
sbModelSpareBoms = sbModelSpareBomMapper.select(bom);
|
|
|
+ if (sbModelSpareBoms==null||sbModelSpareBoms.size()==0){
|
|
|
+ return new MyVOPage(new ArrayList<SpareStoreVO>());
|
|
|
+ }
|
|
|
}else {
|
|
|
throw new BusinessException("系统有误,请查验!");
|
|
|
}
|