@ -238,6 +238,9 @@ namespace Entity.DbModel.Station
/// </summary>
[SugarColumn(ColumnName="swap_order_id")]
public int SwapOrderId {get;set;}
[SugarColumn(ColumnName="upload_time")]
public DateTime? UploadTime { get; set; }
}
@ -73,6 +73,7 @@ public class SwapOrderMgr
updateDbOrder.Add(swapOrder);
swapOrderReportClouds.TryGetValue(swapOrder.Id, out SwapOrderReportCloud value);
value.CloudReportStatus = 1;
value.UploadTime=DateTime.Now;
updateDbCloudReport.Add(value);
@ -40,3 +40,5 @@ CREATE TABLE `emeter_energy_change` (
`upload_flag` int DEFAULT NULL COMMENT '0未上传1上传',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='电表小时';
-- 添加换电类型
ALTER TABLE swap_order_report_cloud ADD `upload_time` datetime DEFAULT NULL COMMENT "上报时间" ;