文档库-表头排序
This commit is contained in:
+10
-6
@@ -4226,14 +4226,10 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
|| "technology_territory".equals(orderByField)){
|
||||
|
||||
conditionSb.append(" order by " + "CONVERT("+orderByField +" USING gbk) COLLATE gbk_chinese_ci");
|
||||
orderBySort(parameter, conditionSb);
|
||||
}else if("issue_time".equals(orderByField)){
|
||||
conditionSb.append(" order by " + (String) parameter.get("orderByField"));
|
||||
}
|
||||
|
||||
if ("1".equals((String) parameter.get("orderBy"))) {
|
||||
conditionSb.append(" asc");//正序
|
||||
} else if ("2".equals((String) parameter.get("orderBy"))) {
|
||||
conditionSb.append(" desc");//倒序
|
||||
orderBySort(parameter, conditionSb);
|
||||
}
|
||||
} else {
|
||||
conditionSb.append(" order by create_time desc");
|
||||
@@ -4243,6 +4239,14 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
return condition;
|
||||
}
|
||||
|
||||
private void orderBySort(Map<String, Object> parameter, StringBuilder conditionSb) {
|
||||
if ("1".equals((String) parameter.get("orderBy"))) {
|
||||
conditionSb.append(" asc");//正序
|
||||
} else if ("2".equals((String) parameter.get("orderBy"))) {
|
||||
conditionSb.append(" desc");//倒序
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 收藏和订阅
|
||||
|
||||
Reference in New Issue
Block a user