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
5881dac7
Commit
5881dac7
authored
May 14, 2019
by
qiankunpingtai
Browse files
财务信息sql$修改为#
parent
d2dedaf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/AccountHeadMapperEx.xml
View file @
5881dac7
...
@@ -15,17 +15,18 @@
...
@@ -15,17 +15,18 @@
left join jsh_person p on ah.HandsPersonId=p.id and ifnull(p.delete_Flag,'0') !='1'
left join jsh_person p on ah.HandsPersonId=p.id and ifnull(p.delete_Flag,'0') !='1'
left join jsh_account a on ah.AccountId=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_account a on ah.AccountId=a.id and ifnull(a.delete_Flag,'0') !='1'
where 1=1
where 1=1
<if
test=
"billNo != null"
>
<if
test=
"billNo != null and billNo != ''"
>
and ah.BillNo like '%${billNo}%'
<bind
name=
"billNo"
value=
"'%' + _parameter.billNo + '%'"
/>
and ah.BillNo like #{billNo}
</if>
</if>
<if
test=
"type != null"
>
<if
test=
"type != null
and type != ''
"
>
and ah.Type=
'$
{type}
'
and ah.Type=
#
{type}
</if>
</if>
<if
test=
"beginTime != null"
>
<if
test=
"beginTime != null
and beginTime != ''
"
>
and ah.BillTime
>
=
'%$
{beginTime}
%'
and ah.BillTime
>
=
#
{beginTime}
</if>
</if>
<if
test=
"endTime != null"
>
<if
test=
"endTime != null
and endTime != ''
"
>
and ah.BillTime
<
=
'%$
{endTime}
%'
and ah.BillTime
<
=
#
{endTime}
</if>
</if>
and ifnull(ah.delete_Flag,'0') !='1'
and ifnull(ah.delete_Flag,'0') !='1'
order by ah.Id desc
order by ah.Id desc
...
@@ -40,17 +41,18 @@
...
@@ -40,17 +41,18 @@
COUNT(id)
COUNT(id)
FROM jsh_accounthead
FROM jsh_accounthead
WHERE 1=1
WHERE 1=1
<if
test=
"billNo != null"
>
<if
test=
"billNo != null and billNo != ''"
>
and BillNo like '%${billNo}%'
<bind
name=
"billNo"
value=
"'%' + _parameter.billNo + '%'"
/>
and BillNo like #{billNo}
</if>
</if>
<if
test=
"type != null"
>
<if
test=
"type != null
and type != ''
"
>
and Type=
'$
{type}
'
and Type=
#
{type}
</if>
</if>
<if
test=
"beginTime != null"
>
<if
test=
"beginTime != null
and beginTime != ''
"
>
and BillTime
>
=
'%$
{beginTime}
%'
and BillTime
>
=
#
{beginTime}
</if>
</if>
<if
test=
"endTime != null"
>
<if
test=
"endTime != null
and endTime != ''
"
>
and BillTime
<
=
'%$
{endTime}
%'
and BillTime
<
=
#
{endTime}
</if>
</if>
and ifnull(delete_Flag,'0') !='1'
and ifnull(delete_Flag,'0') !='1'
</select>
</select>
...
@@ -60,9 +62,9 @@
...
@@ -60,9 +62,9 @@
</select>
</select>
<select
id=
"findAllMoney"
resultType=
"java.math.BigDecimal"
>
<select
id=
"findAllMoney"
resultType=
"java.math.BigDecimal"
>
select sum(
$
{modeName}) as allMoney from jsh_accounthead
select sum(
#
{modeName}) as allMoney from jsh_accounthead
where Type=
'$
{type}
'
where Type=
#
{type}
and OrganId =
$
{supplierId} and BillTime
<![CDATA[ <=
'$
{endTime}
'
]]>
and OrganId =
#
{supplierId} and BillTime
<![CDATA[ <=
#
{endTime}]]>
and ifnull(delete_Flag,'0') !='1'
and ifnull(delete_Flag,'0') !='1'
</select>
</select>
...
@@ -74,7 +76,7 @@
...
@@ -74,7 +76,7 @@
left join jsh_account a on ah.AccountId=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_account a on ah.AccountId=a.id and ifnull(a.delete_Flag,'0') !='1'
where 1=1
where 1=1
<if
test=
"billNo != null"
>
<if
test=
"billNo != null"
>
and ah.BillNo =
'$
{billNo}
'
and ah.BillNo =
#
{billNo}
</if>
</if>
and ifnull(ah.delete_Flag,'0') !='1'
and ifnull(ah.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