| | |
| | | { |
| | | ["model"] = model |
| | | }; |
| | | LogService.Write("采购价格同步示例JsonConvert.SerializeObject(_jsonRoot):" + JsonConvert.SerializeObject(_jsonRoot)); |
| | | LogService.Write("采购价格同步示例:" + _jsonRoot); |
| | | //LogService.Write("采购价格同步示例JsonConvert.SerializeObject(_jsonRoot):" + JsonConvert.SerializeObject(_jsonRoot)); |
| | | //LogService.Write("采购价格同步示例:" + _jsonRoot); |
| | | //string clientUrl = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "ClientUrl");//K/3 Cloud 业务站点地址 |
| | | var client = new RestSharp.RestClient("http://61.130.182.102:18181/simoerAPI/"); |
| | | var requestPost = new RestRequest("Gy_MatePriceSup/SaveGy_MatePriceSupListApi", Method.POST); |
| | |
| | | { |
| | | ["model"] = model |
| | | }; |
| | | LogService.Write("付款条件同步示例JsonConvert.SerializeObject(_jsonRoot):" + JsonConvert.SerializeObject(_jsonRoot)); |
| | | //LogService.Write("付款条件同步示例JsonConvert.SerializeObject(_jsonRoot):" + JsonConvert.SerializeObject(_jsonRoot)); |
| | | LogService.Write("付款条件同步示例:" + _jsonRoot); |
| | | //string clientUrl = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "ClientUrl");//K/3 Cloud 业务站点地址 |
| | | var client = new RestSharp.RestClient("http://61.130.182.102:18181/simoerAPI/"); |
| | |
| | | sql = $@" |
| | | /*dialect*/ |
| | | select a.FUNITID as HItemID,a.FUNITID as HERPItemID,a.FNumber as HNumber,l.FName as HName,a.FNumber as HShortNumber,0 as HParentID |
| | | ,1 as HLevel,'true' as HEndFlag,case when a.FFORBIDSTATUS='A' then 'false' else 'true' end as HStopflag,'CLD-ERP导入' as HRemark,'未检测' as HMakeTime,'1' as HStandard,getdate() as HMakeTime,'true' as HStandard,a.FCREATEORGID as HCREATEORGID,a.FUSEORGID as HUSEORGID |
| | | ,1 as HLevel,'true' as HEndFlag,case when a.FFORBIDSTATUS='A' then 'false' else 'true' end as HStopflag,'CLD-ERP导入' as HRemark,'未检测' as HMakeTime,getdate() as HMakeTime,'true' as HStandard,a.FCREATEORGID as HCREATEORGID,a.FUSEORGID as HUSEORGID |
| | | from T_BD_UNIT a with(nolock) |
| | | inner join T_BD_UNIT_L l with(nolock) on a.FUNITID=l.FUNITID |
| | | Where a.FUNITID={id} |