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
24f221ca
Commit
24f221ca
authored
Aug 05, 2021
by
季圣华
Browse files
优化商品查询框的搜索条件
parent
6cd6fff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/resources/mapper_xml/MaterialMapperEx.xml
View file @
24f221ca
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
and m.enable_serial_number ='1'
and m.enable_serial_number ='1'
<if
test=
"q != null and q !=''"
>
<if
test=
"q != null and q !=''"
>
<bind
name=
"bindKey"
value=
"'%'+q+'%'"
/>
<bind
name=
"bindKey"
value=
"'%'+q+'%'"
/>
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>
and ifnull(m.delete_flag,'0') !='1'
and ifnull(m.delete_flag,'0') !='1'
order by m.id desc
order by m.id desc
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
and m.enable_serial_number ='1'
and m.enable_serial_number ='1'
<if
test=
"q != null and q !=''"
>
<if
test=
"q != null and q !=''"
>
<bind
name=
"bindKey"
value=
"'%'+q+'%'"
/>
<bind
name=
"bindKey"
value=
"'%'+q+'%'"
/>
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>
and ifnull(m.delete_flag,'0') !='1'
and ifnull(m.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