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

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

parent d1956a27
......@@ -26,7 +26,7 @@
and m.CategoryId in (${categoryIds})
</if>
and ifnull(m.delete_Flag,'0') !='1'
order by m.id asc
order by m.id desc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
</if>
......@@ -70,7 +70,7 @@
left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1'
where m.enabled=1
and ifnull(m.delete_Flag,'0') !='1'
ORDER BY Id asc
ORDER BY Id desc
</select>
<update id="updatePriceNullByPrimaryKey" parameterType="java.lang.Long">
......@@ -106,7 +106,7 @@
and m.CategoryId in (${categoryIds})
</if>
and ifnull(m.delete_Flag,'0') !='1'
order by m.id asc
order by m.id desc
</select>
<select id="findByMaterialName" resultType="com.jsh.erp.datasource.entities.Material">
select m.*
......
......@@ -21,6 +21,7 @@
and description like '%${description}%'
</if>
and ifnull(delete_Flag,'0') !='1'
order by id desc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
</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