diff --git a/Entity/DbModel/Station/BatteryInfo.cs b/Entity/DbModel/Station/BatteryInfo.cs new file mode 100644 index 0000000..ebd405a --- /dev/null +++ b/Entity/DbModel/Station/BatteryInfo.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace Entity.DbModel.Station +{ + /// + ///电池信息表 + /// + [SugarTable("battery_info")] + public partial class BatteryInfo + { + public BatteryInfo(){ + + + } + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="created_by")] + public string CreatedBy {get;set;} + + /// + /// Desc:创建时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="created_time")] + public DateTime? CreatedTime {get;set;} + + /// + /// Desc:更新人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_by")] + public string UpdatedBy {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_time")] + public DateTime? UpdatedTime {get;set;} + + } +} diff --git a/Entity/DbModel/Station/BinInfo.cs b/Entity/DbModel/Station/BinInfo.cs new file mode 100644 index 0000000..73e1c19 --- /dev/null +++ b/Entity/DbModel/Station/BinInfo.cs @@ -0,0 +1,195 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace Entity.DbModel.Station +{ + /// + ///仓位信息表 + /// + [SugarTable("bin_info")] + public partial class BinInfo + { + public BinInfo(){ + + + } + /// + /// Desc:id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:仓位编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="no")] + public string No {get;set;} + + /// + /// Desc:仓位编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public string Code {get;set;} + + /// + /// Desc:仓位名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string Name {get;set;} + + /// + /// Desc:电池编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="battery_no")] + public string BatteryNo {get;set;} + + /// + /// Desc:充电机编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="charger_no")] + public string ChargerNo {get;set;} + + /// + /// Desc:充电枪编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="charger_gun_no")] + public string ChargerGunNo {get;set;} + + /// + /// Desc:水冷编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="water_cool_no")] + public string WaterCoolNo {get;set;} + + /// + /// Desc:是否有电插头;0-无电插头;1-有电插头 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="elec_plugin_flag")] + public int? ElecPluginFlag {get;set;} + + /// + /// Desc:电插头状态;0-未知;1-已经连接;2-未连接 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="elec_plugin_status")] + public string ElecPluginStatus {get;set;} + + /// + /// Desc:是否有水插头;0-无水插头;1-有水插头 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="water_plugin_flag")] + public string WaterPluginFlag {get;set;} + + /// + /// Desc:预约锁定;0-未锁定;1-锁定 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="amt_lock")] + public string AmtLock {get;set;} + + /// + /// Desc:soc + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="soc")] + public decimal? Soc {get;set;} + + /// + /// Desc:soe + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="soe")] + public decimal? Soe {get;set;} + + /// + /// Desc:soh + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="soh")] + public decimal? Soh {get;set;} + + /// + /// Desc:电池入仓顺序 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="battery_enter_seq")] + public int? BatteryEnterSeq {get;set;} + + /// + /// Desc:充电状态;0-未知;1-正在充电;2-无电池;3-禁用 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="charge_status")] + public int? ChargeStatus {get;set;} + + /// + /// Desc:仓位状态;0-禁用;1-启用 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="status")] + public int? Status {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="created_by")] + public string CreatedBy {get;set;} + + /// + /// Desc:创建时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="created_time")] + public DateTime? CreatedTime {get;set;} + + /// + /// Desc:更新人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_by")] + public string UpdatedBy {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_time")] + public DateTime? UpdatedTime {get;set;} + + } +} diff --git a/Entity/DbModel/Station/EquipInfo.cs b/Entity/DbModel/Station/EquipInfo.cs new file mode 100644 index 0000000..d4129ef --- /dev/null +++ b/Entity/DbModel/Station/EquipInfo.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace Entity.DbModel.Station +{ + /// + ///设备信息表 + /// + [SugarTable("equip_info")] + public partial class EquipInfo + { + public EquipInfo(){ + + + } + /// + /// Desc:id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:设备编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public string Code {get;set;} + + /// + /// Desc:设备名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string Name {get;set;} + + /// + /// Desc:设备类型编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type_code")] + public int? TypeCode {get;set;} + + /// + /// Desc:设备状态;0-未知;1-正常;2-报警;3-停用 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="status")] + public int? Status {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="created_by")] + public string CreatedBy {get;set;} + + /// + /// Desc:创建时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="created_time")] + public DateTime? CreatedTime {get;set;} + + /// + /// Desc:更新人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_by")] + public string UpdatedBy {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_time")] + public DateTime? UpdatedTime {get;set;} + + } +} diff --git a/Entity/DbModel/Station/EquipNetInfo.cs b/Entity/DbModel/Station/EquipNetInfo.cs new file mode 100644 index 0000000..747a64d --- /dev/null +++ b/Entity/DbModel/Station/EquipNetInfo.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace Entity.DbModel.Station +{ + /// + ///设备通信信息表 + /// + [SugarTable("equip_net_info")] + public partial class EquipNetInfo + { + public EquipNetInfo(){ + + + } + /// + /// Desc:设备id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:设备编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public string Code {get;set;} + + /// + /// Desc:连接地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="net_addr")] + public string NetAddr {get;set;} + + /// + /// Desc:连接端口 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="net_port")] + public string NetPort {get;set;} + + /// + /// Desc:目的地址;(十六进制,如0a,02,03,04) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="dest_addr")] + public string DestAddr {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="created_by")] + public string CreatedBy {get;set;} + + /// + /// Desc:创建时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="created_time")] + public DateTime? CreatedTime {get;set;} + + /// + /// Desc:更新人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_by")] + public string UpdatedBy {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_time")] + public DateTime? UpdatedTime {get;set;} + + } +} diff --git a/Entity/DbModel/Station/EquipType.cs b/Entity/DbModel/Station/EquipType.cs new file mode 100644 index 0000000..7f9b447 --- /dev/null +++ b/Entity/DbModel/Station/EquipType.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace Entity.DbModel.Station +{ + /// + ///设备类型表 + /// + [SugarTable("equip_type")] + public partial class EquipType + { + public EquipType(){ + + + } + /// + /// Desc:id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:类型编码;0-充电机;1-电表 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public int? Code {get;set;} + + /// + /// Desc:类型名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string Name {get;set;} + + /// + /// Desc:是否启用;0-禁用;1-启用 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="enabled")] + public int? Enabled {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="created_by")] + public string CreatedBy {get;set;} + + /// + /// Desc:创建时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="created_time")] + public DateTime? CreatedTime {get;set;} + + /// + /// Desc:更新人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_by")] + public string UpdatedBy {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="updated_time")] + public DateTime? UpdatedTime {get;set;} + + } +} diff --git a/Repository/Station/BatteryInfoRepository.cs b/Repository/Station/BatteryInfoRepository.cs new file mode 100644 index 0000000..19a0127 --- /dev/null +++ b/Repository/Station/BatteryInfoRepository.cs @@ -0,0 +1,12 @@ +using Entity.DbModel.Station; +using HybirdFrameworkCore.Autofac.Attribute; +using SqlSugar; + +namespace Repository.Station; +[Scope("SingleInstance")] +public class BatteryInfoRepository:BaseRepository +{ + public BatteryInfoRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) + { + } +} \ No newline at end of file diff --git a/Repository/Station/BinInfoRepository.cs b/Repository/Station/BinInfoRepository.cs new file mode 100644 index 0000000..9518b26 --- /dev/null +++ b/Repository/Station/BinInfoRepository.cs @@ -0,0 +1,12 @@ +using Entity.DbModel.Station; +using HybirdFrameworkCore.Autofac.Attribute; +using SqlSugar; + +namespace Repository.Station; +[Scope("SingleInstance")] +public class BinInfoRepository:BaseRepository +{ + public BinInfoRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) + { + } +} \ No newline at end of file diff --git a/Repository/Station/EquipInfoRepository.cs b/Repository/Station/EquipInfoRepository.cs new file mode 100644 index 0000000..1080680 --- /dev/null +++ b/Repository/Station/EquipInfoRepository.cs @@ -0,0 +1,12 @@ +using Entity.DbModel.Station; +using HybirdFrameworkCore.Autofac.Attribute; +using SqlSugar; + +namespace Repository.Station; +[Scope("SingleInstance")] +public class EquipInfoRepository:BaseRepository +{ + public EquipInfoRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) + { + } +} \ No newline at end of file diff --git a/Repository/Station/EquipNetInfoRepository.cs b/Repository/Station/EquipNetInfoRepository.cs new file mode 100644 index 0000000..46a686b --- /dev/null +++ b/Repository/Station/EquipNetInfoRepository.cs @@ -0,0 +1,12 @@ +using Entity.DbModel.Station; +using HybirdFrameworkCore.Autofac.Attribute; +using SqlSugar; + +namespace Repository.Station; +[Scope("SingleInstance")] +public class EquipNetInfoRepository:BaseRepository +{ + public EquipNetInfoRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) + { + } +} \ No newline at end of file diff --git a/Repository/Station/EquipTypeRepository.cs b/Repository/Station/EquipTypeRepository.cs new file mode 100644 index 0000000..9c5e996 --- /dev/null +++ b/Repository/Station/EquipTypeRepository.cs @@ -0,0 +1,12 @@ +using Entity.DbModel.Station; +using HybirdFrameworkCore.Autofac.Attribute; +using SqlSugar; + +namespace Repository.Station; +[Scope("SingleInstance")] +public class EquipTypeRepository:BaseRepository +{ + public EquipTypeRepository(ISqlSugarClient sqlSugar) : base(sqlSugar) + { + } +} \ No newline at end of file