法规预警--按实施日期正序排序
This commit is contained in:
+19
-10
@@ -3806,17 +3806,26 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//处理列表表头排序
|
||||
if (StringUtils.isNotBlank((String) parameter.get("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");//倒序
|
||||
//法规预警的排序与其他不同单独处理
|
||||
if(StringUtils.isNotBlank(warnTime)){
|
||||
//flag = 0(新车实施日期), flag = 1(在产车实施日期)
|
||||
if("0".equals(flag)){
|
||||
conditionSb.append(" order by xin1_che1_xing2_shi2_shi1_ri4_qi1 asc");
|
||||
}else{
|
||||
conditionSb.append(" order by implement_time asc");
|
||||
}
|
||||
}else{
|
||||
//处理列表表头排序
|
||||
if (StringUtils.isNotBlank((String) parameter.get("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");//倒序
|
||||
}
|
||||
} else {
|
||||
conditionSb.append(" order by create_time desc");
|
||||
}
|
||||
} else {
|
||||
conditionSb.append(" order by create_time desc");
|
||||
}
|
||||
String condition = conditionSb.toString();
|
||||
return condition;
|
||||
|
||||
Reference in New Issue
Block a user