|  |  |  | 
|---|
|  |  |  | if (Objects.isNull(insuranceApply)) { | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.DATA_EMPTY); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (!(Constants.equalsInteger(insuranceApply.getStatus(), | 
|---|
|  |  |  | Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey())||Constants.equalsInteger(insuranceApply.getStatus(), | 
|---|
|  |  |  | Constants.InsuranceApplyStatus.WTB_DONE.getKey())) | 
|---|
|  |  |  | if (!(Constants.equalsInteger(insuranceApply.getStatus(), Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey()) | 
|---|
|  |  |  | ||Constants.equalsInteger(insuranceApply.getStatus(), Constants.InsuranceApplyStatus.WTB_DONE.getKey()) | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.DATA_ERRO.getCode(), "保单状态错误"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) | 
|---|
|  |  |  | .eq(!Objects.isNull(model.getType()),ApplyChange::getType,model.getType()) | 
|---|
|  |  |  | .eq(!Objects.isNull(model.getStatus())&&!model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus,model.getStatus()) | 
|---|
|  |  |  | .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus, | 
|---|
|  |  |  | .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()), | 
|---|
|  |  |  | ApplyChange::getStatus, | 
|---|
|  |  |  | Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey(), | 
|---|
|  |  |  | Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey()) | 
|---|
|  |  |  | .eq(!Objects.isNull(model.getUnionApplyId()),InsuranceApply::getUnionApplyId,model.getUnionApplyId()) | 
|---|