Browse Source

更新版本

master
赵新宇 7 days ago
parent
commit
1aac16f705
  1. 2
      API/TaskManager.Entity/Entity.cs
  2. 5
      API/Wood.Admin.WebApi/Startup.cs
  3. 15
      API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs

2
API/TaskManager.Entity/Entity.cs

@ -541,10 +541,12 @@ namespace TaskManager.Entity
[ExporterHeader(DisplayName = "版本号")]
public int Version { get; set; } =0;
[MaxLength(50)]
[JsonProperty("omterior")]
[ExporterHeader(DisplayName = "内外饰")] // 推测拼写错误并自定义显示名
public string? Omterior { get; set; } = String.Empty;
[MaxLength(50)]
[JsonProperty("salseDepartment")]
[ExporterHeader(DisplayName = "销售部门")] // 推测拼写错误并自定义显示名
public string? SalseDepartment { get; set; } = String.Empty;

5
API/Wood.Admin.WebApi/Startup.cs

@ -74,10 +74,6 @@ namespace Wood.Admin.WebApi
GlobalContext.JwtConfig = Configuration.GetSection("JwtConfig").Get<JwtConfig>()!;
GlobalContext.Services = services;
GlobalContext.Configuration = Configuration;
//初始化 eventbus
services.AddEventBus();
@ -93,6 +89,7 @@ namespace Wood.Admin.WebApi
// 配置 DbContext 使用 SQL Server 连接字符串
services.AddDbContext<JobDbContext>(options =>
options.UseSqlServer(GlobalContext.SystemConfig.CustomerDb));
// 配置 Hangfire 使用 SQL Server 存储
services.AddHangfire(

15
API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs

@ -87,17 +87,11 @@ namespace TaskManager.Controllers
new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
Converters= { new DecimalTrimConverter() },
WriteIndented = true // 可选,用于格式化输出
Converters = { new DecimalTrimConverter() },
WriteIndented = false // 可选,用于格式化输出
}
);
inputjson = RemoveWhitespace(inputjson);
//inputjson = RemoveWhitespace(inputjson);
var content = await Post(Url, Path, inputjson,taskId,version);
if (!string.IsNullOrEmpty(content))
{
@ -212,8 +206,7 @@ namespace TaskManager.Controllers
{
_jobDbContext.BulkUpdate(records);
sub.SyncedPageCount = i;
if (result.data.totalGet == total)
if (i == total)
{
sub.WriteState = true;
_jobDbContext.Set<TaskSub>().Update(sub);

Loading…
Cancel
Save