|
|
@ -40,6 +40,7 @@ import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
@ -85,7 +86,7 @@ public class CreditReviewService { |
|
|
|
creditReviewVo.setMobile(record.getPhone()); |
|
|
|
creditReviewVo.setModel(record.getModelName()); |
|
|
|
creditReviewVo.setManagement(record.getCapitalName()); |
|
|
|
creditReviewVo.setExamineDate(DateUtil.formatDate(record.getGsshDate())); |
|
|
|
creditReviewVo.setExamineDate(record.getGsshDate()); |
|
|
|
creditReviewVo.setCompanyResults(record.getGsfkjg()); |
|
|
|
creditReviewVo.setManagementResults(record.getZffkjg()); |
|
|
|
creditReviewVo.setShowDeleteBtn(record.getIsDelete()); |
|
|
@ -108,6 +109,9 @@ public class CreditReviewService { |
|
|
|
creditReviewDetailsVo.setUserSid(query.getUserSid()); |
|
|
|
creditReviewDetailsVo.setOrgPath(query.getOrgPath()); |
|
|
|
creditReviewDetailsVo.setPublishInfo(sysOrganizationVoBM.getName() + "-" + sysUserVo.getName()); |
|
|
|
creditReviewDetailsVo.setCreateTime(DateUtil.formatDate(new Date())); |
|
|
|
creditReviewDetailsVo.setCustomerTypeKey(query.getCustomerTypeKey()); |
|
|
|
creditReviewDetailsVo.setCustomerType(query.getCustomerTypeValue()); |
|
|
|
}else {//修改回显
|
|
|
|
LoanPreloanCreditApplyDetailsVo loanPreloanCreditApplyDetailsVo = loanPreloanCreditApplyFeign.fetchDetailsBySid(query.getSid()).getData(); |
|
|
|
creditReviewDetailsVo.setSid(loanPreloanCreditApplyDetailsVo.getSid()); |
|
|
@ -150,26 +154,29 @@ public class CreditReviewService { |
|
|
|
} |
|
|
|
//构建人员类型下拉选数据
|
|
|
|
List<IdentityDetailsVo> identityDetailsVos = new ArrayList<>(); |
|
|
|
IdentityDetailsVo identityDetailsVo = new IdentityDetailsVo(); |
|
|
|
if ("1".equals(query.getCustomerTypeKey())){ |
|
|
|
IdentityDetailsVo identityDetailsVo = new IdentityDetailsVo(); |
|
|
|
identityDetailsVo.setSid("003"); |
|
|
|
identityDetailsVo.setDictKey("003"); |
|
|
|
identityDetailsVo.setDictValue("担保人"); |
|
|
|
identityDetailsVos.add(identityDetailsVo); |
|
|
|
}else { |
|
|
|
IdentityDetailsVo identityDetailsVo = new IdentityDetailsVo(); |
|
|
|
identityDetailsVo.setSid("001"); |
|
|
|
identityDetailsVo.setDictKey("001"); |
|
|
|
identityDetailsVo.setDictValue("股东"); |
|
|
|
identityDetailsVos.add(identityDetailsVo); |
|
|
|
} |
|
|
|
identityDetailsVo.setSid("002"); |
|
|
|
identityDetailsVo.setDictKey("002"); |
|
|
|
identityDetailsVo.setDictValue("配偶"); |
|
|
|
identityDetailsVos.add(identityDetailsVo); |
|
|
|
identityDetailsVo.setSid("004"); |
|
|
|
identityDetailsVo.setDictKey("004"); |
|
|
|
identityDetailsVo.setDictValue("其他"); |
|
|
|
identityDetailsVos.add(identityDetailsVo); |
|
|
|
IdentityDetailsVo identityDetailsVo1 = new IdentityDetailsVo(); |
|
|
|
identityDetailsVo1.setSid("002"); |
|
|
|
identityDetailsVo1.setDictKey("002"); |
|
|
|
identityDetailsVo1.setDictValue("配偶"); |
|
|
|
identityDetailsVos.add(identityDetailsVo1); |
|
|
|
IdentityDetailsVo identityDetailsVo2 = new IdentityDetailsVo(); |
|
|
|
identityDetailsVo2.setSid("004"); |
|
|
|
identityDetailsVo2.setDictKey("004"); |
|
|
|
identityDetailsVo2.setDictValue("其他"); |
|
|
|
identityDetailsVos.add(identityDetailsVo2); |
|
|
|
creditReviewDetailsVo.setIdentity(identityDetailsVos); |
|
|
|
return rb.success().setData(creditReviewDetailsVo); |
|
|
|
} |
|
|
|