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
cee119c2
Commit
cee119c2
authored
May 31, 2022
by
季圣华
Browse files
优化入库出库统计接口
parent
13655f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/controller/DepotHeadController.java
View file @
cee119c2
...
...
@@ -189,9 +189,9 @@ public class DepotHeadController {
}
beginTime
=
Tools
.
parseDayToTime
(
beginTime
,
BusinessConstants
.
DAY_FIRST_TIME
);
endTime
=
Tools
.
parseDayToTime
(
endTime
,
BusinessConstants
.
DAY_LAST_TIME
);
List
<
DepotHeadVo4InOutMCount
>
list
=
depotHeadService
.
findInOutMaterialCount
(
beginTime
,
endTime
,
type
,
materialParam
,
List
<
DepotHeadVo4InOutMCount
>
list
=
depotHeadService
.
findInOutMaterialCount
(
beginTime
,
endTime
,
type
,
StringUtil
.
toNull
(
materialParam
)
,
depotList
,
oId
,
(
currentPage
-
1
)*
pageSize
,
pageSize
);
int
total
=
depotHeadService
.
findInOutMaterialCountTotal
(
beginTime
,
endTime
,
type
,
materialParam
,
depotList
,
oId
);
int
total
=
depotHeadService
.
findInOutMaterialCountTotal
(
beginTime
,
endTime
,
type
,
StringUtil
.
toNull
(
materialParam
)
,
depotList
,
oId
);
map
.
put
(
"total"
,
total
);
map
.
put
(
"rows"
,
list
);
res
.
code
=
200
;
...
...
jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
cee119c2
...
...
@@ -340,7 +340,7 @@
</if>
<if
test=
"materialParam != null and materialParam !=''"
>
<bind
name=
"bindKey"
value=
"'%'+materialParam+'%'"
/>
and (m.bar_code like #{bindKey} or m.
mN
ame like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
and (m
e
.bar_code like #{bindKey} or m.
n
ame like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
and ifnull(dh.delete_flag,'0') !='1'
group by di.material_id
...
...
@@ -383,7 +383,7 @@
</if>
<if
test=
"materialParam != null and materialParam !=''"
>
<bind
name=
"bindKey"
value=
"'%'+materialParam+'%'"
/>
and (m.bar_code like #{bindKey} or m.
mN
ame like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
and (m
e
.bar_code like #{bindKey} or m.
n
ame like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
and ifnull(dh.delete_flag,'0') !='1'
group by di.material_id) a
...
...
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