|
@@ -29,6 +29,9 @@
|
|
AND A.CUST_PROPERTY = #{custProperty}
|
|
AND A.CUST_PROPERTY = #{custProperty}
|
|
</if>
|
|
</if>
|
|
GROUP BY A.CUST_ID
|
|
GROUP BY A.CUST_ID
|
|
|
|
+ <if test="sortType == 1 ">
|
|
|
|
+ ORDER BY A.ID
|
|
|
|
+ </if>
|
|
<if test="sortType == 2 ">
|
|
<if test="sortType == 2 ">
|
|
ORDER BY repalBillCount ASC
|
|
ORDER BY repalBillCount ASC
|
|
</if>
|
|
</if>
|
|
@@ -41,7 +44,7 @@
|
|
<if test="sortType == 5 ">
|
|
<if test="sortType == 5 ">
|
|
ORDER BY totalMoney DESC
|
|
ORDER BY totalMoney DESC
|
|
</if>
|
|
</if>
|
|
- <if test="sortType == 6 ">
|
|
|
|
|
|
+ <if test="sortType == 6 or sortType == null">
|
|
ORDER BY A.ID DESC
|
|
ORDER BY A.ID DESC
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|