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
3c00c6c4
Commit
3c00c6c4
authored
Jul 15, 2021
by
季圣华
Browse files
给单据增加条码查询条件
parent
56e8fed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
3c00c6c4
...
...
@@ -50,6 +50,7 @@
left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_depot_item di on dh.id = di.header_id and ifnull(di.delete_flag,'0') !='1'
left join jsh_material m on di.material_id = m.id and ifnull(m.delete_flag,'0') !='1'
left join jsh_material_extend me on di.material_extend_id = me.id and ifnull(me.delete_flag,'0') !='1'
where 1=1
<if
test=
"type != null"
>
and dh.type=#{type}
...
...
@@ -72,7 +73,7 @@
</if>
<if
test=
"materialParam != null and materialParam !=''"
>
<bind
name=
"bindKey"
value=
"'%'+materialParam+'%'"
/>
and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
and (
me.bar_code like #{bindKey} or
m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
<if
test=
"organId != null"
>
and dh.organ_id=#{organId}
...
...
@@ -109,6 +110,7 @@
(select distinct dh.* FROM jsh_depot_head dh
left join jsh_depot_item di on dh.Id = di.header_id and ifnull(di.delete_flag,'0') !='1'
left join jsh_material m on di.material_id = m.Id and ifnull(m.delete_Flag,'0') !='1'
left join jsh_material_extend me on di.material_extend_id = me.id and ifnull(me.delete_flag,'0') !='1'
WHERE 1=1
<if
test=
"type != null"
>
and dh.type=#{type}
...
...
@@ -131,7 +133,7 @@
</if>
<if
test=
"materialParam != null and materialParam !=''"
>
<bind
name=
"bindKey"
value=
"'%'+materialParam+'%'"
/>
and (m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
and (
me.bar_code like #{bindKey} or
m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if>
<if
test=
"organId != null"
>
and dh.organ_id=#{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