api doc and error update
This commit is contained in:
+1
-1
@@ -1717,7 +1717,7 @@ Request Body:{
|
|||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
<code class="method-response">{
|
<code class="method-response">{
|
||||||
"entityId": 10
|
"entityId": 16
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -63,9 +63,6 @@ when adjusting a disbursal - The server encountered an internal error () that pr
|
|||||||
list of loan transactions not available (except in summary presume repayments has repayments and waivers and adjusts)
|
list of loan transactions not available (except in summary presume repayments has repayments and waivers and adjusts)
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
Additional Fields
|
|
||||||
put right message for parameter not recognized etc.(plus tht 9 other jpwwrongmsg items)
|
|
||||||
|
|
||||||
should be able to get clients by branch as well (but not for now)
|
should be able to get clients by branch as well (but not for now)
|
||||||
also get loans of different status's by branch etc (but not for now)
|
also get loans of different status's by branch etc (but not for now)
|
||||||
|
|
||||||
|
|||||||
+14
-35
@@ -48,8 +48,7 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
db_connection = null;
|
db_connection = null;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(), "DataSource: "
|
e.getMessage(), "DataSource: " + dataSource);
|
||||||
+ dataSource);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,8 +81,7 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
// out.close();
|
// out.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new PlatformDataIntegrityException(
|
throw new PlatformDataIntegrityException(
|
||||||
"error.msg.exception.error", "JPWWRONGMSG - "
|
"error.msg.exception.error", e.getMessage());
|
||||||
+ e.getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -140,12 +138,6 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
public GenericResultset retrieveGenericResultset(final String name,
|
public GenericResultset retrieveGenericResultset(final String name,
|
||||||
final String type, final Map<String, String> queryParams) {
|
final String type, final Map<String, String> queryParams) {
|
||||||
|
|
||||||
if (name == null) {
|
|
||||||
throw new PlatformDataIntegrityException(
|
|
||||||
"error.msg.report.name.null",
|
|
||||||
"JPWWRONGMSG - Report Name is null.");
|
|
||||||
}
|
|
||||||
|
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
logger.info("STARTING REPORT: " + name + " Type: " + type);
|
logger.info("STARTING REPORT: " + name + " Type: " + type);
|
||||||
|
|
||||||
@@ -225,7 +217,7 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(), "Sql: " + sql);
|
e.getMessage(), "Sql: " + sql);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
@@ -321,7 +313,7 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
db_connection = null;
|
db_connection = null;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(), "Input Sql: " + inputSql);
|
e.getMessage(), "Input Sql: " + inputSql);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sql;
|
return sql;
|
||||||
@@ -359,8 +351,7 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
db_connection = null;
|
db_connection = null;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(),
|
e.getMessage(), "Additional Fields Type: " + type);
|
||||||
"Additional Fields Type: " + type);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return additionalFieldsSets;
|
return additionalFieldsSets;
|
||||||
@@ -474,9 +465,8 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(),
|
e.getMessage(), "Additional Fields Type: " + type
|
||||||
"Additional Fields Type: " + type + " Set: " + set
|
+ " Set: " + set + " Id: " + id);
|
||||||
+ " Id: " + id);
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
@@ -506,15 +496,6 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
logger.info("updateExtraData - type: " + type + " set: " + set
|
logger.info("updateExtraData - type: " + type + " set: " + set
|
||||||
+ " id: " + id);
|
+ " id: " + id);
|
||||||
|
|
||||||
logger.info("startjpw: ");
|
|
||||||
Set<String> keys = queryParams.keySet();
|
|
||||||
String pValue = "";
|
|
||||||
for (String key : keys) {
|
|
||||||
pValue = queryParams.get(key);
|
|
||||||
logger.info("jpw: " + key + " - " + pValue);
|
|
||||||
}
|
|
||||||
logger.info("endjpw: ");
|
|
||||||
|
|
||||||
checkResourceTypeThere(type, set);
|
checkResourceTypeThere(type, set);
|
||||||
String fullDatasetName = getFullDatasetName(type, set);
|
String fullDatasetName = getFullDatasetName(type, set);
|
||||||
String transType = getTransType(type, fullDatasetName, id);
|
String transType = getTransType(type, fullDatasetName, id);
|
||||||
@@ -533,9 +514,8 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
db_connection = null;
|
db_connection = null;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(),
|
e.getMessage(), "Additional Fields Type: " + type
|
||||||
"Additional Fields Type: " + type + " Set: " + set
|
+ " Set: " + set + " Id: " + id);
|
||||||
+ " Id: " + id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -563,9 +543,8 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(),
|
e.getMessage(), "Additional Fields Type: " + type
|
||||||
"Additional Fields Type: " + type + " Set: " + set
|
+ " Set: " + set + " Sql: " + sql);
|
||||||
+ " Sql: " + sql);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -601,9 +580,9 @@ public class ReadExtraDataAndReportingServiceImpl implements
|
|||||||
db_connection = null;
|
db_connection = null;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
throw new PlatformDataIntegrityException("error.msg.sql.error",
|
||||||
"JPWWRONGMSG - " + e.getMessage(),
|
e.getMessage(), "Additional Fields Type: " + type
|
||||||
"Additional Fields Type: " + type + " Full Set Name: "
|
+ " Full Set Name: " + fullDatasetName
|
||||||
+ fullDatasetName + " Sql: " + sql);
|
+ " Sql: " + sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
return transType;
|
return transType;
|
||||||
|
|||||||
Reference in New Issue
Block a user