Переглянути джерело

商户通告过滤条件修改

沈静伟 4 роки тому
батько
коміт
9e9a402442

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

@@ -42,7 +42,11 @@ public class notice extends Controller {
                 where.append(")");
             }
             if (whereObject.containsKey("ftype") && !"".equals(whereObject.getString("ftype"))) {
-                where.append(" and t1.ftype='").append(whereObject.getString("ftype")).append("'");
+                if ("ÍŶÓ".equals(whereObject.getString("ftype"))) {
+                    where.append(" and t1.tagentsid='").append(tagentsid).append("' and  t1.ftype='").append(whereObject.getString("ftype")).append("'");
+                } else {
+                    where.append(" and t1.ftype='").append(whereObject.getString("ftype")).append("'");
+                }
             }
             String ftype = getAgent(tagentsid).getString("ftype");
             where.append(" and (");