|
|
@ -987,7 +987,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
AppCommonContractQuery query = pagerQuery.getParams(); |
|
|
|
QueryWrapper<CommonContract> qw = appCreateQueryWrapper(query); |
|
|
|
IPage<CommonContract> page = PagerUtil.queryToPage(pagerQuery); |
|
|
|
IPage<AppCommonContractPageVo> iPage = baseMapper.getContractList(page, qw,query.getNames()); |
|
|
|
IPage<AppCommonContractPageVo> iPage = baseMapper.getContractList(page, qw, query.getNames()); |
|
|
|
List<AppCommonContractPageVo> records = iPage.getRecords(); |
|
|
|
records.removeAll(Collections.singleton(null)); |
|
|
|
if (!records.isEmpty()) { |
|
|
@ -1050,24 +1050,28 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
vo.setSiteSigImages(siteSig); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(vo.getCustomerKey())) { |
|
|
|
if (vo.getCustomerKey().equals("1")) { |
|
|
|
vo.setIdCardArchives(false); |
|
|
|
if (StringUtils.isNotBlank(vo.getSceneSignUrl())) { |
|
|
|
|
|
|
|
String[] split3 = vo.getSceneSignUrl().split(","); |
|
|
|
List<String> idCard = new ArrayList<>(); |
|
|
|
List<String> idCardImages = Arrays.asList(split3); |
|
|
|
for (String idCardImage : idCardImages) { |
|
|
|
String idCardImagesUrl = urlPrefix + idCardImage; |
|
|
|
idCard.add(idCardImagesUrl); |
|
|
|
} |
|
|
|
vo.setIdCardImages(idCard); |
|
|
|
if ("1".equals(vo.getCustomerKey())) { |
|
|
|
//查询客户的档案库中是否有图片
|
|
|
|
ResultBean<List<String>> resultBean = crmCustomerTempFeign.selectCustomerFile(vo.getCustomerSid()); |
|
|
|
List<String> stringList = resultBean.getData(); |
|
|
|
if (stringList.size() > 0) { |
|
|
|
vo.setIdCardArchives(true); |
|
|
|
vo.setIdCardImages(stringList); |
|
|
|
} else { |
|
|
|
vo.setIdCardImages(new ArrayList<>()); |
|
|
|
vo.setIdCardArchives(false); |
|
|
|
if (StringUtils.isNotBlank(vo.getIdImagesUrl())) { |
|
|
|
String[] split3 = vo.getSceneSignUrl().split(","); |
|
|
|
List<String> idCard = new ArrayList<>(); |
|
|
|
List<String> idCardImages = Arrays.asList(split3); |
|
|
|
for (String idCardImage : idCardImages) { |
|
|
|
String idCardImagesUrl = urlPrefix + idCardImage; |
|
|
|
idCard.add(idCardImagesUrl); |
|
|
|
} |
|
|
|
vo.setIdCardImages(idCard); |
|
|
|
} else { |
|
|
|
vo.setIdCardImages(new ArrayList<>()); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (vo.getCustomerKey().equals("2")) { |
|
|
|
vo.setIdCardArchives(true); |
|
|
|
// 往里添加客户档案里的身份证信息
|
|
|
|
} |
|
|
|
} |
|
|
|
return vo; |
|
|
@ -1408,7 +1412,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
//订金
|
|
|
|
commonContract.setDeposit(new BigDecimal(depositTotal)); |
|
|
|
//合同金额
|
|
|
|
commonContract.setContractAmount(depositTotal); |
|
|
|
commonContract.setContractAmount(appOrderDetailsVo.getPriceInfo().getTotalPrice()); |
|
|
|
//合同附件
|
|
|
|
//身份证信息附件
|
|
|
|
//车型sid
|
|
|
@ -1423,6 +1427,8 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
//单台订金
|
|
|
|
commonContract.setOneDeposit(new BigDecimal(depositInfo.getDeposit())); |
|
|
|
commonContract.setCommonContractUrl(finalUrl); |
|
|
|
commonContract.setCustomerType(appOrderDetailsVo.getCustomerType()); |
|
|
|
commonContract.setCustomerTypeKey(appOrderDetailsVo.getCustomerKey()); |
|
|
|
save(commonContract); |
|
|
|
if (list.size() > 0) { |
|
|
|
//添加合同下载路径
|
|
|
|