添加列表排序
@ -69,7 +69,7 @@ public class BaseController {
if (sortOrder != null && sortOrder.startsWith(Constants.ORDER_DESC)) {
orderItem.setAsc(false);
} else {
orderItem.setAsc(true);
}
tPage.addOrder(orderItem);
@ -66,7 +66,6 @@
<if test="order.endTime != null and order.endTime != ''">
AND DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ <= ]]> DATE_FORMAT(#{order.endTime},'%Y-%m-%d')
</if>
order by create_time DESC
</where>
</select>