浏览代码

资讯和积分商城

傅行帆 4 年前
父节点
当前提交
b59310f2bf

+ 4
- 4
src/main/java/com/huiju/estateagents/service/impl/TaNewsServiceImpl.java 查看文件

137
         //-- 校验 公司,楼盘,资讯类型
137
         //-- 校验 公司,楼盘,资讯类型
138
         // TODO 公司校验没有写 taNews.getOrgId()
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
         TaNewsType taNewsType = iTaNewsTypeService.getById(taNews.getNewsTypeId());
144
         TaNewsType taNewsType = iTaNewsTypeService.getById(taNews.getNewsTypeId());
145
         if (null == taNewsType) {
145
         if (null == taNewsType) {
146
             throw new EstaException("资讯类型不存在!");
146
             throw new EstaException("资讯类型不存在!");

+ 4
- 4
src/main/java/com/huiju/estateagents/service/impl/TaNewsTypeServiceImpl.java 查看文件

105
     }
105
     }
106
 
106
 
107
     private void check(TaNewsType taNewsType) {
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
         if (taNewsType.getStatus() != null && taNewsType.getStatus() == -1) {
112
         if (taNewsType.getStatus() != null && taNewsType.getStatus() == -1) {
113
             QueryWrapper<TaNews> queryWrapper = new QueryWrapper<>();
113
             QueryWrapper<TaNews> queryWrapper = new QueryWrapper<>();
114
             queryWrapper.gt("status", -1);
114
             queryWrapper.gt("status", -1);