This commit is contained in:
kamonwan taengsuk
2023-04-05 17:30:26 +07:00
parent 3672e009d2
commit 25de70ada1
2 changed files with 31 additions and 32 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@@ -28,7 +29,7 @@ namespace rmutr_report.Controllers
public IActionResult GetHrReport([FromRoute] string type,
[FromBody] durable_articles_three durable_articles_threes)
{
Console.WriteLine(durable_articles_threes.specification_data[0].data_detail[0].data_detail2);
var a1 = durable_articles_threes.data.Where(d => d.amount == d.amount)
.Sum(o => o.amount);
durable_articles_threes.total_amount = a1;