diff --git a/src/main/resources/mapper_xml/MaterialMapperEx.xml b/src/main/resources/mapper_xml/MaterialMapperEx.xml index 2f58665d..1ff82b5d 100644 --- a/src/main/resources/mapper_xml/MaterialMapperEx.xml +++ b/src/main/resources/mapper_xml/MaterialMapperEx.xml @@ -26,7 +26,7 @@ and m.CategoryId in (${categoryIds}) and ifnull(m.delete_Flag,'0') !='1' - order by m.id asc + order by m.id desc limit #{offset},#{rows} @@ -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 @@ -106,7 +106,7 @@ and m.CategoryId in (${categoryIds}) and ifnull(m.delete_Flag,'0') !='1' - order by m.id asc + order by m.id desc