change - 小料物料接口GUID时间自动获取

dep_wangsr
SoulStar 3 months ago
parent b1cc225b7c
commit 5e17e2126b

@ -325,7 +325,7 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Admin.Core.Api.xl_materialController.xlDownLoadMateralInfo"> <member name="M:Admin.Core.Api.xl_materialController.xlDownLoadMateralInfo(System.String,System.String)">
<summary> <summary>
小料同步MES物料信息 小料同步MES物料信息
</summary> </summary>

@ -247,14 +247,11 @@ namespace Admin.Core.Api
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
public async Task<MessageModel<bool>> xlDownLoadMateralInfo() public async Task<MessageModel<bool>> xlDownLoadMateralInfo(string materialCode, string materialName)
{ {
try try
{ {
string ss1 = Guid.NewGuid().ToString("N"); var result = await _xl_materialService.xlInsertMaterial(materialCode, materialName);
string ss2 = "0001";
var ss3 = "8114514";
var result = await _xl_materialService.xlInsertMaterial(ss1, ss2, ss3, DateTime.Now);
if (result) if (result)
{ {
return Success(result); return Success(result);

@ -31,6 +31,6 @@ namespace Admin.Core.IService
Task<MessageModel<bool>> MaterialVerification(string barCode); Task<MessageModel<bool>> MaterialVerification(string barCode);
Task<bool> xlInsertMaterial(string ID, string materialCode, string materialName, DateTime CreateDateTime); Task<bool> xlInsertMaterial(string materialCode, string materialName);
} }
} }

@ -692,16 +692,16 @@ namespace Admin.Core.Service
/// <param name="batch"></param> /// <param name="batch"></param>
/// <param name="productName"></param> /// <param name="productName"></param>
/// <returns></returns> /// <returns></returns>
public async Task<bool> xlInsertMaterial(string ID, string materialCode, string materialName, DateTime CreateDateTime) public async Task<bool> xlInsertMaterial(string materialCode, string materialName)
{ {
try try
{ {
xl_material xl_m = new xl_material() xl_material xl_m = new xl_material()
{ {
ID = ID, ID = Guid.NewGuid().ToString("N"),
Material_code = materialCode, Material_code = materialCode,
Material_name = materialName, Material_name = materialName,
CreateDateTime = CreateDateTime, CreateDateTime = DateTime.Now,
Remark = null, Remark = null,
Batch_number = null, Batch_number = null,
Barcode1 = null, Barcode1 = null,

Loading…
Cancel
Save