修改
This commit is contained in:
@@ -413,12 +413,12 @@ public class LmsToMesServiceImpl implements LmsToMesService {
|
||||
|
||||
String RTYPE = result.getString("RTYPE");
|
||||
if (RTYPE.equals("E")){
|
||||
throw new BadRequestException(result.getString("RTMSG"));
|
||||
throw new BadRequestException("MES提示错误:"+result.getString("RTMSG"));
|
||||
}
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
throw new BadRequestException("MES提示错误:"+e.getMessage());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -458,12 +458,12 @@ public class LmsToMesServiceImpl implements LmsToMesService {
|
||||
|
||||
String RTYPE = result.getString("RTYPE");
|
||||
if (RTYPE.equals("E")){
|
||||
throw new BadRequestException(result.getString("RTMSG"));
|
||||
throw new BadRequestException("MES提示错误:"+result.getString("RTMSG"));
|
||||
}
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
throw new BadRequestException("MES提示错误:"+e.getMessage());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -67,11 +67,11 @@ public class LmsToSapServiceImpl implements LmsToSapService {
|
||||
|
||||
String type = result.getString("TYPE");
|
||||
if (StrUtil.equals(type, "E")) {
|
||||
throw new BadRequestException(result.getString("MESSAGE"));
|
||||
throw new BadRequestException("SAP提示错误:"+result.getString("MESSAGE"));
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
throw new BadRequestException("SAP提示错误:"+e.getMessage());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -131,11 +131,11 @@ public class LmsToSapServiceImpl implements LmsToSapService {
|
||||
|
||||
String type = result.getString("TYPE");
|
||||
if (StrUtil.equals(type, "E")) {
|
||||
throw new BadRequestException(result.getString("MESSAGE"));
|
||||
throw new BadRequestException("SAP提示错误:"+result.getString("MESSAGE"));
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
throw new BadRequestException("SAP提示错误:"+e.getMessage());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user