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
ec5c46f0
Commit
ec5c46f0
authored
Feb 28, 2019
by
季圣华
Browse files
修改客户和供应商的对账单的sql(屏蔽掉订单)
parent
a07c71fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
ec5c46f0
...
...
@@ -225,7 +225,7 @@
<select
id=
"findStatementAccount"
parameterType=
"com.jsh.erp.datasource.entities.DepotItemExample"
resultMap=
"ResultStatementAccount"
>
select dh.Number,concat(dh.SubType,dh.Type) as type,dh.DiscountLastMoney,dh.ChangeAmount,s.supplier supplierName,
date_format(dh.OperTime,'%Y-%m-%d %H:%i:%S') as oTime from jsh_depothead dh
inner join jsh_supplier s on s.id=dh.OrganId where s.type='${supType}' and dh.SubType!='其它'
inner join jsh_supplier s on s.id=dh.OrganId where s.type='${supType}' and
(
dh.SubType!='其它'
and dh.SubType!='采购订单' and dh.SubType!='销售订单')
and dh.OperTime >='${beginTime}' and dh.OperTime
<
='${endTime}'
<if
test=
"organId != null"
>
and dh.OrganId=${organId}
...
...
@@ -248,7 +248,7 @@
select sum(a) from
(
select count(1) a from jsh_depothead dh
inner join jsh_supplier s on s.id=dh.OrganId where s.type='${supType}' and dh.SubType!='其它'
inner join jsh_supplier s on s.id=dh.OrganId where s.type='${supType}' and
(
dh.SubType!='其它'
and dh.SubType!='采购订单' and dh.SubType!='销售订单')
and dh.OperTime >='${beginTime}' and dh.OperTime
<
='${endTime}'
<if
test=
"organId != null"
>
and dh.OrganId=${organId}
...
...
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