修改排序sql
This commit is contained in:
@@ -53,6 +53,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</where>
|
</where>
|
||||||
order by
|
order by
|
||||||
<choose>
|
<choose>
|
||||||
|
<when test="'name' == pageQuery.orderByColumn">
|
||||||
|
CONVERT(tgbd.${pageQuery.orderByColumn} USING gbk) ${pageQuery.isAsc}
|
||||||
|
</when>
|
||||||
<when test="null != pageQuery.isAsc and pageQuery.isAsc.length() > 0">
|
<when test="null != pageQuery.isAsc and pageQuery.isAsc.length() > 0">
|
||||||
tgbd.${pageQuery.orderByColumn} ${pageQuery.isAsc}
|
tgbd.${pageQuery.orderByColumn} ${pageQuery.isAsc}
|
||||||
</when>
|
</when>
|
||||||
|
|||||||
Reference in New Issue
Block a user