update 字典翻译排序异常处理

This commit is contained in:
liao
2023-09-20 09:16:20 +08:00
parent fa10c29df3
commit b29fec19cc
5 changed files with 10 additions and 2 deletions
@@ -17,6 +17,7 @@ public class ResultCommon {
public static final String EMPTY_STANDARD_NAME = "message.empty.standard.name"; // 标准名称不能为空
public static final String EMPTY_COMMON = "message.empty.common"; // {0}不能为空
public static final String EXIST_STANDARD_NUMBER = "message.exists.standard.number"; // 标准编号已经存在
public static final String NOT_EXIST_PARAM = "message.no.exists.param"; // 参数{0}不存在
public static final String RMR_SET_QUALITY_OVER_TEN = "es.rmr.setQuality.overTen"; // 请最多选择10条
@@ -899,8 +899,12 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
String orderByField = (String) parameterMap.get(FieldCommon.ORDER_BY_FIELD);
if (StringUtils.isNotBlank(orderByField)) {
// 排序字段的类型
String fieldShowType = fieldList.stream().filter(lawsTag -> orderByField
.equals(lawsTag.getDbFieldName())).collect(Collectors.toList()).get(0).getFieldShowType();
List<LawsTag> lawsTagList = fieldList.stream().filter(lawsTag -> orderByField
.equals(lawsTag.getDbFieldName())).collect(Collectors.toList());
if (CollectionUtils.isEmpty(lawsTagList)) {
throw new JeroBootException(ResultCommon.NOT_EXIST_PARAM, orderByField);
}
String fieldShowType = lawsTagList.get(0).getFieldShowType();
if (LawsFieldTypeEnum.DATE_MANY.getValue().equals(fieldShowType)) {
// 多日期的排序逻辑不一样
orderBySortDateMany(parameterMap, selectCondition);
@@ -13,6 +13,7 @@ message.empty.common=The {0} cannot be empty
message.empty.standard.number=The standard number cannot be empty
message.empty.standard.name=The standard name cannot be empty
message.exists.standard.number=standard number already exists
message.no.exists.param=param {0} not exists
successfully.cleared=successfully cleared
successfully.deleted.in.bulk=successfully deleted in bulk
@@ -12,6 +12,7 @@ message.empty.common=The {0} cannot be empty
message.empty.standard.number=The standard number cannot be empty
message.empty.standard.name=The standard name cannot be empty
message.exists.standard.number=standard number already exists
message.no.exists.param=param {0} not exists
es.rmr.setQuality.overTen=Please select up to 10
@@ -13,6 +13,7 @@ message.empty.common={0}\u4E0D\u80FD\u4E3A\u7A7A
message.empty.standard.number=\u6807\u51C6\u7F16\u53F7\u4E0D\u80FD\u4E3A\u7A7A
message.empty.standard.name=\u6807\u51C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A
message.exists.standard.number=标准编号已经存在
message.no.exists.param=参数{0}不存在
successfully.cleared=\u6E05\u9664\u6210\u529F
successfully.deleted.in.bulk=\u6279\u91CF\u5220\u9664\u6210\u529F