[fix] bug 43 推理返回异常信息
This commit is contained in:
parent
4388e46e70
commit
cde8ac197e
@ -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(",");
|
||||
|
Loading…
x
Reference in New Issue
Block a user