|
|
@ -260,8 +260,11 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|
|
|
Connection conn;
|
|
|
|
Connection conn;
|
|
|
|
PreparedStatement stmt = null;
|
|
|
|
PreparedStatement stmt = null;
|
|
|
|
ResultSet rs = null;
|
|
|
|
ResultSet rs = null;
|
|
|
|
String sql = "SELECT count(AP_APP.ID) AS APP_COUNT "
|
|
|
|
String sql = "SELECT count(DISTINCT AP_APP.ID) AS APP_COUNT "
|
|
|
|
+ "FROM AP_APP "
|
|
|
|
+ "FROM AP_APP "
|
|
|
|
|
|
|
|
+ "LEFT JOIN AP_APP_RELEASE ON "
|
|
|
|
|
|
|
|
+ "AP_APP.ID = AP_APP_RELEASE.AP_APP_ID "
|
|
|
|
|
|
|
|
+ "INNER JOIN (SELECT ID FROM AP_APP) AS app_data ON app_data.ID = AP_APP.ID "
|
|
|
|
+ "WHERE AP_APP.TENANT_ID = ?";
|
|
|
|
+ "WHERE AP_APP.TENANT_ID = ?";
|
|
|
|
|
|
|
|
|
|
|
|
if (filter == null) {
|
|
|
|
if (filter == null) {
|
|
|
|