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
0f1f5600
Commit
0f1f5600
authored
Jun 30, 2020
by
季圣华
Browse files
优化供应商期初期末的方法
parent
577abbe9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
0f1f5600
...
@@ -350,7 +350,7 @@ public class DepotHeadService {
...
@@ -350,7 +350,7 @@ public class DepotHeadService {
modeName
=
"DiscountLastMoney"
;
modeName
=
"DiscountLastMoney"
;
allOtherMoney
=
depotHeadMapperEx
.
findAllOtherMoney
(
supplierId
,
type
,
subType
,
endTime
);
allOtherMoney
=
depotHeadMapperEx
.
findAllOtherMoney
(
supplierId
,
type
,
subType
,
endTime
);
}
}
BigDecimal
result
=
null
;
BigDecimal
result
=
BigDecimal
.
ZERO
;
try
{
try
{
result
=
depotHeadMapperEx
.
findAllMoney
(
supplierId
,
type
,
subType
,
modeName
,
endTime
);
result
=
depotHeadMapperEx
.
findAllMoney
(
supplierId
,
type
,
subType
,
modeName
,
endTime
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
0f1f5600
...
@@ -301,13 +301,13 @@
...
@@ -301,13 +301,13 @@
</select>
</select>
<select
id=
"findAllMoney"
resultType=
"java.math.BigDecimal"
>
<select
id=
"findAllMoney"
resultType=
"java.math.BigDecimal"
>
select sum(${modeName}) as allMoney from jsh_depothead where Type='${type}' and SubType = '${subType}'
select
ifnull(
sum(${modeName})
,0)
as allMoney from jsh_depothead where Type='${type}' and SubType = '${subType}'
and OrganId =${supplierId} and OperTime
<
='${endTime}'
and OrganId =${supplierId} and OperTime
<
='${endTime}'
and ifnull(delete_Flag,'0') !='1'
and ifnull(delete_Flag,'0') !='1'
</select>
</select>
<select
id=
"findAllOtherMoney"
resultType=
"java.math.BigDecimal"
>
<select
id=
"findAllOtherMoney"
resultType=
"java.math.BigDecimal"
>
select sum(OtherMoney) as allOtherMoney from jsh_depothead where Type='${type}' and SubType = '${subType}'
select
ifnull(
sum(OtherMoney)
,0)
as allOtherMoney from jsh_depothead where Type='${type}' and SubType = '${subType}'
and OrganId =${supplierId} and OperTime
<
='${endTime}'
and OrganId =${supplierId} and OperTime
<
='${endTime}'
and ifnull(delete_Flag,'0') !='1'
and ifnull(delete_Flag,'0') !='1'
</select>
</select>
...
...
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