JToken 无默认构造函数,显式指定映射策略避免 Mapster

This commit is contained in:
ChenYi 2026-03-27 10:24:55 +08:00
parent 82e662c867
commit a49912ec48
4 changed files with 8 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Host=192.168.111.174;Port=5432;Database=jisheiotprodb68;Username=postgres;Password=JiShe!aqG#5kGgh&0;Encoding=UTF8;Pooling=true;Pooling=true;Minimum Pool Size=5;Maximum Pool Size=100;" "Default": "Host=192.168.111.174;Port=5432;Database=jisheiotprodb58;Username=postgres;Password=JiShe!aqG#5kGgh&0;Encoding=UTF8;Pooling=true;Pooling=true;Minimum Pool Size=5;Maximum Pool Size=100;"
}, },
"IoTDBOptions": { "IoTDBOptions": {
"UserName": "root", "UserName": "root",

View File

@ -14,7 +14,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace JiShe.IoT.Migrations namespace JiShe.IoT.Migrations
{ {
[DbContext(typeof(IoTDbContext))] [DbContext(typeof(IoTDbContext))]
[Migration("20260325090415_InitialCreate")] [Migration("20260326023314_InitialCreate")]
partial class InitialCreate partial class InitialCreate
{ {
/// <inheritdoc /> /// <inheritdoc />
@ -838,8 +838,8 @@ namespace JiShe.IoT.Migrations
.HasColumnType("timestamp with time zone") .HasColumnType("timestamp with time zone")
.HasComment("最后在线时间"); .HasComment("最后在线时间");
b.Property<int?>("NeedEquipmentProductionPlan") b.Property<bool?>("NeedEquipmentProductionPlan")
.HasColumnType("integer") .HasColumnType("boolean")
.HasComment("是否需要设备生产计划"); .HasComment("是否需要设备生产计划");
b.Property<int?>("OSACreatorId") b.Property<int?>("OSACreatorId")
@ -871,7 +871,6 @@ namespace JiShe.IoT.Migrations
.HasComment("备注"); .HasComment("备注");
b.Property<string>("SimCardInfo") b.Property<string>("SimCardInfo")
.IsRequired()
.HasColumnType("jsonb") .HasColumnType("jsonb")
.HasComment("SIM卡信息"); .HasComment("SIM卡信息");

View File

@ -762,10 +762,10 @@ namespace JiShe.IoT.Migrations
UpgradeDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true, comment: "升级日期"), UpgradeDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true, comment: "升级日期"),
SubDeviceCapacity = table.Column<int>(type: "integer", nullable: false, defaultValue: 64, comment: "子设备容量"), SubDeviceCapacity = table.Column<int>(type: "integer", nullable: false, defaultValue: 64, comment: "子设备容量"),
ReadingMode = table.Column<int>(type: "integer", nullable: false, defaultValue: 1, comment: "抄读模式"), ReadingMode = table.Column<int>(type: "integer", nullable: false, defaultValue: 1, comment: "抄读模式"),
SimCardInfo = table.Column<string>(type: "jsonb", nullable: false, comment: "SIM卡信息"), SimCardInfo = table.Column<string>(type: "jsonb", nullable: true, comment: "SIM卡信息"),
EncryptionType = table.Column<int>(type: "integer", nullable: false, defaultValue: 1, comment: "设备加密类型,类型不同给,鉴权路径资源不同,默认为一型一密"), EncryptionType = table.Column<int>(type: "integer", nullable: false, defaultValue: 1, comment: "设备加密类型,类型不同给,鉴权路径资源不同,默认为一型一密"),
EncryptionMethod = table.Column<int>(type: "integer", nullable: false, defaultValue: 1, comment: "设备鉴权加密方式"), EncryptionMethod = table.Column<int>(type: "integer", nullable: false, defaultValue: 1, comment: "设备鉴权加密方式"),
NeedEquipmentProductionPlan = table.Column<int>(type: "integer", nullable: true, comment: "是否需要设备生产计划"), NeedEquipmentProductionPlan = table.Column<bool>(type: "boolean", nullable: true, comment: "是否需要设备生产计划"),
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),

View File

@ -835,8 +835,8 @@ namespace JiShe.IoT.Migrations
.HasColumnType("timestamp with time zone") .HasColumnType("timestamp with time zone")
.HasComment("最后在线时间"); .HasComment("最后在线时间");
b.Property<int?>("NeedEquipmentProductionPlan") b.Property<bool?>("NeedEquipmentProductionPlan")
.HasColumnType("integer") .HasColumnType("boolean")
.HasComment("是否需要设备生产计划"); .HasComment("是否需要设备生产计划");
b.Property<int?>("OSACreatorId") b.Property<int?>("OSACreatorId")
@ -868,7 +868,6 @@ namespace JiShe.IoT.Migrations
.HasComment("备注"); .HasComment("备注");
b.Property<string>("SimCardInfo") b.Property<string>("SimCardInfo")
.IsRequired()
.HasColumnType("jsonb") .HasColumnType("jsonb")
.HasComment("SIM卡信息"); .HasComment("SIM卡信息");