This commit is contained in:
parent
910dc53808
commit
67d88228c8
2 changed files with 7 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
|
|
||||||
var retirementOthers = await _context.RetirementOthers.AsQueryable()
|
var retirementOthers = await _context.RetirementOthers.AsQueryable()
|
||||||
.OrderByDescending(x => x.CreatedAt)
|
.OrderByDescending(x => x.CreatedAt)
|
||||||
.Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id)))))
|
// .Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id)))))
|
||||||
.Select(p => new
|
.Select(p => new
|
||||||
{
|
{
|
||||||
p.Id,
|
p.Id,
|
||||||
|
|
@ -721,7 +721,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
@ -742,7 +743,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
CommandExcecuteDate = _null,
|
CommandExcecuteDate = _null,
|
||||||
RemarkHorizontal = _null,
|
RemarkHorizontal = _null,
|
||||||
RemarkVertical = _null,
|
RemarkVertical = _null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Success(result);
|
return Success(result);
|
||||||
|
|
@ -927,7 +928,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
|
|
||||||
var retirementOuts = await _context.RetirementOuts.AsQueryable()
|
var retirementOuts = await _context.RetirementOuts.AsQueryable()
|
||||||
.OrderByDescending(x => x.CreatedAt)
|
.OrderByDescending(x => x.CreatedAt)
|
||||||
.Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id)))))
|
// .Where(x => rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id)))))
|
||||||
.Select(p => new
|
.Select(p => new
|
||||||
{
|
{
|
||||||
p.Id,
|
p.Id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue