|
@@ -611,7 +611,7 @@ public class FinancingApplyServiceImpl implements FinancingApplyService {
|
|
public PaymentCollectionBasic getViewLatestPlan(Long id) {
|
|
public PaymentCollectionBasic getViewLatestPlan(Long id) {
|
|
|
|
|
|
CFinancingBasicInfo financingBasicInfo = financingBasicInfoService.getById(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);
|
|
JSONObject jsonObject = restTemplate.getForObject(viewLatestPlanUrl + "?sopAccountsReceivableId=" + financingBasicInfo.getSopAccountsReceivableId(), JSONObject.class);
|
|
Integer code = jsonObject.getInt("code");
|
|
Integer code = jsonObject.getInt("code");
|
|
Boolean success = jsonObject.getBool("success");
|
|
Boolean success = jsonObject.getBool("success");
|