|
|
@@ -17,6 +17,7 @@ import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.core.utils.JacksonUtils;
|
|
|
import com.uas.platform.b2c.core.utils.UuidUtils;
|
|
|
import com.uas.platform.b2c.prod.commodity.dao.GoodsDao;
|
|
|
+import com.uas.platform.b2c.prod.commodity.dao.PCBDao;
|
|
|
import com.uas.platform.b2c.prod.product.component.dao.ComponentDao;
|
|
|
import com.uas.platform.b2c.prod.product.component.modal.Component;
|
|
|
import com.uas.platform.b2c.prod.product.component.modal.ComponentGoods;
|
|
|
@@ -109,8 +110,10 @@ public class StoreInServiceImpl implements StoreInService {
|
|
|
|
|
|
private final SearcherService searcherService;
|
|
|
|
|
|
+ private final PCBDao pcbDao;
|
|
|
+
|
|
|
@Autowired
|
|
|
- public StoreInServiceImpl(StoreInDao storeDao, QualificationDao qualificationDao, GoodsDao goodsDao, ComponentDao componentDao, PurchaseDao purchaseDao, StoreBrandInfoDao brandInfoDao, StoreAdsService adsService, SysConf sysConf, EnterpriseService enterpriseService, SearchHistoryDao searchHistoryDao, SearcherService searcherService) {
|
|
|
+ public StoreInServiceImpl(StoreInDao storeDao, QualificationDao qualificationDao, GoodsDao goodsDao, ComponentDao componentDao, PurchaseDao purchaseDao, StoreBrandInfoDao brandInfoDao, StoreAdsService adsService, SysConf sysConf, EnterpriseService enterpriseService, SearchHistoryDao searchHistoryDao, SearcherService searcherService, PCBDao pcbDao) {
|
|
|
this.storeDao = storeDao;
|
|
|
this.qualificationDao = qualificationDao;
|
|
|
this.goodsDao = goodsDao;
|
|
|
@@ -122,6 +125,7 @@ public class StoreInServiceImpl implements StoreInService {
|
|
|
this.enterpriseService = enterpriseService;
|
|
|
this.searchHistoryDao = searchHistoryDao;
|
|
|
this.searcherService = searcherService;
|
|
|
+ this.pcbDao = pcbDao;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -756,8 +760,6 @@ public class StoreInServiceImpl implements StoreInService {
|
|
|
pageInfo.expression(typeLogicalEx);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
return storeDao.findAll(new Specification<StoreIn>() {
|
|
|
@Override
|
|
|
public Predicate toPredicate(Root<StoreIn> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
|
|
|
@@ -766,4 +768,10 @@ public class StoreInServiceImpl implements StoreInService {
|
|
|
}
|
|
|
}, pageInfo);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ResultMap findPCBStoreByEnuu(Long enuu) {
|
|
|
+ Integer pcbCount = pcbDao.CountPCBProuductByEnuu(enuu) > 0 ? 1 : 0;
|
|
|
+ return ResultMap.success(pcbCount);
|
|
|
+ }
|
|
|
}
|