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
65f4169e
Commit
65f4169e
authored
Jun 10, 2019
by
qiankunpingtai
Browse files
修改可能存在的sql问题
parent
d90841a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
65f4169e
...
...
@@ -68,11 +68,15 @@
<if
test=
"endTime != null and endTime != ''"
>
and dh.OperTime
<
= #{endTime}
</if>
<if
test=
"materialParam != null"
>
and (m.`Name` like '%${materialParam}%' or m.Model like '%${materialParam}%')
<if
test=
"materialParam != null and materialParam != ''"
>
<bind
name=
"materialParam"
value=
"'%' + _parameter.materialParam + '%'"
/>
and (m.Name like #{materialParam} or m.Model like #{materialParam})
</if>
<if
test=
"depotIds != null"
>
and di.DepotId in (${depotIds})
<if
test=
"depotIds != null and depotIds != ''"
>
and di.DepotId in
<foreach
item=
"did"
index=
"index"
collection=
"depotIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{did}
</foreach>
</if>
and ifnull(dh.delete_Flag,'0') !='1'
order by dh.Id desc
...
...
@@ -103,11 +107,15 @@
<if
test=
"endTime != null and endTime != ''"
>
and dh.OperTime
<
= #{endTime}
</if>
<if
test=
"materialParam != null"
>
and (m.`Name` like '%${materialParam}%' or m.Model like '%${materialParam}%')
<if
test=
"materialParam != null and materialParam != ''"
>
<bind
name=
"materialParam"
value=
"'%' + _parameter.materialParam + '%'"
/>
and (m.Name like #{materialParam} or m.Model like #{materialParam})
</if>
<if
test=
"depotIds != null"
>
and di.DepotId in (${depotIds})
<if
test=
"depotIds != null and depotIds != ''"
>
and di.DepotId in
<foreach
item=
"did"
index=
"index"
collection=
"depotIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{did}
</foreach>
</if>
and ifnull(dh.delete_Flag,'0') !='1'
</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