|
@@ -27,6 +27,7 @@ public class supplyanddemand extends Controller {
|
|
|
* @return
|
|
|
*/
|
|
|
public String query_supplyanddemandList() {
|
|
|
+ String fstatus = "";
|
|
|
/**
|
|
|
*排序条件设置
|
|
|
*/
|
|
@@ -50,15 +51,24 @@ public class supplyanddemand extends Controller {
|
|
|
where.append(" and t1.fissupply =").append(whereObject.getBooleanValue("fissupply") ? 1 : 0);
|
|
|
}
|
|
|
if (whereObject.containsKey("fstatus") && !"".equals(whereObject.getString("fstatus"))) {
|
|
|
+ fstatus = whereObject.getString("fstatus");
|
|
|
if ("对接中".equals(whereObject.getString("fstatus"))) {
|
|
|
- where.append(" and t1.fstatus ='").append(whereObject.getString("fstatus")).append("' and tenterprise_userid!=" + userid);
|
|
|
+ where.append(" and t1.fstatus ='").append(whereObject.getString("fstatus")).append("' and t1.tenterprise_userid !=" + userid);
|
|
|
} else {
|
|
|
where.append(" and t1.fstatus ='").append(whereObject.getString("fstatus")).append("'");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- SQLFactory sqlFactory = new SQLFactory(this, "供需列表查询", pageSize, pageNumber, sort);
|
|
|
+ SQLFactory sqlFactory;
|
|
|
+ if (fstatus.equals("对接中")) {
|
|
|
+ sqlFactory = new SQLFactory(this, "供需列表查询_对接中", pageSize, pageNumber, sort);
|
|
|
+ } else {
|
|
|
+ sqlFactory = new SQLFactory(this, "供需列表查询", pageSize, pageNumber, sort);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
+ sqlFactory.addParameter("userid", userid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
|
|
|
// System.err.println(sqlFactory.getSQL());
|
|
@@ -87,7 +97,7 @@ public class supplyanddemand extends Controller {
|
|
|
for (Row newmsg : newmsgrows) {
|
|
|
try {
|
|
|
newmsg.put("message", JSONObject.parseObject(newmsg.getString("message")));
|
|
|
- }catch (Exception e){
|
|
|
+ } catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
newmsg.put("message", "{}");
|
|
|
}
|