|
@@ -611,7 +611,7 @@ public class FinancingApplyServiceImpl implements FinancingApplyService {
|
|
|
public PaymentCollectionBasic getViewLatestPlan(Long id) {
|
|
|
|
|
|
CFinancingBasicInfo financingBasicInfo = financingBasicInfoService.getById(id);
|
|
|
- if (financingBasicInfo != null && financingBasicInfo.getSopAccountsReceivableId() != null) {
|
|
|
+ if (financingBasicInfo != null && financingBasicInfo.getSopAccountsReceivableId() != null && !financingBasicInfo.getSopAccountsReceivableId().equals(0L)) {
|
|
|
JSONObject jsonObject = restTemplate.getForObject(viewLatestPlanUrl + "?sopAccountsReceivableId=" + financingBasicInfo.getSopAccountsReceivableId(), JSONObject.class);
|
|
|
Integer code = jsonObject.getInt("code");
|
|
|
Boolean success = jsonObject.getBool("success");
|