|
@@ -91,6 +91,8 @@ public class DataDashboard extends Controller {
|
|
|
insertSQL.setValue("shareuserid", shareuserid);
|
|
insertSQL.setValue("shareuserid", shareuserid);
|
|
|
insertSQL.setValue("channel", channel);
|
|
insertSQL.setValue("channel", channel);
|
|
|
insertSQL.setValue("appname", appname);
|
|
insertSQL.setValue("appname", appname);
|
|
|
|
|
+ insertSQL.setValue("ownerid", content.getLongValue("ownerid"));
|
|
|
|
|
+ insertSQL.setValue("ownertable", content.getStringValue("ownertable"));
|
|
|
insertSQL.insert();
|
|
insertSQL.insert();
|
|
|
|
|
|
|
|
return getSucReturnObject().toString();
|
|
return getSucReturnObject().toString();
|
|
@@ -111,11 +113,11 @@ public class DataDashboard extends Controller {
|
|
|
}
|
|
}
|
|
|
if (whereObject.containsKey("begindate") && !"".equals(whereObject.getString("begindate"))) {
|
|
if (whereObject.containsKey("begindate") && !"".equals(whereObject.getString("begindate"))) {
|
|
|
begindate = whereObject.getStringValue("begindate");
|
|
begindate = whereObject.getStringValue("begindate");
|
|
|
- type=0;
|
|
|
|
|
|
|
+ type = 0;
|
|
|
}
|
|
}
|
|
|
if (whereObject.containsKey("enddate") && !"".equals(whereObject.getString("enddate"))) {
|
|
if (whereObject.containsKey("enddate") && !"".equals(whereObject.getString("enddate"))) {
|
|
|
enddate = whereObject.getStringValue("enddate");
|
|
enddate = whereObject.getStringValue("enddate");
|
|
|
- type=0;
|
|
|
|
|
|
|
+ type = 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -135,7 +137,7 @@ public class DataDashboard extends Controller {
|
|
|
t2.setWhere("lastrequestdate >= CURRENT_DATE - INTERVAL 30 DAY");
|
|
t2.setWhere("lastrequestdate >= CURRENT_DATE - INTERVAL 30 DAY");
|
|
|
}
|
|
}
|
|
|
if (!begindate.isEmpty() && !enddate.isEmpty()) {
|
|
if (!begindate.isEmpty() && !enddate.isEmpty()) {
|
|
|
- t2.setWhere("lastrequestdate >= '"+begindate+"' and lastrequestdate<='"+enddate+" 23:59:59'");
|
|
|
|
|
|
|
+ t2.setWhere("lastrequestdate >= '" + begindate + "' and lastrequestdate<='" + enddate + " 23:59:59'");
|
|
|
}
|
|
}
|
|
|
t2.addQueryFields("lastrequestdate", "max(lastrequestdate)");
|
|
t2.addQueryFields("lastrequestdate", "max(lastrequestdate)");
|
|
|
|
|
|
|
@@ -168,7 +170,7 @@ public class DataDashboard extends Controller {
|
|
|
share.setWhere("createdate >= CURRENT_DATE - INTERVAL 30 DAY");
|
|
share.setWhere("createdate >= CURRENT_DATE - INTERVAL 30 DAY");
|
|
|
}
|
|
}
|
|
|
if (!begindate.isEmpty() && !enddate.isEmpty()) {
|
|
if (!begindate.isEmpty() && !enddate.isEmpty()) {
|
|
|
- t2.setWhere("createdate >= '"+begindate+"' and createdate<='"+enddate+" 23:59:59'");
|
|
|
|
|
|
|
+ t2.setWhere("createdate >= '" + begindate + "' and createdate<='" + enddate + " 23:59:59'");
|
|
|
}
|
|
}
|
|
|
share.addGroupBy("createuserid");
|
|
share.addGroupBy("createuserid");
|
|
|
RowsMap shareRowsMap = share.query().toRowsMap("createuserid");
|
|
RowsMap shareRowsMap = share.query().toRowsMap("createuserid");
|
|
@@ -190,7 +192,7 @@ public class DataDashboard extends Controller {
|
|
|
appointment.setWhere("createdate >= CURRENT_DATE - INTERVAL 30 DAY");
|
|
appointment.setWhere("createdate >= CURRENT_DATE - INTERVAL 30 DAY");
|
|
|
}
|
|
}
|
|
|
if (!begindate.isEmpty() && !enddate.isEmpty()) {
|
|
if (!begindate.isEmpty() && !enddate.isEmpty()) {
|
|
|
- appointment.setWhere("createdate >= '"+begindate+"' and createdate<='"+enddate+" 23:59:59'");
|
|
|
|
|
|
|
+ appointment.setWhere("createdate >= '" + begindate + "' and createdate<='" + enddate + " 23:59:59'");
|
|
|
}
|
|
}
|
|
|
appointment.addGroupBy("createuserid");
|
|
appointment.addGroupBy("createuserid");
|
|
|
RowsMap appointmentRowsMap = appointment.query().toRowsMap("createuserid");
|
|
RowsMap appointmentRowsMap = appointment.query().toRowsMap("createuserid");
|