顾绍勇 před 5 roky
rodič
revize
a65ba9a708

+ 2
- 2
src/main/java/com/huiju/estateagents/controller/TaPreselectionRecordController.java Zobrazit soubor

@@ -195,7 +195,7 @@ public class TaPreselectionRecordController extends BaseController {
195 195
      */
196 196
     @RequestMapping(value = "/wx/listPreselectionRecord", method = RequestMethod.GET)
197 197
     public ResponseBean listPreselectionRecord(@RequestParam(value = "buildingId", required = false) String buildingId,
198
-                                               @RequestParam(value = "salesBtchId", required = false) Integer salesBtchId,
198
+                                               @RequestParam(value = "salesBatchId", required = false) Integer salesBatchId,
199 199
                                                @RequestParam(value = "apartmentId", required = false) String apartmentId,
200 200
                                                @RequestParam(value = "houseLockingStatus", required = false) String houseLockingStatus,
201 201
                                                @RequestParam(value = "customerLocked", required = false) String customerLocked,
@@ -206,7 +206,7 @@ public class TaPreselectionRecordController extends BaseController {
206 206
         ResponseBean responseBean = new ResponseBean();
207 207
         Integer orgId = getOrgId(request);
208 208
         try {
209
-            responseBean.addSuccess(iTaPreselectionRecordService.listPreselectionRecord(pageNumber, pageSize, orgId, personId, buildingId, salesBtchId, apartmentId, houseLockingStatus, customerLocked));
209
+            responseBean.addSuccess(iTaPreselectionRecordService.listPreselectionRecord(pageNumber, pageSize, orgId, personId, buildingId, salesBatchId, apartmentId, houseLockingStatus, customerLocked));
210 210
         } catch (Exception e) {
211 211
             logger.error("listPreselectionRecord -=- {}", e);
212 212
             responseBean.addError(e.getMessage());

+ 2
- 2
src/main/java/com/huiju/estateagents/controller/TaSalesBatchController.java Zobrazit soubor

@@ -152,7 +152,7 @@ public class TaSalesBatchController extends BaseController {
152 152
                 preselectionQueryWrapper.eq("status", 1);
153 153
                 TaPreselection preselection = taPreselectionService.getOne(preselectionQueryWrapper);
154 154
                 if (preselection != null) {
155
-                    responseBean.addError(String.format("销售批次%s关联有预选,请先删除关联的预选模块", ts.getSalesBatchId()));
155
+                    responseBean.addError(String.format("销售批次%s关联有预选,请先删除关联的预选模块", ts.getSalesBatchName()));
156 156
                     return responseBean;
157 157
                 }
158 158
 
@@ -163,7 +163,7 @@ public class TaSalesBatchController extends BaseController {
163 163
                 raiseQueryWrapper.eq("status", 1);
164 164
                 TaRaise raise = taRaiseService.getOne(raiseQueryWrapper);
165 165
                 if (raise != null) {
166
-                    responseBean.addError(String.format("销售批次%s关联有认筹,请先删除关联的预选模块", ts.getSalesBatchId()));
166
+                    responseBean.addError(String.format("销售批次%s关联有认筹,请先删除关联的预选模块", ts.getSalesBatchName()));
167 167
                     return responseBean;
168 168
                 }
169 169
             }

+ 1
- 1
src/main/java/com/huiju/estateagents/entity/TaRaise.java Zobrazit soubor

@@ -13,7 +13,7 @@ import java.util.List;
13 13
 
14 14
 /**
15 15
  * <p>
16
- * 认筹表 
16
+ * 认筹表
17 17
  * </p>
18 18
  *
19 19
  * @author jobob

+ 1
- 1
src/main/java/com/huiju/estateagents/mapper/TaPreselectionRecordMapper.java Zobrazit soubor

@@ -33,7 +33,7 @@ public interface TaPreselectionRecordMapper extends BaseMapper<TaPreselectionRec
33 33
      */
34 34
     IPage<TaPreselectionRecordPO> listPreselectionRecord(IPage<TaPreselectionRecordPO> iPage,
35 35
                                                          @Param("orgId") Integer orgId,
36
-                                                         @Param("personId") String personId, @Param("buildingId") String buildingId, @Param("salesBtchId") Integer salesBtchId,
36
+                                                         @Param("personId") String personId, @Param("buildingId") String buildingId, @Param("salesBatchId") Integer salesBatchId,
37 37
                                                          @Param("apartmentId") String apartmentId, @Param("houseLockingStatus") String houseLockingStatus, @Param("customerLocked") String customerLocked);
38 38
 
39 39
     /**

+ 1
- 1
src/main/java/com/huiju/estateagents/service/ITaPreselectionRecordService.java Zobrazit soubor

@@ -28,7 +28,7 @@ public interface ITaPreselectionRecordService extends IService<TaPreselectionRec
28 28
      * @param personId
29 29
      * @return
30 30
      */
31
-    IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId, Integer salesBtchId, String apartmentId, String houseLockingStatus, String customerLocked);
31
+    IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId, Integer salesBatchId, String apartmentId, String houseLockingStatus, String customerLocked);
32 32
 
33 33
     /**
34 34
      * 添加预选记录预选

+ 2
- 2
src/main/java/com/huiju/estateagents/service/impl/TaPreselectionRecordServiceImpl.java Zobrazit soubor

@@ -68,11 +68,11 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
68 68
 
69 69
 
70 70
     @Override
71
-    public IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId, Integer salesBtchId, String apartmentId, String houseLockingStatus, String customerLocked) {
71
+    public IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId, Integer salesBatchId, String apartmentId, String houseLockingStatus, String customerLocked) {
72 72
         logger.info("listPreselectionRecord 接收参数:pageNum:{},pageSize:{},orgId:{},personId:{}", pageNum, pageSize, orgId, personId);
73 73
 
74 74
         IPage<TaPreselectionRecordPO> iPage = new Page<>(pageNum, pageSize);
75
-        iPage = taPreselectionRecordMapper.listPreselectionRecord(iPage, orgId, personId, buildingId, salesBtchId, apartmentId, houseLockingStatus, customerLocked);
75
+        iPage = taPreselectionRecordMapper.listPreselectionRecord(iPage, orgId, personId, buildingId, salesBatchId, apartmentId, houseLockingStatus, customerLocked);
76 76
 
77 77
         List<TaPreselectionRecordPO> poList = iPage.getRecords();
78 78
         if (CollectionUtils.isEmpty(poList)) {

+ 9
- 9
src/main/java/com/huiju/estateagents/service/impl/TaRaiseServiceImpl.java Zobrazit soubor

@@ -83,7 +83,7 @@ public class TaRaiseServiceImpl extends ServiceImpl<TaRaiseMapper, TaRaise> impl
83 83
             taRaiseRecordQueryWrapper.eq("status", 1);
84 84
             List<TaRaiseRecord> list = taRaiseRecordMapper.selectList(taRaiseRecordQueryWrapper);
85 85
             if (CollectionUtils.isNotEmpty(list)) {
86
-                responseBean.addError(String.format("销售批次%s下已有认筹记录,不可删除", tr.getSalesBatchId()));
86
+                responseBean.addError(String.format("销售批次%s下已有认筹记录,不可删除", tr.getSalesBatchName()));
87 87
                 return responseBean;
88 88
             }
89 89
         }
@@ -112,13 +112,13 @@ public class TaRaiseServiceImpl extends ServiceImpl<TaRaiseMapper, TaRaise> impl
112 112
         if (raiseId == null && salesBatchId == null && raiseRecordId == null) return null;
113 113
 
114 114
         TaRaise taRaise = null;
115
-        TaRaiseRecord  taRaiseRecord = null;
115
+        TaRaiseRecord taRaiseRecord = null;
116 116
 
117 117
         // 通过认筹记录ID 或者 批次ID 查询
118 118
         if (raiseId != null || salesBatchId != null) {
119 119
             QueryWrapper<TaRaise> queryWrapper = new QueryWrapper<>();
120
-            queryWrapper.eq(raiseId != null,"raise_id", raiseId);
121
-            queryWrapper.eq(salesBatchId != null,"sales_batch_id", salesBatchId);
120
+            queryWrapper.eq(raiseId != null, "raise_id", raiseId);
121
+            queryWrapper.eq(salesBatchId != null, "sales_batch_id", salesBatchId);
122 122
             queryWrapper.eq("status", CommConstant.STATUS_NORMAL);
123 123
             queryWrapper.last(" limit 1");
124 124
             taRaise = this.getOne(queryWrapper);
@@ -128,9 +128,9 @@ public class TaRaiseServiceImpl extends ServiceImpl<TaRaiseMapper, TaRaise> impl
128 128
         boolean mayPerson = taRaise != null && !StringUtils.isEmpty(personId);
129 129
         if (raiseRecordId != null || mayPerson) {
130 130
             QueryWrapper<TaRaiseRecord> wrapper = new QueryWrapper<>();
131
-            wrapper.eq(raiseRecordId != null,"raise_record_id", raiseRecordId);
132
-            if (mayPerson){
133
-                wrapper.eq( "raise_id", taRaise.getRaiseId());
131
+            wrapper.eq(raiseRecordId != null, "raise_record_id", raiseRecordId);
132
+            if (mayPerson) {
133
+                wrapper.eq("raise_id", taRaise.getRaiseId());
134 134
                 wrapper.eq("person_id", personId);
135 135
             }
136 136
             wrapper.eq("status", CommConstant.STATUS_NORMAL);
@@ -138,10 +138,10 @@ public class TaRaiseServiceImpl extends ServiceImpl<TaRaiseMapper, TaRaise> impl
138 138
             taRaiseRecord = taRaiseRecordMapper.selectOne(wrapper);
139 139
 
140 140
             //加入房源信息
141
-            if (null != taRaiseRecord){
141
+            if (null != taRaiseRecord) {
142 142
                 //房源与认筹单关系图
143 143
                 List<TaRaiseHouse> taRaiseHouseList = taRaiseHouseMapper.selectList(new QueryWrapper<TaRaiseHouse>().eq("raise_record_id", taRaiseRecord.getRaiseRecordId()));
144
-                if (taRaiseHouseList.size() > 0){
144
+                if (taRaiseHouseList.size() > 0) {
145 145
                     //房源信息
146 146
                     List<TaHousingResources> houseList = (List<TaHousingResources>) taHousingResourcesService.listByIds(taRaiseHouseList.stream().map(TaRaiseHouse::getHouseId).collect(Collectors.toList()));
147 147
                     taRaiseRecord.setTaHousingResourcesList(houseList);

+ 2
- 2
src/main/resources/mapper/TaPreselectionRecordMapper.xml Zobrazit soubor

@@ -31,8 +31,8 @@
31 31
             <if test="buildingId != null and buildingId != ''">
32 32
                 AND t.building_id = #{buildingId}
33 33
             </if>
34
-            <if test="salesBtchId != null and salesBtchId != ''">
35
-                AND t2.sales_batch_id = #{salesBtchId}
34
+            <if test="salesBatchId != null and salesBatchId != ''">
35
+                AND t2.sales_batch_id = #{salesBatchId}
36 36
             </if>
37 37
             <if test="apartmentId != null and apartmentId != ''">
38 38
                 AND t2.apartment_id = #{apartmentId}