|
|
|
@ -44,7 +44,7 @@ public class KingdeeErpSyncServiceImpl implements IKingdeeErpSyncService {
|
|
|
|
|
String orderString = "";
|
|
|
|
|
int topRowCount = 0;
|
|
|
|
|
int startRow = 0;
|
|
|
|
|
int limit = 2000;
|
|
|
|
|
int limit = 100;
|
|
|
|
|
queryJson.put("FormId", formId);
|
|
|
|
|
queryJson.put("FieldKeys", fieldKeys);
|
|
|
|
|
queryJson.put("OrderString", orderString);
|
|
|
|
@ -77,13 +77,13 @@ public class KingdeeErpSyncServiceImpl implements IKingdeeErpSyncService {
|
|
|
|
|
JSONObject queryJson = new JSONObject();
|
|
|
|
|
String formId = "BD_Material";
|
|
|
|
|
String fieldKeys = "FMaterialId,FNumber,FName,FBaseUnitId,FSpecification,FNETWEIGHT,FGROSSWEIGHT," +
|
|
|
|
|
"FCreateDate,FModifyDate,FApproveDate,FCreateOrgId,FUseOrgId";
|
|
|
|
|
"FCreateDate,FModifyDate,FApproveDate,FCreateOrgId,FUseOrgId,FPurchasePriceUnitId";
|
|
|
|
|
// String filterString = "FNumber='98010102'";
|
|
|
|
|
String filterString = "";
|
|
|
|
|
String orderString = "";
|
|
|
|
|
int topRowCount = 0;
|
|
|
|
|
int startRow = 0;
|
|
|
|
|
int limit = 23;
|
|
|
|
|
int limit = 99;
|
|
|
|
|
queryJson.put("FormId", formId);
|
|
|
|
|
queryJson.put("FieldKeys", fieldKeys);
|
|
|
|
|
queryJson.put("FilterString", filterString);
|
|
|
|
@ -179,12 +179,15 @@ public class KingdeeErpSyncServiceImpl implements IKingdeeErpSyncService {
|
|
|
|
|
|
|
|
|
|
JSONObject queryJson = new JSONObject();
|
|
|
|
|
String formId = "SAL_SaleOrder";
|
|
|
|
|
String fieldKeys = "FID,FBillNo,FApproveDate,FSaleOrderEntry_FEntryID,FMaterialId.FNumber,FMaterialName,FQty,FModifyDate,FMinPlanDeliveryDate";
|
|
|
|
|
String fieldKeys = "FID,FBillNo,FApproveDate,FSaleOrderEntry_FEntryID,FMaterialId.FNumber,FMaterialName," +
|
|
|
|
|
"FQty,FModifyDate,FMinPlanDeliveryDate,FAuxPropId,FStockId,FOwnerId,FSaleDeptId,FPrice,FStockOrgId";
|
|
|
|
|
//
|
|
|
|
|
String filterString = "FNumber='98010102'";
|
|
|
|
|
filterString = "";
|
|
|
|
|
String orderString = "";
|
|
|
|
|
int topRowCount = 0;
|
|
|
|
|
int startRow = 0;
|
|
|
|
|
int limit = 2000;
|
|
|
|
|
int limit = 10;
|
|
|
|
|
queryJson.put("FormId", formId);
|
|
|
|
|
queryJson.put("FieldKeys", fieldKeys);
|
|
|
|
|
queryJson.put("FilterString", filterString);
|
|
|
|
@ -246,7 +249,8 @@ public class KingdeeErpSyncServiceImpl implements IKingdeeErpSyncService {
|
|
|
|
|
|
|
|
|
|
JSONObject queryJson = new JSONObject();
|
|
|
|
|
String formId = "PUR_PurchaseOrder";
|
|
|
|
|
String fieldKeys = "FID,FBillNo,FApproveDate,FDocumentStatus,FPOOrderEntry_FEntryID,FMaterialId.FNumber,FMaterialId.FName,FQty,FDeliveryDate";
|
|
|
|
|
String fieldKeys = "FID,FBillNo,FApproveDate,FDocumentStatus,FPOOrderEntry_FEntryID,FMaterialId.FNumber,FMaterialId.FName," +
|
|
|
|
|
"FQty,FDeliveryDate,FUnitId,FStockUnitID,FPriceUnitID,FAuxPropId,FSrcBillNo,FPurchaseOrgId,F_TOND_Base,FSupplierId";
|
|
|
|
|
String filterString = "";
|
|
|
|
|
String orderString = "";
|
|
|
|
|
int topRowCount = 0;
|
|
|
|
@ -272,7 +276,7 @@ public class KingdeeErpSyncServiceImpl implements IKingdeeErpSyncService {
|
|
|
|
|
// syncSupplierInfoFromErp();
|
|
|
|
|
// syncMaterialInfoFromErp();
|
|
|
|
|
// syncSaleOrderFromErp();
|
|
|
|
|
// syncPurchaseOrderFromErp();
|
|
|
|
|
syncPurchaseOrderFromErp();
|
|
|
|
|
// syncProjectInfoFromErp();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|