|
@@ -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);
|