|
@@ -9,15 +9,9 @@ import com.huiju.estateagents.common.CommConstant;
|
9
|
9
|
import com.huiju.estateagents.common.StringUtils;
|
10
|
10
|
import com.huiju.estateagents.entity.*;
|
11
|
11
|
import com.huiju.estateagents.mapper.*;
|
12
|
|
-import com.huiju.estateagents.mapper.TaApartmentImgMapper;
|
13
|
|
-import com.huiju.estateagents.mapper.TaBuildingImgMapper;
|
14
|
|
-import com.huiju.estateagents.mapper.TaHousingResourcesMapper;
|
15
|
|
-import com.huiju.estateagents.mapper.TaPreselectionRecordMapper;
|
16
|
12
|
import com.huiju.estateagents.po.BuildingImgPO;
|
17
|
13
|
import com.huiju.estateagents.po.TaHousingResourcesPO;
|
18
|
14
|
import com.huiju.estateagents.service.ITaHousingResourcesService;
|
19
|
|
-import com.huiju.estateagents.service.ITaPersonService;
|
20
|
|
-import io.swagger.models.auth.In;
|
21
|
15
|
import org.apache.commons.collections.CollectionUtils;
|
22
|
16
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
23
|
17
|
import org.apache.poi.ss.usermodel.Row;
|
|
@@ -107,19 +101,43 @@ public class TaHousingResourcesServiceImpl extends ServiceImpl<TaHousingResource
|
107
|
101
|
* @param startPrice
|
108
|
102
|
* @param endPrice
|
109
|
103
|
* @param apartmentId
|
|
104
|
+ * @return
|
|
105
|
+ */
|
|
106
|
+ @Override
|
|
107
|
+ public List<TaHousingResourcesPO> listHousingResources(Integer orgId, String salesBatchId, String startPrice, String endPrice, String apartmentId,
|
|
108
|
+ String personId, String source) {
|
|
109
|
+ logger.info("listHousingResources 接收参数:orgId:{},salesBatchId:{},startPrice:{},endPrice:{},apartmentId:{},source:{}",
|
|
110
|
+ orgId, salesBatchId, startPrice, endPrice, apartmentId, source);
|
|
111
|
+
|
|
112
|
+ startPrice = StringUtils.isEmpty(startPrice) ? null : startPrice;
|
|
113
|
+ endPrice = StringUtils.isEmpty(endPrice) ? null : endPrice;
|
|
114
|
+
|
|
115
|
+ List<TaHousingResourcesPO> resourcesPOList =
|
|
116
|
+ taHousingResourcesMapper.listHousingResources(orgId, salesBatchId, startPrice, endPrice, apartmentId, personId, source);
|
|
117
|
+
|
|
118
|
+ return resourcesPOList;
|
|
119
|
+ }
|
|
120
|
+
|
|
121
|
+ /**
|
|
122
|
+ * 分页获取房源列表-后台管理端
|
|
123
|
+ *
|
|
124
|
+ * @param salesBatchId 销售批次ID
|
|
125
|
+ * @param startPrice
|
|
126
|
+ * @param endPrice
|
|
127
|
+ * @param apartmentId
|
110
|
128
|
* @param type
|
111
|
129
|
* @return
|
112
|
130
|
*/
|
113
|
131
|
@Override
|
114
|
|
- public List<TaHousingResourcesPO> listHousingResources(Integer orgId, String salesBatchId, String startPrice, String endPrice, String apartmentId, Integer type) {
|
115
|
|
- logger.info("listHousingResources 接收参数:orgId:{},salesBatchId:{},startPrice:{},endPrice:{},apartmentId:{},type:{}",
|
|
132
|
+ public List<TaHousingResourcesPO> listHousingResourcesForCms(Integer orgId, String salesBatchId, String startPrice, String endPrice, String apartmentId, Integer type) {
|
|
133
|
+ logger.info("listHousingResourcesForCms 接收参数:orgId:{},salesBatchId:{},startPrice:{},endPrice:{},apartmentId:{},type:{}",
|
116
|
134
|
orgId, salesBatchId, startPrice, endPrice, apartmentId, type);
|
117
|
135
|
|
118
|
136
|
startPrice = StringUtils.isEmpty(startPrice) ? null : startPrice;
|
119
|
137
|
endPrice = StringUtils.isEmpty(endPrice) ? null : endPrice;
|
120
|
138
|
|
121
|
139
|
List<TaHousingResourcesPO> resourcesPOList =
|
122
|
|
- taHousingResourcesMapper.listHousingResources(orgId, salesBatchId, startPrice, endPrice, apartmentId, type);
|
|
140
|
+ taHousingResourcesMapper.listHousingResourcesForCms(orgId, salesBatchId, startPrice, endPrice, apartmentId, type);
|
123
|
141
|
|
124
|
142
|
return resourcesPOList;
|
125
|
143
|
}
|
|
@@ -257,7 +275,7 @@ public class TaHousingResourcesServiceImpl extends ServiceImpl<TaHousingResource
|
257
|
275
|
TaRaise taRaise = taRaiseMapper.selectOne(taRaiseQueryWrapper);
|
258
|
276
|
if (null == taRaise) {
|
259
|
277
|
resourcesPO.setRaiseBtn(false);
|
260
|
|
- }else{
|
|
278
|
+ } else {
|
261
|
279
|
resourcesPO.setTaRaise(taRaise);
|
262
|
280
|
}
|
263
|
281
|
|
|
@@ -667,7 +685,7 @@ public class TaHousingResourcesServiceImpl extends ServiceImpl<TaHousingResource
|
667
|
685
|
responseBean.addSuccess(taRaiseHouseService.updateById(raiseHouse));
|
668
|
686
|
return responseBean;
|
669
|
687
|
}
|
670
|
|
- responseBean.addError("无权操作");
|
|
688
|
+ responseBean.addError("权限不足");
|
671
|
689
|
return responseBean;
|
672
|
690
|
}
|
673
|
691
|
|
|
@@ -693,7 +711,7 @@ public class TaHousingResourcesServiceImpl extends ServiceImpl<TaHousingResource
|
693
|
711
|
responseBean.addSuccess(taRaiseHouseService.updateById(raiseHouse));
|
694
|
712
|
return responseBean;
|
695
|
713
|
}
|
696
|
|
- responseBean.addError("无权操作");
|
|
714
|
+ responseBean.addError("权限不足");
|
697
|
715
|
return responseBean;
|
698
|
716
|
}
|
699
|
717
|
responseBean.addError("fail");
|