You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Admin.Core.Api.PLTBusiness.Entity;
|
|
|
|
|
using Admin.Core.IService;
|
|
|
|
|
using Admin.Core.Model;
|
|
|
|
|
using Admin.Core.Service;
|
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
|
using RabbitMQ.Client;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Security.Policy;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Admin.Core.Api.PLTBusiness
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public class XlBusiness
|
|
|
|
|
{
|
|
|
|
|
private readonly Ixl_materialServices _xl_materialService;
|
|
|
|
|
|
|
|
|
|
public XlBusiness(Ixl_materialServices xl_materialService)
|
|
|
|
|
{
|
|
|
|
|
_xl_materialService = xl_materialService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<bool> InsertNewMaterialData(List<MaterialRecordListItem> list)
|
|
|
|
|
{
|
|
|
|
|
List<xl_material> mlist = new List<xl_material>();
|
|
|
|
|
mlist = await _xl_materialService.xlMaterialList();
|
|
|
|
|
bool state = await _xl_materialService.xlUpdateMaterial("4cbdaa3913a54092bff72e09f13e633f"
|
|
|
|
|
, "123412421567"
|
|
|
|
|
, "更新213214测试测试"
|
|
|
|
|
, 1
|
|
|
|
|
, DateTime.Now);
|
|
|
|
|
//foreach (var mesItem in list)
|
|
|
|
|
//{
|
|
|
|
|
// foreach(var mItem in mlist)
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|