fix:87327
This commit is contained in:
+1
-1
@@ -2808,7 +2808,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
}
|
}
|
||||||
String textValue = translateDictValue(code, text, table, key, listDict);
|
String textValue = translateDictValue(code, text, table, key, listDict);
|
||||||
if(StringUtils.isBlank(textValue)){
|
if(StringUtils.isBlank(textValue)){
|
||||||
msg.append(name).append("数据不存在;");
|
msg.append(name).append("数据不存在,");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -247,7 +247,8 @@ public class LawsMarketStandardDetailServiceImpl extends ServiceImpl<LawsMarketS
|
|||||||
// 验证标准编号
|
// 验证标准编号
|
||||||
checkStandard(listIds, listStandardIds, listStandardIdRepeat, p, s);
|
checkStandard(listIds, listStandardIds, listStandardIdRepeat, p, s);
|
||||||
if(!StringUtils.isBlank(s.toString())){
|
if(!StringUtils.isBlank(s.toString())){
|
||||||
m.append("第").append(i + 1).append("行,").append(s.toString());
|
m.append("第").append(i + 4).append("行,").append(s.toString().substring(0,s.toString().length() - 1))
|
||||||
|
.append("<br>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return m;
|
return m;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class ValidUtil {
|
|||||||
for(ConstraintViolation<Object> constraintViolation : set){
|
for(ConstraintViolation<Object> constraintViolation : set){
|
||||||
if(Objects.equals(constraintViolation.getPropertyPath().toString(),field.getName())){
|
if(Objects.equals(constraintViolation.getPropertyPath().toString(),field.getName())){
|
||||||
// 这里循环获取错误信息,可以自定义格式
|
// 这里循环获取错误信息,可以自定义格式
|
||||||
msg.append(constraintViolation.getMessage()).append(";");
|
msg.append(constraintViolation.getMessage()).append(",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user