erp
This commit is contained in:
@@ -183,8 +183,6 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
var materials = _memoryCache.Get<List<ErpMaterialDto>>(cache_key);
|
var materials = _memoryCache.Get<List<ErpMaterialDto>>(cache_key);
|
||||||
if (materials == null || materials.Count == 0)
|
if (materials == null || materials.Count == 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
//2.先登录金蝶-拿到token
|
//2.先登录金蝶-拿到token
|
||||||
var token_result = await this.Init();
|
var token_result = await this.Init();
|
||||||
if (!token_result.IsSuccess)
|
if (!token_result.IsSuccess)
|
||||||
@@ -201,21 +199,6 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
//3.使用组织:只查询“深圳市元创时代科技有限公司”这个组织;组织ID=100008--固定值查询(测试端和正式是一样的)
|
//3.使用组织:只查询“深圳市元创时代科技有限公司”这个组织;组织ID=100008--固定值查询(测试端和正式是一样的)
|
||||||
param.FilterString = "FDocumentStatus='C' and FForbidStatus='A' and FUseOrgId=100008";
|
param.FilterString = "FDocumentStatus='C' and FForbidStatus='A' and FUseOrgId=100008";
|
||||||
param.OrderString = "FCreateDate ASC";
|
param.OrderString = "FCreateDate ASC";
|
||||||
//3.获取金蝶物料:拼接参数和条件
|
|
||||||
var query = new ErpBillQueryDto(token_result.Data);
|
|
||||||
var param = new ErpBillQueryParamDto(FormIdParam.BD_MATERIAL.ToString());
|
|
||||||
param.FieldKeys = "FMATERIALID,FName,FNumber,FSpecification,FForbidStatus,FUseOrgId";
|
|
||||||
param.Limit = 10000;
|
|
||||||
Console.Write("请输入第几行:");
|
|
||||||
var row = Console.ReadLine();
|
|
||||||
param.StartRow = (Convert.ToInt32(row) * param.Limit);
|
|
||||||
|
|
||||||
//查询条件:备注其中的条件值以金蝶的值为准!!!
|
|
||||||
//1.审核状态:已审核
|
|
||||||
//2.禁用状态:A否,B是
|
|
||||||
//3.使用组织:只查询“深圳市元创时代科技有限公司”这个组织;组织ID=100008--固定值查询(测试端和正式是一样的)
|
|
||||||
param.FilterString = "FDocumentStatus='C' and FForbidStatus='A' and FUseOrgId=100008";
|
|
||||||
param.OrderString = "FCreateDate ASC";
|
|
||||||
|
|
||||||
//4.循环拿金蝶数据
|
//4.循环拿金蝶数据
|
||||||
bool isHave = true;
|
bool isHave = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user