文本长度改为1000
This commit is contained in:
parent
76d41d3c8a
commit
587ea507b4
138999
APT.Data.Migrations/Migrations/20260409064539_hmr2026040902.Designer.cs
generated
Normal file
138999
APT.Data.Migrations/Migrations/20260409064539_hmr2026040902.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,35 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026040902 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "COMPANY_DESCRIPTION",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "nvarchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(500)",
|
||||
oldMaxLength: 500,
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "COMPANY_DESCRIPTION",
|
||||
table: "T_FO_ENTERPRISE_INFORMATION_REGISTRATION",
|
||||
type: "nvarchar(500)",
|
||||
maxLength: 500,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(1000)",
|
||||
oldMaxLength: 1000,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -32961,8 +32961,8 @@ namespace APT.Data.Migrations.Migrations
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<string>("COMPANY_DESCRIPTION")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<string>("COMPANY_NAME")
|
||||
.HasMaxLength(50)
|
||||
|
||||
@ -1243,7 +1243,7 @@ builder.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.TYPE).HasMaxLength(50);
|
||||
builder.Property(t => t.ALLOW_NO).HasMaxLength(50);
|
||||
builder.Property(t => t.SAFE_ALLOW_NO).HasMaxLength(50);
|
||||
builder.Property(t => t.COMPANY_DESCRIPTION).HasMaxLength(500);
|
||||
builder.Property(t => t.COMPANY_DESCRIPTION).HasMaxLength(1000);
|
||||
builder.Ignore(t => t.PUBLISH);
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ namespace APT.MS.Domain.Entities.FO
|
||||
|
||||
[Description("公司简介")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(500)]
|
||||
[DataFieldLength(1000)]
|
||||
public string COMPANY_DESCRIPTION { get; set; }
|
||||
[Description("营业执照附件")]
|
||||
[FormFieldEdit]
|
||||
|
||||
@ -2208,7 +2208,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
//找安全总监
|
||||
var user = this.GetEntity<T_FM_USER>(t => t.ENABLE_STATUS == 0 && t.Nav_ApproveRole!=null && t.Nav_ApproveRole.NAME.Contains("安全总监"));
|
||||
//找营业期限或者采矿许可证有效期或者安全生产许可证有效期到期前3个月的数据
|
||||
var infos = this.GetEntities<T_FO_ENTERPRISE_INFORMATION_REGISTRATION>(t =>(t.WORK_END_DATE!=null&& t.WORK_END_DATE < dtThree) || (t.ALLOW_END_DATE != null && t.ALLOW_END_DATE < dtThree) || (t.SAFE_ALLOW_END_DATE != null && t.SAFE_ALLOW_END_DATE < dtThree), new BaseFilter(filter.OrgId));
|
||||
var infos = this.GetEntities<T_FO_ENTERPRISE_INFORMATION_REGISTRATION>(t =>(t.WORK_END_DATE!=null&& t.WORK_END_DATE < dtThree) || (t.ALLOW_END_DATE != null && t.ALLOW_END_DATE < dtThree) || (t.SAFE_ALLOW_END_DATE != null && t.SAFE_ALLOW_END_DATE < dtThree) && t.IS_SEND == false, new BaseFilter(filter.OrgId));
|
||||
if (user != null && infos != null && infos.Any() && dt.Hour == 8)//每小时跑批,只在8点触发
|
||||
{
|
||||
foreach (var item in infos)
|
||||
@ -2229,10 +2229,13 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
var notice = NotificationTaskService.InsertUserNoticeTaskModel(msg, item.ID, item.ORG_ID, user.ID, user.NAME, DateTime.Now,
|
||||
DateTime.Now.AddDays(2), (int)FMNoticeTypeEnum.今日提醒, "PF135");
|
||||
notices.Add(notice);
|
||||
item.IS_SEND = true;
|
||||
}
|
||||
}
|
||||
UnifiedCommit(() =>
|
||||
{
|
||||
if (infos != null && infos.Any())
|
||||
BantchSaveEntityNoCommit(infos);
|
||||
if (notices != null && notices.Any())
|
||||
BantchSaveEntityNoCommit(notices);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user