Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liudong1993
Property
Commits
9114355e
Commit
9114355e
authored
Jul 27, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fc9a020a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
RB_Supplies_CheckDetailRepository.cs
....Repository/Supplies/RB_Supplies_CheckDetailRepository.cs
+2
-2
SuppliesController.cs
Property.WebApi/Controllers/Property/SuppliesController.cs
+3
-3
No files found.
Property.Repository/Supplies/RB_Supplies_CheckDetailRepository.cs
View file @
9114355e
...
...
@@ -41,7 +41,7 @@ namespace Property.Repository
{
where
+=
" and cd."
+
nameof
(
RB_Supplies_CheckDetail_Extend
.
CheckStatus
)
+
"="
+
(
int
)
dmodel
.
CheckStatus
;
}
if
(
dmodel
.
DealStatus
>
=
0
)
if
(
dmodel
.
DealStatus
>
0
)
{
where
+=
" and cd."
+
nameof
(
RB_Supplies_CheckDetail_Extend
.
DealStatus
)
+
"="
+
dmodel
.
DealStatus
;
}
...
...
@@ -52,7 +52,7 @@ namespace Property.Repository
if
(
dmodel
.
IsSelectHaveInventory
==
1
)
{
where
+=
" and cd."
+
nameof
(
RB_Supplies_CheckDetail_Extend
.
InventoryNum
)
+
">0"
;
}
string
sql
=
$@" select cd.*,pi.Name as SuppliesName,pi.SuppliesNo,pi.SpecificationName from RB_Supplies_CheckDetail cd
string
sql
=
$@" select cd.*,pi.Name as SuppliesName,pi.SuppliesN
um as SuppliesN
o,pi.SpecificationName from RB_Supplies_CheckDetail cd
left join rb_supplies_material pi on cd.SuppliesId=pi.Id
{
where
}
order by cd.Id desc"
;
return
GetPage
<
RB_Supplies_CheckDetail_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
...
...
Property.WebApi/Controllers/Property/SuppliesController.cs
View file @
9114355e
...
...
@@ -1753,10 +1753,10 @@ namespace Property.WebApi.Controllers.User
x
.
ImageList
,
x
.
CheckEmpId
,
CheckEmpName
=
x
.
CheckEmpId
.
HasValue
&&
x
.
CheckEmpId
>
0
?
CacheManager
.
User
.
UserReidsCache
.
GetEmployee
(
x
.
CheckEmpId
)?.
EmName
:
""
,
CheckDate
=
x
.
CheckDate
.
HasValue
?
x
.
CheckDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
,
CheckDate
=
x
.
CheckDate
.
HasValue
?
x
.
CheckDate
.
Value
.
ToString
(
"yyyy-MM-dd
HH:mm:ss
"
)
:
""
,
DealStatus
=
x
.
DealStatus
??
0
,
UpdateBy
=
CacheManager
.
User
.
UserReidsCache
.
GetEmployee
(
x
.
UpdateBy
)?.
EmName
??
""
,
UpdateDate
=
x
.
UpdateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
//
UpdateBy = CacheManager.User.UserReidsCache.GetEmployee(x.UpdateBy)?.EmName ?? "",
//
UpdateDate = x.UpdateDate.Value.ToString("yyyy-MM-dd")
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment