For intervals there are now 2 fields in the times object: eta_interval_end and etd_interval_end
This commit is contained in:
parent
3e4ab3660f
commit
4106b9a0ef
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
//----------------------
|
//----------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Generated REST API Client Code Generator v1.9.8.0 on 02.04.2024 11:36:53
|
// Generated REST API Client Code Generator v1.9.8.0 on 03.04.2024 10:37:27
|
||||||
// Using the tool OpenAPI Generator v7.4.0
|
// Using the tool OpenAPI Generator v7.4.0
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//----------------------
|
//----------------------
|
||||||
@ -7781,10 +7781,11 @@ namespace BreCalClient.misc.Model
|
|||||||
/// <param name="participantType">participantType.</param>
|
/// <param name="participantType">participantType.</param>
|
||||||
/// <param name="ata">can be set by mooring if actual times are different from planned.</param>
|
/// <param name="ata">can be set by mooring if actual times are different from planned.</param>
|
||||||
/// <param name="atd">can be set by mooring if actual times are different from planned.</param>
|
/// <param name="atd">can be set by mooring if actual times are different from planned.</param>
|
||||||
/// <param name="intervalEnd">End of the interval for the times entry.</param>
|
/// <param name="etaIntervalEnd">Optional end of the interval for the times eta entry.</param>
|
||||||
|
/// <param name="etdIntervalEnd">Optional end of the interval for the times etd entry.</param>
|
||||||
/// <param name="created">Readonly field set by the database.</param>
|
/// <param name="created">Readonly field set by the database.</param>
|
||||||
/// <param name="modified">Readonly field set by the database.</param>
|
/// <param name="modified">Readonly field set by the database.</param>
|
||||||
public Times(int id = default(int), DateTime? etaBerth = default(DateTime?), bool? etaBerthFixed = default(bool?), DateTime? etdBerth = default(DateTime?), bool? etdBerthFixed = default(bool?), DateTime? lockTime = default(DateTime?), bool? lockTimeFixed = default(bool?), DateTime? zoneEntry = default(DateTime?), bool? zoneEntryFixed = default(bool?), DateTime? operationsStart = default(DateTime?), DateTime? operationsEnd = default(DateTime?), string remarks = default(string), int shipcallId = default(int), int participantId = default(int), int? berthId = default(int?), string berthInfo = default(string), bool? pierSide = default(bool?), int participantType = default(int), DateTime? ata = default(DateTime?), DateTime? atd = default(DateTime?), DateTime? intervalEnd = default(DateTime?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
|
public Times(int id = default(int), DateTime? etaBerth = default(DateTime?), bool? etaBerthFixed = default(bool?), DateTime? etdBerth = default(DateTime?), bool? etdBerthFixed = default(bool?), DateTime? lockTime = default(DateTime?), bool? lockTimeFixed = default(bool?), DateTime? zoneEntry = default(DateTime?), bool? zoneEntryFixed = default(bool?), DateTime? operationsStart = default(DateTime?), DateTime? operationsEnd = default(DateTime?), string remarks = default(string), int shipcallId = default(int), int participantId = default(int), int? berthId = default(int?), string berthInfo = default(string), bool? pierSide = default(bool?), int participantType = default(int), DateTime? ata = default(DateTime?), DateTime? atd = default(DateTime?), DateTime? etaIntervalEnd = default(DateTime?), DateTime? etdIntervalEnd = default(DateTime?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
|
||||||
{
|
{
|
||||||
this.ShipcallId = shipcallId;
|
this.ShipcallId = shipcallId;
|
||||||
this.ParticipantId = participantId;
|
this.ParticipantId = participantId;
|
||||||
@ -7806,7 +7807,8 @@ namespace BreCalClient.misc.Model
|
|||||||
this.ParticipantType = participantType;
|
this.ParticipantType = participantType;
|
||||||
this.Ata = ata;
|
this.Ata = ata;
|
||||||
this.Atd = atd;
|
this.Atd = atd;
|
||||||
this.IntervalEnd = intervalEnd;
|
this.EtaIntervalEnd = etaIntervalEnd;
|
||||||
|
this.EtdIntervalEnd = etdIntervalEnd;
|
||||||
this.Created = created;
|
this.Created = created;
|
||||||
this.Modified = modified;
|
this.Modified = modified;
|
||||||
}
|
}
|
||||||
@ -7928,11 +7930,17 @@ namespace BreCalClient.misc.Model
|
|||||||
[DataMember(Name = "atd", EmitDefaultValue = true)]
|
[DataMember(Name = "atd", EmitDefaultValue = true)]
|
||||||
public DateTime? Atd { get; set; }
|
public DateTime? Atd { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// End of the interval for the times entry
|
/// Optional end of the interval for the times eta entry
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>End of the interval for the times entry</value>
|
/// <value>Optional end of the interval for the times eta entry</value>
|
||||||
[DataMember(Name = "interval_end", EmitDefaultValue = true)]
|
[DataMember(Name = "eta_interval_end", EmitDefaultValue = true)]
|
||||||
public DateTime? IntervalEnd { get; set; }
|
public DateTime? EtaIntervalEnd { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Optional end of the interval for the times etd entry
|
||||||
|
/// </summary>
|
||||||
|
/// <value>Optional end of the interval for the times etd entry</value>
|
||||||
|
[DataMember(Name = "etd_interval_end", EmitDefaultValue = true)]
|
||||||
|
public DateTime? EtdIntervalEnd { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Readonly field set by the database
|
/// Readonly field set by the database
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -7973,7 +7981,8 @@ namespace BreCalClient.misc.Model
|
|||||||
sb.Append(" ParticipantType: ").Append(ParticipantType).Append("\n");
|
sb.Append(" ParticipantType: ").Append(ParticipantType).Append("\n");
|
||||||
sb.Append(" Ata: ").Append(Ata).Append("\n");
|
sb.Append(" Ata: ").Append(Ata).Append("\n");
|
||||||
sb.Append(" Atd: ").Append(Atd).Append("\n");
|
sb.Append(" Atd: ").Append(Atd).Append("\n");
|
||||||
sb.Append(" IntervalEnd: ").Append(IntervalEnd).Append("\n");
|
sb.Append(" EtaIntervalEnd: ").Append(EtaIntervalEnd).Append("\n");
|
||||||
|
sb.Append(" EtdIntervalEnd: ").Append(EtdIntervalEnd).Append("\n");
|
||||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||||
sb.Append(" Modified: ").Append(Modified).Append("\n");
|
sb.Append(" Modified: ").Append(Modified).Append("\n");
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
|
|||||||
@ -681,11 +681,16 @@ components:
|
|||||||
format: date-time
|
format: date-time
|
||||||
nullable: true
|
nullable: true
|
||||||
description: can be set by mooring if actual times are different from planned
|
description: can be set by mooring if actual times are different from planned
|
||||||
interval_end:
|
eta_interval_end:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
nullable: true
|
nullable: true
|
||||||
description: End of the interval for the times entry
|
description: Optional end of the interval for the times eta entry
|
||||||
|
etd_interval_end:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
nullable: true
|
||||||
|
description: Optional end of the interval for the times etd entry
|
||||||
created:
|
created:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
|
|||||||
@ -91,4 +91,5 @@ ADD CONSTRAINT `FK_HISTORY_USER`
|
|||||||
ALTER TABLE `bremen_calling_devel`.`times`
|
ALTER TABLE `bremen_calling_devel`.`times`
|
||||||
ADD COLUMN `ata` DATETIME NULL DEFAULT NULL COMMENT 'Relevant only for mooring, this field can be used to record actual ATA' AFTER `participant_type`,
|
ADD COLUMN `ata` DATETIME NULL DEFAULT NULL COMMENT 'Relevant only for mooring, this field can be used to record actual ATA' AFTER `participant_type`,
|
||||||
ADD COLUMN `atd` DATETIME NULL DEFAULT NULL COMMENT 'Relevant only for mooring, this field can be used to record actual ATD' AFTER `ata`,
|
ADD COLUMN `atd` DATETIME NULL DEFAULT NULL COMMENT 'Relevant only for mooring, this field can be used to record actual ATD' AFTER `ata`,
|
||||||
ADD COLUMN `interval_end` DATETIME NULL DEFAULT NULL COMMENT 'If this value is set the times are given as interval instead of a single point in time. The start time value depends on the participant type.' AFTER `atd`;
|
ADD COLUMN `eta_interval_end` DATETIME NULL DEFAULT NULL COMMENT 'If this value is set the times are given as interval instead of a single point in time. The start time value depends on the participant type.' AFTER `atd`;
|
||||||
|
ADD COLUMN `etd_interval_end` DATETIME NULL DEFAULT NULL COMMENT 'If this value is set the times are given as interval instead of a single point in time. The start time value depends on the participant type.' AFTER `eta_interval_end`;
|
||||||
@ -22,7 +22,7 @@ def GetTimes(options):
|
|||||||
commands = pydapper.using(pooledConnection)
|
commands = pydapper.using(pooledConnection)
|
||||||
data = commands.query("SELECT id, eta_berth, eta_berth_fixed, etd_berth, etd_berth_fixed, lock_time, lock_time_fixed, " +
|
data = commands.query("SELECT id, eta_berth, eta_berth_fixed, etd_berth, etd_berth_fixed, lock_time, lock_time_fixed, " +
|
||||||
"zone_entry, zone_entry_fixed, operations_start, operations_end, remarks, shipcall_id, participant_id, " +
|
"zone_entry, zone_entry_fixed, operations_start, operations_end, remarks, shipcall_id, participant_id, " +
|
||||||
"berth_id, berth_info, pier_side, participant_type, created, modified, ata, atd, interval_end FROM times " +
|
"berth_id, berth_info, pier_side, participant_type, created, modified, ata, atd, eta_interval_end, etd_interval_end FROM times " +
|
||||||
"WHERE times.shipcall_id = ?scid?", model=model.Times, param={"scid" : options["shipcall_id"]})
|
"WHERE times.shipcall_id = ?scid?", model=model.Times, param={"scid" : options["shipcall_id"]})
|
||||||
pooledConnection.close()
|
pooledConnection.close()
|
||||||
|
|
||||||
|
|||||||
@ -307,7 +307,8 @@ class TimesSchema(Schema):
|
|||||||
participant_type = fields.Int(Required = False, allow_none=True)
|
participant_type = fields.Int(Required = False, allow_none=True)
|
||||||
ata = fields.DateTime(Required = False, allow_none=True)
|
ata = fields.DateTime(Required = False, allow_none=True)
|
||||||
atd = fields.DateTime(Required = False, allow_none=True)
|
atd = fields.DateTime(Required = False, allow_none=True)
|
||||||
interval_end = fields.DateTime(Required = False, allow_none=True)
|
eta_interval_end = fields.DateTime(Required = False, allow_none=True)
|
||||||
|
etd_interval_end = fields.DateTime(Required = False, allow_none=True)
|
||||||
created = fields.DateTime(Required = False, allow_none=True)
|
created = fields.DateTime(Required = False, allow_none=True)
|
||||||
modified = fields.DateTime(Required = False, allow_none=True)
|
modified = fields.DateTime(Required = False, allow_none=True)
|
||||||
|
|
||||||
@ -347,7 +348,8 @@ class Times:
|
|||||||
shipcall_id: int
|
shipcall_id: int
|
||||||
ata: datetime
|
ata: datetime
|
||||||
atd: datetime
|
atd: datetime
|
||||||
interval_end: datetime
|
eta_interval_end: datetime
|
||||||
|
etd_interval_end: datetime
|
||||||
created: datetime
|
created: datetime
|
||||||
modified: datetime
|
modified: datetime
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user