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
1f98d617
Commit
1f98d617
authored
Dec 12, 2022
by
季圣华
Browse files
解决单据单号模糊查询的bug
parent
0bb9445e
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
1f98d617
...
@@ -305,8 +305,12 @@ public class DepotHeadService {
...
@@ -305,8 +305,12 @@ public class DepotHeadService {
public
Map
<
String
,
BigDecimal
>
getFinishDepositMapByNumberList
(
List
<
String
>
numberList
)
{
public
Map
<
String
,
BigDecimal
>
getFinishDepositMapByNumberList
(
List
<
String
>
numberList
)
{
List
<
FinishDepositVo
>
list
=
depotHeadMapperEx
.
getFinishDepositByNumberList
(
numberList
);
List
<
FinishDepositVo
>
list
=
depotHeadMapperEx
.
getFinishDepositByNumberList
(
numberList
);
Map
<
String
,
BigDecimal
>
finishDepositMap
=
new
HashMap
<>();
Map
<
String
,
BigDecimal
>
finishDepositMap
=
new
HashMap
<>();
for
(
FinishDepositVo
finishDepositVo
:
list
){
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
finishDepositMap
.
put
(
finishDepositVo
.
getNumber
(),
finishDepositVo
.
getFinishDeposit
());
for
(
FinishDepositVo
finishDepositVo
:
list
)
{
if
(
finishDepositVo
!=
null
)
{
finishDepositMap
.
put
(
finishDepositVo
.
getNumber
(),
finishDepositVo
.
getFinishDeposit
());
}
}
}
}
return
finishDepositMap
;
return
finishDepositMap
;
}
}
...
@@ -314,8 +318,12 @@ public class DepotHeadService {
...
@@ -314,8 +318,12 @@ public class DepotHeadService {
public
Map
<
String
,
Integer
>
getBillSizeMapByLinkNumberList
(
List
<
String
>
numberList
)
throws
Exception
{
public
Map
<
String
,
Integer
>
getBillSizeMapByLinkNumberList
(
List
<
String
>
numberList
)
throws
Exception
{
List
<
DepotHead
>
list
=
getBillListByLinkNumberList
(
numberList
);
List
<
DepotHead
>
list
=
getBillListByLinkNumberList
(
numberList
);
Map
<
String
,
Integer
>
billListMap
=
new
HashMap
<>();
Map
<
String
,
Integer
>
billListMap
=
new
HashMap
<>();
for
(
DepotHead
depotHead
:
list
){
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
billListMap
.
put
(
depotHead
.
getLinkNumber
(),
list
.
size
());
for
(
DepotHead
depotHead
:
list
)
{
if
(
depotHead
!=
null
)
{
billListMap
.
put
(
depotHead
.
getLinkNumber
(),
list
.
size
());
}
}
}
}
return
billListMap
;
return
billListMap
;
}
}
...
@@ -323,8 +331,12 @@ public class DepotHeadService {
...
@@ -323,8 +331,12 @@ public class DepotHeadService {
public
Map
<
Long
,
Integer
>
getFinancialBillNoMapByBillIdList
(
List
<
Long
>
idList
)
{
public
Map
<
Long
,
Integer
>
getFinancialBillNoMapByBillIdList
(
List
<
Long
>
idList
)
{
List
<
AccountItem
>
list
=
accountHeadService
.
getFinancialBillNoByBillIdList
(
idList
);
List
<
AccountItem
>
list
=
accountHeadService
.
getFinancialBillNoByBillIdList
(
idList
);
Map
<
Long
,
Integer
>
billListMap
=
new
HashMap
<>();
Map
<
Long
,
Integer
>
billListMap
=
new
HashMap
<>();
for
(
AccountItem
accountItem
:
list
){
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
billListMap
.
put
(
accountItem
.
getBillId
(),
list
.
size
());
for
(
AccountItem
accountItem
:
list
)
{
if
(
accountItem
!=
null
)
{
billListMap
.
put
(
accountItem
.
getBillId
(),
list
.
size
());
}
}
}
}
return
billListMap
;
return
billListMap
;
}
}
...
...
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