Commit 5513819d authored by 廖旭伟's avatar 廖旭伟

打印记录时间倒序排序

parent f71ed7f3
......@@ -2,6 +2,7 @@ package com.mortals.xhx.module.record.service.impl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.xhx.common.utils.StringUtils;
......@@ -56,6 +57,11 @@ public class PrintLogServiceImpl extends AbstractCRUDServiceImpl<PrintLogDao, Pr
orConditionList.add(condition7);
query.setOrConditionList(orConditionList);
}
query.setOrderColList(new ArrayList<OrderCol>() {
{
add(new OrderCol("a.createTime", OrderCol.DESCENDING));
}
});
return query;
}
}
\ No newline at end of file
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