|
|
@ -319,7 +319,7 @@ public class SqlTask extends AbstractTask { |
|
|
|
String result = resultJSONArray.isEmpty() ? JSONUtils.toJsonString(generateEmptyRow(resultSet)) |
|
|
|
String result = resultJSONArray.isEmpty() ? JSONUtils.toJsonString(generateEmptyRow(resultSet)) |
|
|
|
: JSONUtils.toJsonString(resultJSONArray); |
|
|
|
: JSONUtils.toJsonString(resultJSONArray); |
|
|
|
|
|
|
|
|
|
|
|
if (sqlParameters.getSendEmail() == null || sqlParameters.getSendEmail()) { |
|
|
|
if (Boolean.TRUE.equals(sqlParameters.getSendEmail())) { |
|
|
|
sendAttachment(sqlParameters.getGroupId(), StringUtils.isNotEmpty(sqlParameters.getTitle()) |
|
|
|
sendAttachment(sqlParameters.getGroupId(), StringUtils.isNotEmpty(sqlParameters.getTitle()) |
|
|
|
? sqlParameters.getTitle() |
|
|
|
? sqlParameters.getTitle() |
|
|
|
: taskExecutionContext.getTaskName() + " query result sets", result); |
|
|
|
: taskExecutionContext.getTaskName() + " query result sets", result); |
|
|
|