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
2753e28d
Commit
2753e28d
authored
Aug 12, 2019
by
季圣华
Browse files
修改商品和供应商模块的排序
parent
d1956a27
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/MaterialMapperEx.xml
View file @
2753e28d
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
and m.CategoryId in (${categoryIds})
and m.CategoryId in (${categoryIds})
</if>
</if>
and ifnull(m.delete_Flag,'0') !='1'
and ifnull(m.delete_Flag,'0') !='1'
order by m.id
a
sc
order by m.id
de
sc
<if
test=
"offset != null and rows != null"
>
<if
test=
"offset != null and rows != null"
>
limit #{offset},#{rows}
limit #{offset},#{rows}
</if>
</if>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1'
left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1'
where m.enabled=1
where m.enabled=1
and ifnull(m.delete_Flag,'0') !='1'
and ifnull(m.delete_Flag,'0') !='1'
ORDER BY Id
a
sc
ORDER BY Id
de
sc
</select>
</select>
<update
id=
"updatePriceNullByPrimaryKey"
parameterType=
"java.lang.Long"
>
<update
id=
"updatePriceNullByPrimaryKey"
parameterType=
"java.lang.Long"
>
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
and m.CategoryId in (${categoryIds})
and m.CategoryId in (${categoryIds})
</if>
</if>
and ifnull(m.delete_Flag,'0') !='1'
and ifnull(m.delete_Flag,'0') !='1'
order by m.id
a
sc
order by m.id
de
sc
</select>
</select>
<select
id=
"findByMaterialName"
resultType=
"com.jsh.erp.datasource.entities.Material"
>
<select
id=
"findByMaterialName"
resultType=
"com.jsh.erp.datasource.entities.Material"
>
select m.*
select m.*
...
...
src/main/resources/mapper_xml/SupplierMapperEx.xml
View file @
2753e28d
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
and description like '%${description}%'
and description like '%${description}%'
</if>
</if>
and ifnull(delete_Flag,'0') !='1'
and ifnull(delete_Flag,'0') !='1'
order by id desc
<if
test=
"offset != null and rows != null"
>
<if
test=
"offset != null and rows != null"
>
limit #{offset},#{rows}
limit #{offset},#{rows}
</if>
</if>
...
...
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