Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f91a1967
Commit
f91a1967
authored
Aug 25, 2022
by
季圣华
Browse files
优化入库出库明细接口的查询参数
parent
3a573284
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/controller/DepotHeadController.java
View file @
f91a1967
...
...
@@ -126,10 +126,10 @@ public class DepotHeadController {
String
[]
organArray
=
depotHeadService
.
getOrganArray
(
subType
,
""
);
beginTime
=
Tools
.
parseDayToTime
(
beginTime
,
BusinessConstants
.
DAY_FIRST_TIME
);
endTime
=
Tools
.
parseDayToTime
(
endTime
,
BusinessConstants
.
DAY_LAST_TIME
);
List
<
DepotHeadVo4InDetail
>
list
=
depotHeadService
.
findByAll
(
beginTime
,
endTime
,
type
,
creatorArray
,
organArray
,
materialParam
,
depotList
,
oId
,
number
,
remark
,
(
currentPage
-
1
)*
pageSize
,
pageSize
);
int
total
=
depotHeadService
.
findByAllCount
(
beginTime
,
endTime
,
type
,
creatorArray
,
organArray
,
materialParam
,
depotList
,
oId
,
number
,
remark
);
List
<
DepotHeadVo4InDetail
>
list
=
depotHeadService
.
findByAll
(
beginTime
,
endTime
,
type
,
creatorArray
,
organArray
,
StringUtil
.
toNull
(
materialParam
)
,
depotList
,
oId
,
StringUtil
.
toNull
(
number
)
,
remark
,
(
currentPage
-
1
)*
pageSize
,
pageSize
);
int
total
=
depotHeadService
.
findByAllCount
(
beginTime
,
endTime
,
type
,
creatorArray
,
organArray
,
StringUtil
.
toNull
(
materialParam
)
,
depotList
,
oId
,
StringUtil
.
toNull
(
number
)
,
remark
);
map
.
put
(
"total"
,
total
);
//存放数据json数组
if
(
null
!=
list
)
{
...
...
@@ -261,10 +261,10 @@ public class DepotHeadController {
String
[]
creatorArray
=
depotHeadService
.
getCreatorArray
(
roleType
);
beginTime
=
Tools
.
parseDayToTime
(
beginTime
,
BusinessConstants
.
DAY_FIRST_TIME
);
endTime
=
Tools
.
parseDayToTime
(
endTime
,
BusinessConstants
.
DAY_LAST_TIME
);
List
<
DepotHeadVo4InDetail
>
list
=
depotHeadService
.
findAllocationDetail
(
beginTime
,
endTime
,
subType
,
number
,
creatorArray
,
materialParam
,
depotList
,
depotFList
,
remark
,
(
currentPage
-
1
)*
pageSize
,
pageSize
);
int
total
=
depotHeadService
.
findAllocationDetailCount
(
beginTime
,
endTime
,
subType
,
number
,
creatorArray
,
materialParam
,
depotList
,
depotFList
,
remark
);
List
<
DepotHeadVo4InDetail
>
list
=
depotHeadService
.
findAllocationDetail
(
beginTime
,
endTime
,
subType
,
StringUtil
.
toNull
(
number
)
,
creatorArray
,
StringUtil
.
toNull
(
materialParam
)
,
depotList
,
depotFList
,
remark
,
(
currentPage
-
1
)*
pageSize
,
pageSize
);
int
total
=
depotHeadService
.
findAllocationDetailCount
(
beginTime
,
endTime
,
subType
,
StringUtil
.
toNull
(
number
)
,
creatorArray
,
StringUtil
.
toNull
(
materialParam
)
,
depotList
,
depotFList
,
remark
);
map
.
put
(
"rows"
,
list
);
map
.
put
(
"total"
,
total
);
res
.
code
=
200
;
...
...
Write
Preview
Supports
Markdown
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