文档库-表头排序
This commit is contained in:
+10
-6
@@ -4226,14 +4226,10 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
|| "technology_territory".equals(orderByField)){
|
|| "technology_territory".equals(orderByField)){
|
||||||
|
|
||||||
conditionSb.append(" order by " + "CONVERT("+orderByField +" USING gbk) COLLATE gbk_chinese_ci");
|
conditionSb.append(" order by " + "CONVERT("+orderByField +" USING gbk) COLLATE gbk_chinese_ci");
|
||||||
|
orderBySort(parameter, conditionSb);
|
||||||
}else if("issue_time".equals(orderByField)){
|
}else if("issue_time".equals(orderByField)){
|
||||||
conditionSb.append(" order by " + (String) parameter.get("orderByField"));
|
conditionSb.append(" order by " + (String) parameter.get("orderByField"));
|
||||||
}
|
orderBySort(parameter, conditionSb);
|
||||||
|
|
||||||
if ("1".equals((String) parameter.get("orderBy"))) {
|
|
||||||
conditionSb.append(" asc");//正序
|
|
||||||
} else if ("2".equals((String) parameter.get("orderBy"))) {
|
|
||||||
conditionSb.append(" desc");//倒序
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
conditionSb.append(" order by create_time desc");
|
conditionSb.append(" order by create_time desc");
|
||||||
@@ -4243,6 +4239,14 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
return condition;
|
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