|
|
@@ -312,7 +312,7 @@ public class live extends Controller {
|
|
|
* @return
|
|
|
*/
|
|
|
public String applySYLive() throws P2Exception {
|
|
|
- PaoSetRemote paoSetRemote = getP2ServerSystemPaoSet("tliveapply", "siteid = '" + siteid + "' AND fissecret = 1 AND fstatus = 'ÉêÇë'");
|
|
|
+ PaoSetRemote paoSetRemote = getP2ServerSystemPaoSet("tliveapply", "siteid = '" + siteid + "' and tagentsid='" + tagentsid + "' AND fissecret = 1 AND fstatus = 'ÉêÇë'");
|
|
|
if (paoSetRemote.isEmpty()) {
|
|
|
PaoRemote paoRemote = paoSetRemote.addAtEnd();
|
|
|
paoRemote.setValue("CHANGEBY", username, 11L);
|
|
|
@@ -338,7 +338,6 @@ public class live extends Controller {
|
|
|
* @return
|
|
|
*/
|
|
|
public String getSYLiveSessionList() {
|
|
|
-
|
|
|
String channelid = content.getString("channelid");
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "˽ÓòÖ±²¥³¡´ÎÁбí²éѯ", pageSize, pageNumber, "createdate");
|
|
|
sqlFactory.addParameter("channelid", channelid);
|
|
|
@@ -357,7 +356,6 @@ public class live extends Controller {
|
|
|
public double getCount(String SQLMODELNAME, String fieldname, String channelid) {
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, SQLMODELNAME);
|
|
|
sqlFactory.addParameter("channelid", channelid);
|
|
|
- System.err.println(sqlFactory.getSQL());
|
|
|
Rows rows = sqlFactory.runSqlQuery();
|
|
|
return rows.isEmpty() ? 0 : rows.get(0).getDouble(fieldname);
|
|
|
}
|