MES.Service/Dto/webApi/ErpReturnWare.cs
@@ -14,4 +14,5 @@ public string? CreateBy { get; set; } public DateTime? CreateDate { get; set; } public string? Type { get; set; } public decimal? Over { get; set; } } MES.Service/Modes/MesReturnware.cs
@@ -61,6 +61,14 @@ [SugarColumn(ColumnName="CREATE_DATE" )] public DateTime? CreateDate { get; set; } [SugarColumn(IsIgnore = true)] public string? Type { get; set; } /// <summary> /// 创建时间 ///</summary> [SugarColumn(ColumnName = "OVER")] public decimal? Over { get; set; } } } MES.Service/bin/Debug/net8.0/MES.Service.dllBinary files differ
MES.Service/bin/Debug/net8.0/MES.Service.pdbBinary files differ
MES.Service/service/SysUpdateManager.cs
@@ -21,9 +21,9 @@ // 示例中直接返回硬编码的版本信息 return new VersionInfo { Version = "1.0.1", Version = "1.0.2", UpdateInfo = "1. 修复了一些已知问题\n2. 优化了用户体验\n3. 新增了一些功能", WgtUrl = "http://192.168.1.223:8085/updates/app_update_1.0.1.wgt", WgtUrl = "http://192.168.1.223:8085/updates/app_update_1.0.2.wgt", IsForceUpdate = false }; } MES.Service/service/Warehouse/MesReturnwareManager.cs
@@ -137,7 +137,8 @@ Remarks = dto.Remarks, CreateBy = dto.CreateBy, CreateDate = dto.CreateDate, Type = dto.Type Type = dto.Type, Over=dto.Over ?? 0 }; MES.Service/service/WomcaaManager.cs
@@ -241,27 +241,53 @@ public bool Delete(YFDelete data) { if (data == null) throw new ArgumentNullException(nameof(data)); if (string.IsNullOrWhiteSpace(data.FBillNo)) throw new ArgumentException("FBillNo 不能为空", nameof(data.FBillNo)); if (string.IsNullOrWhiteSpace(data.FBillTypeID)) throw new ArgumentException("FBillTypeID 不能为空", nameof(data.FBillTypeID)); return UseTransaction(db => { var update = db.Deleteable<Womcaa>() .Where(it => it.Caa001 == data.FBillNo && it.SrcBillType == data.FBillTypeID) .ExecuteCommand() > 0; // 删除主表数据 var deleteMain = db.Deleteable<Womcaa>() .Where(it => it.Caa001 == data.FBillNo && it.SrcBillType == data.FBillTypeID) .ExecuteCommand() > 0; var insertOrUpdate = db.Deleteable<Womcab>() .Where(it => it.Cab001 == data.FBillNo && it.Cab002 == data.FBillTypeID) .ExecuteCommand() > 0; // 删除子表数据 var deleteDetail = db.Deleteable<Womcab>() .Where(it => it.Cab001 == data.FBillNo && it.Cab002 == data.FBillTypeID) .ExecuteCommand() > 0; if (!deleteMain || !deleteDetail) throw new Exception("删除失败:主表或子表记录不存在"); // 调用存储过程进行后续处理 var inputParam1 = new SugarParameter("P_WORK_NO", data.FBillNo); var inputParam2 = new SugarParameter("P_WORK_TYPE", data.FBillTypeID); var outParam1 = new SugarParameter("C_RESULT", null, true); // 输出参数 var outParam2 = new SugarParameter("C_MSG", null, true); // 输出参数 if (update && insertOrUpdate) return 1; throw new NotImplementedException("删除失败"); db.Ado.ExecuteCommand( "BEGIN PRC_DELETE_DAA(:P_WORK_NO, :P_WORK_TYPE, :C_RESULT, :C_MSG); END;", inputParam1, inputParam2, outParam1, outParam2); int result = int.Parse((string)outParam1.Value); string message = outParam2.Value == DBNull.Value ? string.Empty : (string)outParam2.Value; if (result == 1) { //存储过程失败则事务进行回滚 db.Ado.RollbackTran(); throw new Exception(message); } return 1; }) > 0; } MESApplication/bin/Debug/net8.0/MES.Service.dllBinary files differ
MESApplication/bin/Debug/net8.0/MES.Service.pdbBinary files differ
MESApplication/bin/Debug/net8.0/MESApplication.deps.json
@@ -1412,10 +1412,7 @@ "SqlSugarCore": "5.1.4.158" }, "runtime": { "MES.Service.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } "MES.Service.dll": {} } } } MESApplication/bin/Debug/net8.0/MESApplication.dllBinary files differ
MESApplication/bin/Debug/net8.0/MESApplication.exeBinary files differ
MESApplication/bin/Debug/net8.0/MESApplication.pdbBinary files differ