Преглед на файлове

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

张延森 преди 5 години
родител
ревизия
0777c5fbf2

+ 5
- 0
src/main/java/com/huiju/estateagents/bo/request/RaiseOrderRequestBO.java Целия файл

23
      */
23
      */
24
     private Integer orderId;
24
     private Integer orderId;
25
 
25
 
26
+    /**
27
+     * 订单表ID
28
+     */
29
+    private Integer refundedOrderId;
30
+
26
     /**
31
     /**
27
      * 认筹单表ID
32
      * 认筹单表ID
28
      */
33
      */

+ 6
- 1
src/main/java/com/huiju/estateagents/controller/TaHousingResourcesController.java Целия файл

55
     @Autowired
55
     @Autowired
56
     public ITaBuildingImgService taBuildingImgService;
56
     public ITaBuildingImgService taBuildingImgService;
57
 
57
 
58
+    @Autowired
59
+    public ITaSalesBatchService taSalesBatchService;
60
+
58
     /**
61
     /**
59
      * 分页查询列表
62
      * 分页查询列表
60
      *
63
      *
262
             QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
265
             QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
263
             taRaiseHouseQueryWrapper.in(taRaiseRecordList.size() > 0, "raise_record_id", taRaiseRecordList.stream().map(TaRaiseRecord::getRaiseRecordId).collect(Collectors.toList()));
266
             taRaiseHouseQueryWrapper.in(taRaiseRecordList.size() > 0, "raise_record_id", taRaiseRecordList.stream().map(TaRaiseRecord::getRaiseRecordId).collect(Collectors.toList()));
264
             List<TaRaiseHouse> taRaiseHouseList = taRaiseHouseService.list(taRaiseHouseQueryWrapper);
267
             List<TaRaiseHouse> taRaiseHouseList = taRaiseHouseService.list(taRaiseHouseQueryWrapper);
265
-
268
+            TaSalesBatch taSalesBatch = taSalesBatchService.getById(salesBatchId);
266
             taHousingResourcesPOList.forEach(e -> {
269
             taHousingResourcesPOList.forEach(e -> {
267
                 taPreselectionRecordList.forEach(p -> {
270
                 taPreselectionRecordList.forEach(p -> {
268
                     //我的预选
271
                     //我的预选
293
                     List<TaBuildingImg> apartMentList = taBuildingImgService.getAparemnetList(apartMentIds);
296
                     List<TaBuildingImg> apartMentList = taBuildingImgService.getAparemnetList(apartMentIds);
294
                     e.setApartmentImgList(apartMentList);
297
                     e.setApartmentImgList(apartMentList);
295
                 }
298
                 }
299
+
300
+                e.setDisplayHousePrice(taSalesBatch.getDisplayHousePrice());
296
             });
301
             });
297
 
302
 
298
             responseBean.addSuccess(taHousingResourcesPOList);
303
             responseBean.addSuccess(taHousingResourcesPOList);

+ 6
- 0
src/main/java/com/huiju/estateagents/entity/TaRaiseRecord.java Целия файл

240
      */
240
      */
241
     @TableField(exist = false)
241
     @TableField(exist = false)
242
     private String captcha;
242
     private String captcha;
243
+
244
+    /**
245
+     * 订单id
246
+     */
247
+    @TableField(exist = false)
248
+    private Integer refundedOrderId;
243
 }
249
 }

+ 11
- 1
src/main/java/com/huiju/estateagents/service/impl/TaPreselectionRecordServiceImpl.java Целия файл

16
 import com.huiju.estateagents.mapper.TaPreselectionRecordMapper;
16
 import com.huiju.estateagents.mapper.TaPreselectionRecordMapper;
17
 import com.huiju.estateagents.po.TaHousingResourcesPO;
17
 import com.huiju.estateagents.po.TaHousingResourcesPO;
18
 import com.huiju.estateagents.po.TaPreselectionRecordPO;
18
 import com.huiju.estateagents.po.TaPreselectionRecordPO;
19
+import com.huiju.estateagents.service.ITaBuildingApartmentService;
19
 import com.huiju.estateagents.service.ITaHousingResourcesService;
20
 import com.huiju.estateagents.service.ITaHousingResourcesService;
20
 import com.huiju.estateagents.service.ITaPreselectionRecordService;
21
 import com.huiju.estateagents.service.ITaPreselectionRecordService;
21
 import org.apache.commons.collections.CollectionUtils;
22
 import org.apache.commons.collections.CollectionUtils;
66
     @Autowired
67
     @Autowired
67
     private ITaHousingResourcesService taHousingResourcesService;
68
     private ITaHousingResourcesService taHousingResourcesService;
68
 
69
 
70
+    @Autowired
71
+    public ITaBuildingApartmentService taBuildingApartmentService;
72
+
69
 
73
 
70
     @Override
74
     @Override
71
     public IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId,
75
     public IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId,
107
             housingQueryWrapper.eq("org_id", record.getOrgId());
111
             housingQueryWrapper.eq("org_id", record.getOrgId());
108
             housingQueryWrapper.eq("house_id", record.getHouseId());
112
             housingQueryWrapper.eq("house_id", record.getHouseId());
109
             housingQueryWrapper.ne("status", -1);
113
             housingQueryWrapper.ne("status", -1);
110
-            record.setHousingInfo(taHousingResourcesService.getOne(housingQueryWrapper));
114
+            TaHousingResources housingResources = taHousingResourcesService.getOne(housingQueryWrapper);
115
+            //户型图name
116
+            TaBuildingApartment buildingApartment = taBuildingApartmentService.getById(housingResources.getApartmentId());
117
+            housingResources.setApartmentName(buildingApartment.getApartmentName());
118
+            housingResources.setBuildingArea(buildingApartment.getBuildingArea());
119
+            housingResources.setInsideArea(buildingApartment.getInsideArea());
120
+            record.setHousingInfo(housingResources);
111
         });
121
         });
112
 
122
 
113
         iPage.setRecords(resultList);
123
         iPage.setRecords(resultList);

+ 0
- 1
src/main/resources/mapper/TaHousingResourcesMapper.xml Целия файл

46
             AND t4.`status` = 1
46
             AND t4.`status` = 1
47
         <if test = "source == 'raiseChoose'">
47
         <if test = "source == 'raiseChoose'">
48
             AND ( t6.`status` != 0 OR t6.`status` IS NULL )
48
             AND ( t6.`status` != 0 OR t6.`status` IS NULL )
49
-            --AND (t.house_locking_status  != 'locked' OR t.house_locking_status IS NULL)
50
             AND t7.raise_start_time &lt;= now() AND t7.raise_end_time &gt;= now()
49
             AND t7.raise_start_time &lt;= now() AND t7.raise_end_time &gt;= now()
51
             <if test="personId != null and personId != ''">
50
             <if test="personId != null and personId != ''">
52
                 AND (t6.person_id != #{personId} OR t6.person_id IS NULL)
51
                 AND (t6.person_id != #{personId} OR t6.person_id IS NULL)

+ 5
- 1
src/main/resources/mapper/TaRaiseRecordMapper.xml Целия файл

139
             t2.trade_no,
139
             t2.trade_no,
140
             t2.transaction_id,
140
             t2.transaction_id,
141
             t4.refund_no,
141
             t4.refund_no,
142
+            t4.order_id as refunded_order_id,
142
             t2.total_fee
143
             t2.total_fee
143
         FROM
144
         FROM
144
             ta_raise_record t
145
             ta_raise_record t
154
             <if test = "bo.orderId != null and bo.orderId != ''">
155
             <if test = "bo.orderId != null and bo.orderId != ''">
155
                 AND t2.order_id = #{bo.orderId}
156
                 AND t2.order_id = #{bo.orderId}
156
             </if>
157
             </if>
158
+            <if test = "bo.refundedOrderId != null and bo.refundedOrderId != ''">
159
+                AND t4.order_id = #{bo.refundedOrderId}
160
+            </if>
157
             <if test = "bo.raiseRecordId != null and bo.raiseRecordId != ''">
161
             <if test = "bo.raiseRecordId != null and bo.raiseRecordId != ''">
158
                 AND t.raise_record_id = #{bo.raiseRecordId}
162
                 AND t.raise_record_id = #{bo.raiseRecordId}
159
             </if>
163
             </if>
173
                 AND t2.refund_no = #{bo.refundNo}
177
                 AND t2.refund_no = #{bo.refundNo}
174
             </if>
178
             </if>
175
             <if test = "bo.payStatus == 'paid'">
179
             <if test = "bo.payStatus == 'paid'">
176
-                AND t.pay_status = #{bo.payStatus}
180
+                AND t.pay_status IN ('refunded','paid')
177
             </if>
181
             </if>
178
             <if test = "bo.payStatus == 'refunded'">
182
             <if test = "bo.payStatus == 'refunded'">
179
                 AND t.pay_status IN ('refunded','change')
183
                 AND t.pay_status IN ('refunded','change')