fix:87327

This commit is contained in:
梁琦涛
2024-07-22 09:54:52 +08:00
parent 52f09778cc
commit 2a810d0d04
3 changed files with 4 additions and 3 deletions
@@ -2808,7 +2808,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
}
String textValue = translateDictValue(code, text, table, key, listDict);
if(StringUtils.isBlank(textValue)){
msg.append(name).append("数据不存在;");
msg.append(name).append("数据不存在,");
}
}
}
@@ -247,7 +247,8 @@ public class LawsMarketStandardDetailServiceImpl extends ServiceImpl<LawsMarketS
// 验证标准编号
checkStandard(listIds, listStandardIds, listStandardIdRepeat, p, s);
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;
@@ -90,7 +90,7 @@ public class ValidUtil {
for(ConstraintViolation<Object> constraintViolation : set){
if(Objects.equals(constraintViolation.getPropertyPath().toString(),field.getName())){
// 这里循环获取错误信息,可以自定义格式
msg.append(constraintViolation.getMessage()).append(";");
msg.append(constraintViolation.getMessage()).append(",");
}
}
}