소스 검색

* bug fix

顾绍勇 5 년 전
부모
커밋
27bbadf09b

+ 1
- 1
src/main/java/com/huiju/estateagents/eContract/controller/TaCompanyController.java 파일 보기

@@ -99,7 +99,7 @@ public class TaCompanyController extends BaseController {
99 99
             queryWrapper.like(StringUtils.isNotBlank(companyName), "company_name", companyName);
100 100
             queryWrapper.like(StringUtils.isNotBlank(companyCode), "company_code", companyCode);
101 101
             queryWrapper.eq(StringUtils.isNotBlank(certifiedStatus), "certified_status", certifiedStatus);
102
-            queryWrapper.eq("status", 2);
102
+            queryWrapper.eq("status", 4);
103 103
             queryWrapper.orderByDesc("create_date");
104 104
 
105 105
             IPage<TaCompany> result = iTaCompanyService.page(pg, queryWrapper);

+ 7
- 5
src/main/java/com/huiju/estateagents/service/impl/TaRaiseRecordServiceImpl.java 파일 보기

@@ -412,7 +412,7 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
412 412
         }
413 413
 
414 414
         // 是否展示签署合同入口
415
-        if (CommConstant.STATUS_NORMAL == taRaiseRecord.getStatus() || CommConstant.PAY_STATUS_PAID == taRaiseRecord.getPayStatus()) {
415
+        if (CommConstant.STATUS_NORMAL == taRaiseRecord.getStatus() && CommConstant.PAY_STATUS_PAID == taRaiseRecord.getPayStatus()) {
416 416
             // 是否有认筹业务合同配置
417 417
             QueryWrapper<TaContractBusiness> taContractBusinessQueryWrapper = new QueryWrapper<>();
418 418
             taContractBusinessQueryWrapper.eq("target_id", raiseRecordId);
@@ -423,16 +423,18 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
423 423
                 // 是否有有关联的认筹合同
424 424
                 QueryWrapper<TaContract> taContractQueryWrapper = new QueryWrapper<>();
425 425
                 taContractQueryWrapper.eq("org_id", orgId);
426
-                taContractQueryWrapper.eq("company_id", taContractBusiness.getCompanyId());
426
+                taContractQueryWrapper.eq("target_type", "raise");
427 427
                 taContractQueryWrapper.eq("target_id", taRaiseRecord.getRaiseId());
428
+                taContractQueryWrapper.eq("company_id", taContractBusiness.getCompanyId());
428 429
                 taContractQueryWrapper.eq("person_id", personId);
429 430
                 TaContract taContract = iTaContractService.getOne(taContractQueryWrapper);
430 431
                 if (taContract != null) {
431
-                    if (taContract.getCustomerTime() == null) {
432
-                        taRaiseRecord.setShowContract(1);
433
-                    } else {
432
+                    // 合同状态正常
433
+                    if (CommConstant.STATUS_NORMAL == taContract.getStatus()) {
434 434
                         taRaiseRecord.setShowContract(0);
435 435
                         map.put("taContract", taContract);
436
+                    } else {
437
+                        taRaiseRecord.setShowContract(1);
436 438
                     }
437 439
                 } else {
438 440
                     taRaiseRecord.setShowContract(1);