fix:88869

This commit is contained in:
梁琦涛
2024-08-19 10:06:54 +08:00
parent 8f625c60a7
commit b698fd68e9
@@ -293,7 +293,8 @@ public class LawsMarketStandardDetailServiceImpl extends ServiceImpl<LawsMarketS
appendStandardEnglishName(p, s, obj);
checkDate(p, s);
// 验证类型
if(!Objects.equals(obj.getType(),p.getType())){
if(!Objects.equals(StringUtils.isEmpty(obj.getType()) ? "" : obj.getType(),
StringUtils.isEmpty(p.getType()) ? "" : p.getType())){
String name = ValidUtil.getAnnotation(LawsMarketStandardDetail.class,"type");
s.append(MessageUtils.getMessage(ResultCommon.FORMATTING_ERROR,name)).append(",");
}