Преглед на файлове

商户通告过滤条件修改

沈静伟 преди 4 години
родител
ревизия
9e9a402442
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      src/dsb/com/cnd3b/restcontroller/customer/notice/notice.java

+ 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 (");