Merge branch 'master' into Willy

This commit is contained in:
b110212000 2021-07-16 16:32:03 +08:00
commit b2ea9469f7
5 changed files with 11 additions and 6 deletions

View File

@ -500,9 +500,9 @@ namespace SolarPower.Controllers
/// </summary> /// </summary>
/// <param name="post"></param> /// <param name="post"></param>
/// <returns></returns> /// <returns></returns>
public async Task<ApiResult<OperationRecode>> SaveOperationRecode([FromForm] PostOperationRecode post) public async Task<ApiResult<int>> SaveOperationRecode([FromForm] PostOperationRecode post)
{ {
ApiResult<OperationRecode> apiResult = new ApiResult<OperationRecode>(); ApiResult<int> apiResult = new ApiResult<int>();
OperationRecode operationRecode = null; OperationRecode operationRecode = null;
@ -570,6 +570,7 @@ namespace SolarPower.Controllers
apiResult.Code = "0000"; apiResult.Code = "0000";
apiResult.Msg = "儲存成功"; apiResult.Msg = "儲存成功";
apiResult.Data = id;
#endregion #endregion
} }
else else
@ -648,6 +649,7 @@ namespace SolarPower.Controllers
apiResult.Code = "0000"; apiResult.Code = "0000";
apiResult.Msg = "儲存成功"; apiResult.Msg = "儲存成功";
apiResult.Data = operationRecode.Id;
#endregion #endregion
} }
} }

View File

@ -28,8 +28,8 @@ namespace SolarPower.Quartz.Jobs
#region step1. #region step1.
logger.LogInformation("【CalcInverter15minJob】【開始取得電站資料】"); logger.LogInformation("【CalcInverter15minJob】【開始取得電站資料】");
var powerStations = await powerStationRepository.GetAllAsync(); var powerStations = await powerStationRepository.GetAllAsync();
logger.LogInformation("【CalcPowerStationJob】【取得成功電站資料】"); logger.LogInformation("【CalcInverter15minJob】【取得成功電站資料】");
logger.LogInformation("【CalcPowerStationJob】【電站資料】 - {0}", System.Text.Json.JsonSerializer.Serialize(powerStations)); logger.LogInformation("【CalcInverter15minJob】【電站資料】 - {0}", System.Text.Json.JsonSerializer.Serialize(powerStations));
#endregion #endregion
List<InverterHistory> calcInverter15mins = new List<InverterHistory>(); List<InverterHistory> calcInverter15mins = new List<InverterHistory>();

View File

@ -227,7 +227,7 @@ namespace SolarPower.Repository.Implement
if (filter.WorkType > 0) if (filter.WorkType > 0)
{ {
filter.WorkType -= 1; filter.WorkType -= 1;
sql += @" AND opr.WorkType = @WorkType"; sql += @" AND opr.WorkType = @WorkType ORDER BY CreatedAt DESC";
} }
else else
{ {

View File

@ -495,6 +495,7 @@
$(".fix-div").show(); $(".fix-div").show();
$("#recode-form").trigger("reset"); $("#recode-form").trigger("reset");
$("input[name=status_modal][value='" + 0 + "']").prop('checked', true); //狀態 $("input[name=status_modal][value='" + 0 + "']").prop('checked', true); //狀態
$("#recode_files_div > .row").empty();
$("#recode-form-modal").modal(); $("#recode-form-modal").modal();
} }
@ -738,6 +739,8 @@
if (myDropzone.files.length > 0) { if (myDropzone.files.length > 0) {
selected_id = rel.data;
myDropzone.processQueue(); myDropzone.processQueue();
myDropzone.on("successmultiple", function (file, rel) { myDropzone.on("successmultiple", function (file, rel) {

View File

@ -6,7 +6,7 @@
"Microsoft.Hosting.Lifetime": "Information" "Microsoft.Hosting.Lifetime": "Information"
} }
}, },
"LoginExpireMinute": 60, //?n?J???????A???(??) "LoginExpireMinute": 60, //()
"DBConfig": { "DBConfig": {
"Server": "MVgHWzR3rGDgD57TUoFunA==", "Server": "MVgHWzR3rGDgD57TUoFunA==",
"port": "r4AoXMUDodcQjIzofGNCcg==", "port": "r4AoXMUDodcQjIzofGNCcg==",