Commit 93867451 authored by 赵啸非's avatar 赵啸非

添加测试app数据动态访问排序

parent d8f44a88
......@@ -46,24 +46,25 @@
</if>
<include refid="_second_condition_"/>
<!-- <if test="condition.fieldCode!=null and condition.fieldCode!=''">
and b.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if test="condition.fieldName!=null and condition.fieldName!=''">
and b.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
</if>
<if test="condition.fieldValue != null and condition.fieldValue != ''">
and b.fieldValue like #{condition.fieldValue}
</if>-->
</trim>
</trim>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim prefix="" suffixOverrides="," suffix="" prefixOverrides=",">
CASE
WHEN fieldType = 'date' THEN STR_TO_DATE(fieldValue, '%Y-%m-%d'),
ELSE NULL
END
CASE
WHEN fieldType = 'top' THEN fieldValue,
ELSE NULL
END
IF
( `fieldType` = 'top', '0', '1' ),
`fieldValue` DESC,
<trim prefix="" suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
......@@ -89,8 +90,6 @@
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</select>
......
......@@ -44,10 +44,8 @@ Content-Type: application/json
}
],
"page": 1,
"size": 10,
"orderCols": {
"id":"asc"
}
"size": 10
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment