Browse Source

供需列表查询调整

吴志根 4 years ago
parent
commit
d9be6a91ba

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/SQL/供需详情查询_对话框列表.sql

@@ -6,4 +6,6 @@ from timdialog t1
 where t1.siteid = $siteid$
   and t1.ownertable = 'tsupplyanddemand'
   and t1.ownerid = $tsupplyanddemandid$
+  and t1.timdialog = '2'
+  and t4.tagentsid != $tagentsid$
 order by (select MAX (timdialogmessageid) timdialogmessageid from timdialogmessage where siteid=$siteid$ and timdialogid=t1.timdialogid group by timdialogid) desc

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/supplyanddemand.java

@@ -65,7 +65,7 @@ public class supplyanddemand extends Controller {
 
             SQLFactory dialoglistSQL = new SQLFactory(this, "供需详情查询_对话框列表");
             dialoglistSQL.addParameter("siteid", siteid);
-            dialoglistSQL.addParameter("tagentsid", tagentsid);
+            dialoglistSQL.addParameter("tagentsid", row.getString("tagentsid"));
             dialoglistSQL.addParameter("tsupplyanddemandid", row.getString("tsupplyanddemandid"));
             Rows dialogrows = dbConnect.runSqlQuery(dialoglistSQL.getSQL());