单据 添加排序

pro
wangwei 2 years ago
parent 79df891647
commit 82fadb3e7d

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

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

@ -274,7 +274,6 @@
</if> </if>
</if> </if>
</where> </where>
order by createTime desc
</select> </select>
@ -331,7 +330,7 @@
]]> ]]>
</if> </if>
</where> </where>
order by createTime desc
</select> </select>
@ -545,7 +544,15 @@
</if> </if>
</where> </where>
GROUP BY io.id 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> </select>

@ -102,5 +102,14 @@
AND createUser = #{createUser} AND createUser = #{createUser}
</if> </if>
</where> </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> </select>
</mapper> </mapper>

Loading…
Cancel
Save