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

This commit is contained in:
季圣华
2019-08-12 22:50:36 +08:00
parent d1956a27d0
commit 2753e28d5f
2 changed files with 4 additions and 3 deletions

View File

@@ -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 @@
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 @@
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.*

View File

@@ -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>