順序依時間排序
This commit is contained in:
parent
e2148ff17a
commit
a946293f16
@ -36,6 +36,7 @@ namespace TCM_API.Controllers.lamiter
|
||||
var data = await(from a in _context.company_detail_table
|
||||
join b in _context.user_table on a.guid equals b.guid into joined
|
||||
from b in joined.DefaultIfEmpty()
|
||||
orderby a.data_create_time
|
||||
select new
|
||||
{
|
||||
company_name = a.company_name,
|
||||
|
@ -33,6 +33,7 @@ namespace TCM_API.Controllers.manage
|
||||
{
|
||||
|
||||
var data = await (from c in _context.health_detail_table
|
||||
orderby c.data_create_time
|
||||
select new
|
||||
{
|
||||
health_name = c.health_name,
|
||||
@ -52,15 +53,16 @@ namespace TCM_API.Controllers.manage
|
||||
{
|
||||
|
||||
var data = await (from a in _context.health_detail_table
|
||||
join b in _context.user_table on a.guid equals b.guid into joined
|
||||
from b in joined.DefaultIfEmpty() // LEFT JOIN
|
||||
where a.company_guid == guid
|
||||
select new
|
||||
{
|
||||
health_name = a.health_name,
|
||||
guid = a.guid,
|
||||
level = b.level
|
||||
}).ToListAsync();
|
||||
join b in _context.user_table on a.guid equals b.guid into joined
|
||||
from b in joined.DefaultIfEmpty() // LEFT JOIN
|
||||
where a.company_guid == guid
|
||||
orderby a.data_create_time
|
||||
select new
|
||||
{
|
||||
health_name = a.health_name,
|
||||
guid = a.guid,
|
||||
level = b.level
|
||||
}).ToListAsync();
|
||||
|
||||
return Ok(data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user