소스 검색

解决收藏不能查询属性问题

gushoubang 4 달 전
부모
커밋
caf719c50b

+ 2 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/yzt/ZymlServiceImpl.java

@@ -221,6 +221,8 @@ public class ZymlServiceImpl implements IZymlService {
                 c.setFavorite(cur.getMy());
                 c.setUrl(cur.getUrl());
                 c.setLegend(cur.getLegend());
+                c.setFwmc(cur.getFwmc());
+                c.setFwys(cur.getFwys());
                 treedata.add(c);
             }
             return RequestResult.success("成功", treedata);

+ 3 - 1
onemap-modules/onemap-apply/src/main/resources/mapper/oracle/yzt/ZymlMapper.xml

@@ -155,7 +155,9 @@
           t.gltj as "gltj",
           t.sjly as "sjly",
           t.legend as "legend",
-        t.ywlx as "ywlx",
+          t.ywlx as "ywlx",
+          t.fwmc AS "fwmc",
+          t.fwys AS "fwys",
         #{username} as "my",
           null as "fzbsm",
           to_char(res.datetime ,'yyyy-MM-dd hh24:mi:ss') as "datetime",

+ 3 - 1
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/yzt/ZymlMapper.xml

@@ -227,7 +227,9 @@
           t.gltj as "gltj",
           t.sjly as "sjly",
           t.legend as "legend",
-        t.ywlx as "ywlx",
+          t.ywlx as "ywlx",
+          t.fwmc AS "fwmc",
+          t.fwys AS "fwys",
         #{username} as "my",
         #{username} as "favorite"
        from T_YZT_ZYML t