Commit 6a654cf4 authored by 刘林's avatar 刘林

fix(jg):编辑验证使用登记证号bug

parent 5c5e4492
...@@ -1151,6 +1151,8 @@ public class CommonEquipDataProcessService { ...@@ -1151,6 +1151,8 @@ public class CommonEquipDataProcessService {
if (idxBizJgProjectContraptionServiceImpl.count(queryWrapper) > 0) { if (idxBizJgProjectContraptionServiceImpl.count(queryWrapper) > 0) {
throw new BadRequest("使用登记证编号已存在!"); throw new BadRequest("使用登记证编号已存在!");
} }
jgRegisterInfoService.checkUseRegistrationCode(dto.getUseRegistrationCode(), "unit"); if (!ValidationUtil.isEmpty(dto.getUseRegistrationCode())){
jgRegisterInfoService.checkUseRegistrationCode(dto.getUseRegistrationCode(), "unit");
}
} }
} }
\ No newline at end of file
...@@ -29,6 +29,7 @@ import org.elasticsearch.index.query.QueryBuilders; ...@@ -29,6 +29,7 @@ import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.SearchHit; import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.builder.SearchSourceBuilder; import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.io.IOException; import java.io.IOException;
...@@ -287,7 +288,9 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy ...@@ -287,7 +288,9 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
} }
} }
} }
idxBizJgRegisterInfoServiceImpl.checkUseRegistrationCode(registerInfoNew.getUseOrgCode(), "unit"); if (!ValidationUtil.isEmpty(registerInfoNew.getUseOrgCode())){
idxBizJgRegisterInfoServiceImpl.checkUseRegistrationCode(registerInfoNew.getUseOrgCode(), "unit");
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment