Ver código fonte

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

张延森 5 anos atrás
pai
commit
8614cb0814

+ 5
- 0
src/main/java/com/huiju/estateagents/common/CommConstant.java Ver arquivo

710
      * 线下缴费
710
      * 线下缴费
711
      */
711
      */
712
     public static final String PAY_TYPE_OFFLINE = "offLine";
712
     public static final String PAY_TYPE_OFFLINE = "offLine";
713
+
714
+    /**
715
+     * 线下缴费
716
+     */
717
+    public static final String PAY_TYPE_ONLINE = "onLine";
713
 }
718
 }

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaSalesBatchController.java Ver arquivo

249
                 raiseQueryWrapper.eq("status", 1);
249
                 raiseQueryWrapper.eq("status", 1);
250
                 TaRaise raise = taRaiseService.getOne(raiseQueryWrapper);
250
                 TaRaise raise = taRaiseService.getOne(raiseQueryWrapper);
251
                 if (raise != null) {
251
                 if (raise != null) {
252
-                    responseBean.addError(String.format("销售批次%s关联有认筹,请先删除关联的预选模块", taSalesBatch.getSalesBatchName()));
252
+                    responseBean.addError(String.format("销售批次%s关联有认筹,请先删除关联的认筹模块", taSalesBatch.getSalesBatchName()));
253
                     return responseBean;
253
                     return responseBean;
254
                 }
254
                 }
255
             }
255
             }

+ 0
- 1
src/main/java/com/huiju/estateagents/service/impl/TaHousingResourcesServiceImpl.java Ver arquivo

769
                 //查看是否有当前房源的预选记录
769
                 //查看是否有当前房源的预选记录
770
                 QueryWrapper<TaPreselectionRecord> preselectionRecordQueryWrapper = new QueryWrapper<>();
770
                 QueryWrapper<TaPreselectionRecord> preselectionRecordQueryWrapper = new QueryWrapper<>();
771
                 preselectionRecordQueryWrapper.eq("sales_batch_id", taRaise.getSalesBatchId());
771
                 preselectionRecordQueryWrapper.eq("sales_batch_id", taRaise.getSalesBatchId());
772
-                preselectionRecordQueryWrapper.eq("building_id", taRaise.getBuildingId());
773
                 preselectionRecordQueryWrapper.eq("org_id", orgId);
772
                 preselectionRecordQueryWrapper.eq("org_id", orgId);
774
                 preselectionRecordQueryWrapper.eq("house_id", houseId);
773
                 preselectionRecordQueryWrapper.eq("house_id", houseId);
775
                 preselectionRecordQueryWrapper.eq("person_id", personId);
774
                 preselectionRecordQueryWrapper.eq("person_id", personId);

+ 13
- 10
src/main/java/com/huiju/estateagents/service/impl/TaRaiseRecordServiceImpl.java Ver arquivo

169
                 throw new Exception("存在已经删除的房源!");
169
                 throw new Exception("存在已经删除的房源!");
170
             }
170
             }
171
             //判断我是否认筹过这些房源
171
             //判断我是否认筹过这些房源
172
-            QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
173
-            taRaiseHouseQueryWrapper.eq("org_id", orgId);
174
-            taRaiseHouseQueryWrapper.eq("house_id", houseId);
175
-            taRaiseHouseQueryWrapper.eq("person_id", personId);
176
-            List<TaRaiseHouse> taRaiseHouses = taRaiseHouseMapper.selectList(taRaiseHouseQueryWrapper);
177
-            if (taRaiseHouses.size() > 0) {
178
-                throw new Exception("存在已经认筹过的房源!");
179
-            }
172
+//            QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
173
+//            taRaiseHouseQueryWrapper.eq("org_id", orgId);
174
+//            taRaiseHouseQueryWrapper.eq("house_id", houseId);
175
+//            taRaiseHouseQueryWrapper.eq("person_id", personId);
176
+//            List<TaRaiseHouse> taRaiseHouses = taRaiseHouseMapper.selectList(taRaiseHouseQueryWrapper);
177
+//            if (taRaiseHouses.size() > 0) {
178
+//                throw new Exception("存在已经认筹过的房源!");
179
+//            }
180
         }
180
         }
181
     }
181
     }
182
 
182
 
222
         }
222
         }
223
         taRaiseRecord.setStatus(CommConstant.STATUS_NORMAL);
223
         taRaiseRecord.setStatus(CommConstant.STATUS_NORMAL);
224
         taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_UNPAID);
224
         taRaiseRecord.setPayStatus(CommConstant.PAY_STATUS_UNPAID);
225
-        taRaiseRecord.setPayType(taRaise.getPayType());
225
+        taRaiseRecord.setPayType(CommConstant.PAY_TYPE_ONLINE);
226
         taRaiseRecord.setCreateDate(LocalDateTime.now());
226
         taRaiseRecord.setCreateDate(LocalDateTime.now());
227
         //插入认筹单信息
227
         //插入认筹单信息
228
         taRaiseRecordMapper.insert(taRaiseRecord);
228
         taRaiseRecordMapper.insert(taRaiseRecord);
250
         //把idcard字断更新进person表
250
         //把idcard字断更新进person表
251
         if (StringUtil.isEmpty(taPerson.getIdcard())) {
251
         if (StringUtil.isEmpty(taPerson.getIdcard())) {
252
             taPerson.setIdcard(taRaiseRecord.getIdcard());
252
             taPerson.setIdcard(taRaiseRecord.getIdcard());
253
-            taPersonMapper.updateById(taPerson);
253
+        }
254
+        if (StringUtil.isEmpty(taPerson.getName())) {
255
+            taPerson.setName(taRaiseRecord.getName());
254
         }
256
         }
255
 
257
 
258
+        taPersonMapper.updateById(taPerson);
256
     }
259
     }
257
 
260
 
258
     /**
261
     /**

+ 1
- 1
src/main/resources/mapper/TaHousingResourcesMapper.xml Ver arquivo

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)
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()
50
             AND t7.raise_start_time &lt;= now() AND t7.raise_end_time &gt;= now()
51
             <if test="personId != null and personId != ''">
51
             <if test="personId != null and personId != ''">
52
                 AND (t6.person_id != #{personId} OR t6.person_id IS NULL)
52
                 AND (t6.person_id != #{personId} OR t6.person_id IS NULL)