|
|
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
|
|
|
import com.uas.platform.b2b.dao.MakeAcceptDao;
|
|
|
import com.uas.platform.b2b.dao.MakeOrderChangeDao;
|
|
|
import com.uas.platform.b2b.dao.MakeOrderDao;
|
|
|
+import com.uas.platform.b2b.dao.MakeReturnDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseAcceptDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseApBillDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseBadInDao;
|
|
|
@@ -15,12 +16,20 @@ import com.uas.platform.b2b.dao.PurchaseBadOutDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseForecastAllDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseInquiryDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseMRBDao;
|
|
|
+import com.uas.platform.b2b.dao.PurchaseNoticeDao;
|
|
|
+import com.uas.platform.b2b.dao.PurchaseOrderChangeDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseOrderDao;
|
|
|
+import com.uas.platform.b2b.dao.PurchaseProofingApprovalDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseProofingDao;
|
|
|
+import com.uas.platform.b2b.dao.PurchaseProofingSendDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseReturnDao;
|
|
|
+import com.uas.platform.b2b.dao.SaleARCheckDao;
|
|
|
+import com.uas.platform.b2b.dao.SaleQuotationDao;
|
|
|
+import com.uas.platform.b2b.dao.SaleSendDao;
|
|
|
import com.uas.platform.b2b.model.MakeAccept;
|
|
|
import com.uas.platform.b2b.model.MakeOrder;
|
|
|
import com.uas.platform.b2b.model.MakeOrderChange;
|
|
|
+import com.uas.platform.b2b.model.MakeReturn;
|
|
|
import com.uas.platform.b2b.model.PurchaseAccept;
|
|
|
import com.uas.platform.b2b.model.PurchaseApBill;
|
|
|
import com.uas.platform.b2b.model.PurchaseBadIn;
|
|
|
@@ -28,9 +37,16 @@ import com.uas.platform.b2b.model.PurchaseBadOut;
|
|
|
import com.uas.platform.b2b.model.PurchaseForecastAll;
|
|
|
import com.uas.platform.b2b.model.PurchaseInquiry;
|
|
|
import com.uas.platform.b2b.model.PurchaseMRB;
|
|
|
+import com.uas.platform.b2b.model.PurchaseNotice;
|
|
|
import com.uas.platform.b2b.model.PurchaseOrder;
|
|
|
+import com.uas.platform.b2b.model.PurchaseOrderChange;
|
|
|
import com.uas.platform.b2b.model.PurchaseProofing;
|
|
|
+import com.uas.platform.b2b.model.PurchaseProofingApproval;
|
|
|
+import com.uas.platform.b2b.model.PurchaseProofingSend;
|
|
|
import com.uas.platform.b2b.model.PurchaseReturn;
|
|
|
+import com.uas.platform.b2b.model.SaleARCheck;
|
|
|
+import com.uas.platform.b2b.model.SaleQuotation;
|
|
|
+import com.uas.platform.b2b.model.SaleSend;
|
|
|
import com.uas.search.b2b.model.PageParams;
|
|
|
import com.uas.search.b2b.model.SPage;
|
|
|
import com.uas.search.b2b.service.SearchService.Table_name;
|
|
|
@@ -74,6 +90,9 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
@Autowired
|
|
|
private PurchaseMRBDao purchaseMRBDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PurchaseOrderChangeDao purchaseOrderChangeDao;
|
|
|
+
|
|
|
@Autowired
|
|
|
private PurchaseProofingDao purchaseProofingDao;
|
|
|
|
|
|
@@ -86,6 +105,27 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
@Autowired
|
|
|
private MakeOrderChangeDao makeOrderChangeDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MakeReturnDao makeReturnDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SaleQuotationDao saleQuotationDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SaleSendDao saleSendDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PurchaseNoticeDao purchaseNoticeDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PurchaseProofingApprovalDao purchaseProofingApprovalDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PurchaseProofingSendDao purchaseProofingSendDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SaleARCheckDao saleARCheckDao;
|
|
|
+
|
|
|
/**
|
|
|
* 采购订单
|
|
|
*/
|
|
|
@@ -155,7 +195,7 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public SPage<PurchaseBadIn> searchPuchaseBadInIds(String keyword, PageParams pageParams) {
|
|
|
+ public SPage<PurchaseBadIn> searchPurchaseBadInIds(String keyword, PageParams pageParams) {
|
|
|
SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PURC$BADIN, pageParams);
|
|
|
return toSPage(idsPage, purchaseBadInDao.findAll(idsPage.getContent()));
|
|
|
}
|
|
|
@@ -196,6 +236,15 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
return toSPage(idsPage, purchaseMRBDao.findAll(idsPage.getContent()));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 采购变更单
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<PurchaseOrderChange> searchPurchaseOrderChangeIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PURC$PROOFING, pageParams);
|
|
|
+ return toSPage(idsPage, purchaseOrderChangeDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 打样申请单
|
|
|
*/
|
|
|
@@ -214,16 +263,85 @@ public class SearchServiceImpl implements com.uas.platform.b2b.search.SearchServ
|
|
|
return toSPage(idsPage, purchaseReturnDao.findAll(idsPage.getContent()));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 委外验收单
|
|
|
+ */
|
|
|
@Override
|
|
|
public SPage<MakeAccept> searchMakeAcceptIds(String keyword, PageParams pageParams) {
|
|
|
SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PURC$RETURN, pageParams);
|
|
|
return toSPage(idsPage, makeAcceptDao.findAll(idsPage.getContent()));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 委外变更单
|
|
|
+ */
|
|
|
@Override
|
|
|
public SPage<MakeOrderChange> searchMakeOrderChangeIds(String keyword, PageParams pageParams) {
|
|
|
SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.MAKE$CHANGES, pageParams);
|
|
|
return toSPage(idsPage, makeOrderChangeDao.findAll(idsPage.getContent()));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 委外验退单
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<MakeReturn> searchMakeReturnIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.MAKE$RETURN, pageParams);
|
|
|
+ return toSPage(idsPage, makeReturnDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 主动报价单
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<SaleQuotation> searchSaleQuotationIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.SALE$QUOTATION, pageParams);
|
|
|
+ return toSPage(idsPage, saleQuotationDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 平台发货单
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<SaleSend> searchSaleSendIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.SALE$SEND, pageParams);
|
|
|
+ return toSPage(idsPage, saleSendDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 平台发货提醒单
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<PurchaseNotice> searchPurchaseNoticeIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PURC$NOTICE, pageParams);
|
|
|
+ return toSPage(idsPage, purchaseNoticeDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 客户收到供应商的送样后的认定单: purc$proofingapproval
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<PurchaseProofingApproval> searchPurchaseProofingApprovalIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PURC$PROOFINGAPPROVAL, pageParams);
|
|
|
+ return toSPage(idsPage, purchaseProofingApprovalDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 针对客户的打样申请单: purc$proofingsend
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<PurchaseProofingSend> searchPurchaseProofingSendIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.PURC$PROOFINGSEND, pageParams);
|
|
|
+ return toSPage(idsPage, purchaseProofingSendDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 应付对账单: sale$archeck
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SPage<SaleARCheck> searchSaleARCheckIds(String keyword, PageParams pageParams) {
|
|
|
+ SPage<Long> idsPage = searchService.searchIds(keyword, Table_name.SALE$ARCHECK, pageParams);
|
|
|
+ return toSPage(idsPage, saleARCheckDao.findAll(idsPage.getContent()));
|
|
|
+ }
|
|
|
+
|
|
|
}
|