|
@@ -119,17 +119,16 @@ public class tagents extends Controller {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- SQLFactory sqlFactory = new SQLFactory(this, "ºÏ×÷¾ÏúÉÌÁбí²éѯ");
|
|
|
|
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "ºÏ×÷¾ÏúÉÌÁбí²éѯ", pageSize, pageNumber, "t1.createdate");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("tagentsid", tagentsid);
|
|
sqlFactory.addParameter("tagentsid", tagentsid);
|
|
|
- sqlFactory.addParameter_SQL("where",where);
|
|
|
|
|
- System.err.println(sqlFactory.getSQL());
|
|
|
|
|
|
|
+ sqlFactory.addParameter_SQL("where", where);
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
RowsMap brandlogoRowsMap = getAttachmentUrl("tagents", rows.toArrayList("tcooperationagentsid"), "brandlogo");
|
|
RowsMap brandlogoRowsMap = getAttachmentUrl("tagents", rows.toArrayList("tcooperationagentsid"), "brandlogo");
|
|
|
for (Row row : rows) {
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", brandlogoRowsMap.get(row.getString("tcooperationagentsid")));
|
|
row.put("attinfos", brandlogoRowsMap.get(row.getString("tcooperationagentsid")));
|
|
|
}
|
|
}
|
|
|
- return getSucReturnObject().setData(rows).saveToDataPool().toString();
|
|
|
|
|
|
|
+ return getSucReturnObject().setDataByPaging(rows).saveToDataPool().toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -200,10 +199,10 @@ public class tagents extends Controller {
|
|
|
*/
|
|
*/
|
|
|
public String delete_cooperation() throws P2Exception {
|
|
public String delete_cooperation() throws P2Exception {
|
|
|
long tcooperationagentsid = content.getLong("tcooperationagentsid");//ºÏ×÷ÉÌID
|
|
long tcooperationagentsid = content.getLong("tcooperationagentsid");//ºÏ×÷ÉÌID
|
|
|
- SQLFactory sqlFactory=new SQLFactory(this,"¹©Ðèɾ³ý");
|
|
|
|
|
- sqlFactory.addParameter("siteid",siteid);
|
|
|
|
|
- sqlFactory.addParameter("tagentsid",tagentsid);
|
|
|
|
|
- sqlFactory.addParameter("tcooperationagentsid",tcooperationagentsid);
|
|
|
|
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "¹©Ðèɾ³ý");
|
|
|
|
|
+ sqlFactory.addParameter("siteid", siteid);
|
|
|
|
|
+ sqlFactory.addParameter("tagentsid", tagentsid);
|
|
|
|
|
+ sqlFactory.addParameter("tcooperationagentsid", tcooperationagentsid);
|
|
|
String status = dbConnect.runSqlUpdate(sqlFactory.getSQL());
|
|
String status = dbConnect.runSqlUpdate(sqlFactory.getSQL());
|
|
|
if ("true".equals(status)) {
|
|
if ("true".equals(status)) {
|
|
|
return getSucReturnObject().toString();
|
|
return getSucReturnObject().toString();
|