单据 添加排序

pro
wangwei 2 years ago
parent 79df891647
commit 82fadb3e7d

@ -188,5 +188,6 @@ public class FilterOrderRequest extends ListPageRequest {
private String supInoivceSearch;
private List<String> invoiceActions1;
private List<String> invoiceActions2;
private String orderBy;
}

@ -99,5 +99,6 @@ public class PurOrderRequest extends ListPageRequest {
private String startAuditDate;
private String endAuditDate;
private Integer dealStatus;
private String orderBy;
}

@ -274,7 +274,6 @@
</if>
</if>
</where>
order by createTime desc
</select>
@ -331,7 +330,7 @@
]]>
</if>
</where>
order by createTime desc
</select>
@ -545,7 +544,15 @@
</if>
</where>
GROUP BY io.id
order by io.createTime desc
<choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
order by updateTime desc
</otherwise>
</choose>
</select>

@ -102,5 +102,14 @@
AND createUser = #{createUser}
</if>
</where>
<choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
order by pur_order.updateTime desc
</otherwise>
</choose>
</select>
</mapper>

Loading…
Cancel
Save