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
40a6091c
Commit
40a6091c
authored
May 14, 2019
by
qiankunpingtai
Browse files
财务明细信息sql$修改为#
parent
5881dac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/AccountItemMapperEx.xml
View file @
40a6091c
...
...
@@ -11,14 +11,16 @@
select *
FROM jsh_accountitem
where 1=1
<if
test=
"name != null"
>
and name like '%${name}%'
<if
test=
"name != null and name != ''"
>
<bind
name=
"name"
value=
"'%' + _parameter.name + '%'"
/>
and name like #{name}
</if>
<if
test=
"type != null"
>
and type=
$
{type}
and type=
#
{type}
</if>
<if
test=
"remark != null"
>
and remark like '%${remark}%'
<if
test=
"remark != null and remark != ''"
>
<bind
name=
"remark"
value=
"'%' + _parameter.remark + '%'"
/>
and remark like #{remark}
</if>
and ifnull(delete_Flag,'0') !='1'
<if
test=
"offset != null and rows != null"
>
...
...
@@ -30,14 +32,16 @@
COUNT(id)
FROM jsh_accountitem
WHERE 1=1
<if
test=
"name != null"
>
and name like '%${name}%'
<if
test=
"name != null and name != ''"
>
<bind
name=
"name"
value=
"'%' + _parameter.name + '%'"
/>
and name like #{name}
</if>
<if
test=
"type != null"
>
and type=
$
{type}
and type=
#
{type}
</if>
<if
test=
"remark != null"
>
and remark like '%${remark}%'
<if
test=
"remark != null and remark != ''"
>
<bind
name=
"remark"
value=
"'%' + _parameter.remark + '%'"
/>
and remark like #{remark}
</if>
and ifnull(delete_Flag,'0') !='1'
</select>
...
...
@@ -46,7 +50,7 @@
select ai.*,a.Name AccountName,ioi.Name InOutItemName
from jsh_accountitem ai left join jsh_account a on ai.AccountId=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_inoutitem ioi on ai.InOutItemId = ioi.id and ifnull(ioi.delete_Flag,'0') !='1'
where ai.HeaderId =
$
{headerId}
where ai.HeaderId =
#
{headerId}
and ifnull(ai.delete_Flag,'0') !='1'
order by ai.id asc
</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