|
@@ -66,6 +66,9 @@ public class TaSalesBatchServiceImpl extends ServiceImpl<TaSalesBatchMapper, TaS
|
66
|
66
|
@Autowired
|
67
|
67
|
private ITaBuildingService taBuildingService;
|
68
|
68
|
|
|
69
|
+ @Autowired
|
|
70
|
+ private TaRaiseServiceImpl taRaiseService;
|
|
71
|
+
|
69
|
72
|
@Override
|
70
|
73
|
public IPage<TaSalesBatch> selectByCondition(IPage<TaSalesBatch> page, String salesBatchName, String buildingId, Integer status, Integer orgId, List<TaPersonBuilding> taPersonBuildingListByUserId) {
|
71
|
74
|
return taSalesBatchMapper.selectByCondition(page, salesBatchName, buildingId, status, orgId, taPersonBuildingListByUserId);
|
|
@@ -125,6 +128,8 @@ public class TaSalesBatchServiceImpl extends ServiceImpl<TaSalesBatchMapper, TaS
|
125
|
128
|
Long totalHouses = null;
|
126
|
129
|
BigDecimal totalRealHeat = null;
|
127
|
130
|
BigDecimal totalHeat = null;
|
|
131
|
+ BigDecimal raiseRealNumber = null;
|
|
132
|
+ BigDecimal raiseNumber = null;
|
128
|
133
|
|
129
|
134
|
// 获取房源预选数量
|
130
|
135
|
Map<String, Object> result = taSalesBatchMapper.getTotalHousesAndHeat(salesBatchId);
|
|
@@ -132,14 +137,26 @@ public class TaSalesBatchServiceImpl extends ServiceImpl<TaSalesBatchMapper, TaS
|
132
|
137
|
totalHouses = (Long) result.get("totalHouses");
|
133
|
138
|
totalRealHeat = (BigDecimal) result.get("totalRealHeat");
|
134
|
139
|
totalHeat = (BigDecimal) result.get("totalHeat");
|
|
140
|
+ raiseRealNumber = (BigDecimal) result.get("raiseRealNumber");
|
|
141
|
+ raiseNumber = (BigDecimal) result.get("raiseNumber");
|
135
|
142
|
}
|
136
|
143
|
|
|
144
|
+ // 获取认筹信息
|
|
145
|
+ QueryWrapper<TaRaise> taRaiseQueryWrapper = new QueryWrapper<>();
|
|
146
|
+ taRaiseQueryWrapper.eq("sales_batch_id",salesBatch.getSalesBatchId());
|
|
147
|
+ taRaiseQueryWrapper.eq("status",CommConstant.STATUS_NORMAL);
|
|
148
|
+ TaRaise taRaise = taRaiseService.getOne(taRaiseQueryWrapper);
|
|
149
|
+
|
137
|
150
|
JSONObject obj = new JSONObject();
|
138
|
151
|
obj.put("preselectionStartTime", salesBatch.getPreselectionStartTime());
|
139
|
152
|
obj.put("preselectionEndTime", salesBatch.getPreselectionEndTime());
|
140
|
153
|
obj.put("salesNumber", totalHouses == null ? 0 : totalHouses);
|
141
|
154
|
obj.put("preselectionNumber", totalRealHeat == null ? 0 : totalRealHeat);
|
142
|
155
|
obj.put("heatNumber", totalHeat == null ? 0 : totalHeat);
|
|
156
|
+ obj.put("raiseRealNumber", raiseRealNumber == null ? 0 : raiseRealNumber);
|
|
157
|
+ obj.put("raiseNumber", raiseNumber == null ? 0 : raiseNumber);
|
|
158
|
+ obj.put("raiseStartTime", taRaise.getRaiseStartTime());
|
|
159
|
+ obj.put("raiseEndTime", taRaise.getRaiseEndTime());
|
143
|
160
|
responseBean.addSuccess(obj);
|
144
|
161
|
return responseBean;
|
145
|
162
|
}
|