Commit 2753e28d authored by 季圣华's avatar 季圣华
Browse files

修改商品和供应商模块的排序

parent d1956a27
...@@ -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 asc order by m.id desc
<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 asc ORDER BY Id desc
</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 asc order by m.id desc
</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.*
......
...@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment