Parcourir la source

资讯和积分商城

傅行帆 il y a 4 ans
Parent
révision
b59310f2bf

+ 4
- 4
src/main/java/com/huiju/estateagents/service/impl/TaNewsServiceImpl.java Voir le fichier

@@ -137,10 +137,10 @@ public class TaNewsServiceImpl extends ServiceImpl<TaNewsMapper, TaNews> impleme
137 137
         //-- 校验 公司,楼盘,资讯类型
138 138
         // TODO 公司校验没有写 taNews.getOrgId()
139 139
 
140
-        TaBuilding taBuilding = iTaBuildingService.getById(taNews.getBuildingId());
141
-        if (null == taBuilding) {
142
-            throw new EstaException("楼盘不存在!");
143
-        }
140
+//        TaBuilding taBuilding = iTaBuildingService.getById(taNews.getBuildingId());
141
+//        if (null == taBuilding) {
142
+//            throw new EstaException("楼盘不存在!");
143
+//        }
144 144
         TaNewsType taNewsType = iTaNewsTypeService.getById(taNews.getNewsTypeId());
145 145
         if (null == taNewsType) {
146 146
             throw new EstaException("资讯类型不存在!");

+ 4
- 4
src/main/java/com/huiju/estateagents/service/impl/TaNewsTypeServiceImpl.java Voir le fichier

@@ -105,10 +105,10 @@ public class TaNewsTypeServiceImpl extends ServiceImpl<TaNewsTypeMapper, TaNewsT
105 105
     }
106 106
 
107 107
     private void check(TaNewsType taNewsType) {
108
-        TaBuilding taBuilding = iTaBuildingService.getById(taNewsType.getBuildingId());
109
-        if (null == taBuilding) {
110
-            throw new EstaException("楼盘不存在!");
111
-        }
108
+//        TaBuilding taBuilding = iTaBuildingService.getById(taNewsType.getBuildingId());
109
+//        if (null == taBuilding) {
110
+//            throw new EstaException("楼盘不存在!");
111
+//        }
112 112
         if (taNewsType.getStatus() != null && taNewsType.getStatus() == -1) {
113 113
             QueryWrapper<TaNews> queryWrapper = new QueryWrapper<>();
114 114
             queryWrapper.gt("status", -1);