|
|
@@ -60,6 +60,11 @@ public class homepage extends Controller {
|
|
|
StringBuffer where = new StringBuffer(" 1=1 ");
|
|
|
if (content.containsKey("where")) {
|
|
|
JSONObject whereObject = content.getJSONObject("where");
|
|
|
+ if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
+ where.append(" and(");
|
|
|
+ where.append("t1.ftitle like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
+ where.append(")");
|
|
|
+ }
|
|
|
if (whereObject.containsKey("ftype") && !"".equals(whereObject.getString("ftype"))) {
|
|
|
where.append(" and t1.ftype ='").append(whereObject.getString("ftype")).append("' ");
|
|
|
}
|
|
|
@@ -87,6 +92,12 @@ public class homepage extends Controller {
|
|
|
long tsupplyanddemandid = content.getLongValue("tsupplyanddemandid");
|
|
|
long tagentsid = content.getLongValue("tagentsid");
|
|
|
|
|
|
+ /**
|
|
|
+ * ÔĶÁ´ÎÊý+1
|
|
|
+ */
|
|
|
+ dbConnect.runSqlUpdate("update tsupplyanddemand set freadtimes=isnull(freadtimes,0)+1 where siteid='" + siteid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
|
|
|
+
|
|
|
+
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "¹©ÐèÏêÇé²éѯ");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("tagentsid", tagentsid);
|