[fix] bug 43 推理返回异常信息

This commit is contained in:
Liuyang 2025-01-14 10:03:30 +08:00
parent 4388e46e70
commit cde8ac197e

View File

@ -135,6 +135,11 @@ public class ApplicationServiceImpl implements ApplicationService {
@Override
public ApplicationRespVO getApplication(Long id) {
ApplicationDO applicationDO = applicationMapper.selectById(id);
if(applicationDO == null){
throw exception(APPLICATION_NOT_EXISTS);
}
ApplicationRespVO bean = BeanUtils.toBean(applicationDO, ApplicationRespVO.class);
if (bean.getAppLabel() != null && !bean.getAppLabel().equals("")) {
String[] split = bean.getAppLabel().split(",");