|
@@ -2,12 +2,15 @@ package com.ningdatech.pmapi.gov.convert; |
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
|
|
import com.ningdatech.pmapi.common.constant.CommonConst; |
|
|
import com.ningdatech.pmapi.gov.contants.BizProjectContant; |
|
|
import com.ningdatech.pmapi.gov.contants.BizProjectContant; |
|
|
import com.ningdatech.pmapi.gov.model.dto.*; |
|
|
import com.ningdatech.pmapi.gov.model.dto.*; |
|
|
import com.ningdatech.pmapi.gov.model.req.*; |
|
|
import com.ningdatech.pmapi.gov.model.req.*; |
|
|
import com.ningdatech.pmapi.gov.model.vo.*; |
|
|
import com.ningdatech.pmapi.gov.model.vo.*; |
|
|
|
|
|
import com.ningdatech.pmapi.gov.utils.ProjectCollectionUtil; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
import java.util.Collections; |
|
|
import java.util.Collections; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Objects; |
|
|
import java.util.Objects; |
|
@@ -70,6 +73,8 @@ public class ProjectConvert { |
|
|
if(Objects.nonNull(p.getId())){ |
|
|
if(Objects.nonNull(p.getId())){ |
|
|
r.setTongID(p.getId().intValue()); |
|
|
r.setTongID(p.getId().intValue()); |
|
|
} |
|
|
} |
|
|
|
|
|
r.setBaseWinningBidTime(ProjectCollectionUtil.convertLocalDateTime(p.getBaseWinningBidTime())); |
|
|
|
|
|
r.setBasePaymentTime(ProjectCollectionUtil.convertLocalDateTime(p.getBasePaymentTime())); |
|
|
return r; |
|
|
return r; |
|
|
}) |
|
|
}) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
@@ -87,6 +92,8 @@ public class ProjectConvert { |
|
|
if(Objects.nonNull(p.getId())){ |
|
|
if(Objects.nonNull(p.getId())){ |
|
|
r.setTongID(p.getId().intValue()); |
|
|
r.setTongID(p.getId().intValue()); |
|
|
} |
|
|
} |
|
|
|
|
|
r.setBaseWinningBidTime(ProjectCollectionUtil.convertLocalDateTime(p.getBaseWinningBidTime())); |
|
|
|
|
|
r.setBasePaymentTime(ProjectCollectionUtil.convertLocalDateTime(p.getBasePaymentTime())); |
|
|
return r; |
|
|
return r; |
|
|
}) |
|
|
}) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
@@ -107,6 +114,8 @@ public class ProjectConvert { |
|
|
p.getPurchaseFile()); |
|
|
p.getPurchaseFile()); |
|
|
r.setPurchaseContract(StringUtils.isNotBlank(p.getPurchaseContractPdf()) ? p.getPurchaseContractPdf() : |
|
|
r.setPurchaseContract(StringUtils.isNotBlank(p.getPurchaseContractPdf()) ? p.getPurchaseContractPdf() : |
|
|
p.getPurchaseContract()); |
|
|
p.getPurchaseContract()); |
|
|
|
|
|
r.setBaseWinningBidTime(ProjectCollectionUtil.convertLocalDateTime(p.getBaseWinningBidTime())); |
|
|
|
|
|
r.setBasePaymentTime(ProjectCollectionUtil.convertLocalDateTime(p.getBasePaymentTime())); |
|
|
return r; |
|
|
return r; |
|
|
}) |
|
|
}) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
@@ -301,8 +310,8 @@ public class ProjectConvert { |
|
|
req.setBaseProjConsClass(apply.getBaseProjConsClass()); |
|
|
req.setBaseProjConsClass(apply.getBaseProjConsClass()); |
|
|
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); |
|
|
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); |
|
|
req.setBaseProjIntro(apply.getBaseProjIntro()); |
|
|
req.setBaseProjIntro(apply.getBaseProjIntro()); |
|
|
req.setBaseProjStartTime(String.valueOf(apply.getBaseProjStartTime())); |
|
|
|
|
|
req.setBaseProjEndTime(String.valueOf(apply.getBaseProjEndTime())); |
|
|
|
|
|
|
|
|
req.setBaseProjStartTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjStartTime())); |
|
|
|
|
|
req.setBaseProjEndTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjEndTime())); |
|
|
req.setBaseProjSetYear(apply.getBaseProjSetYear()); |
|
|
req.setBaseProjSetYear(apply.getBaseProjSetYear()); |
|
|
req.setBaseProjSys(apply.getBaseProjSys()); |
|
|
req.setBaseProjSys(apply.getBaseProjSys()); |
|
|
req.setBaseProjSysCode(apply.getBaseDevelopCode()); |
|
|
req.setBaseProjSysCode(apply.getBaseDevelopCode()); |
|
@@ -342,8 +351,8 @@ public class ProjectConvert { |
|
|
req.setBaseProjConsClass(apply.getBaseProjConsClass()); |
|
|
req.setBaseProjConsClass(apply.getBaseProjConsClass()); |
|
|
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); |
|
|
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); |
|
|
req.setBaseProjIntro(apply.getBaseProjIntro()); |
|
|
req.setBaseProjIntro(apply.getBaseProjIntro()); |
|
|
req.setBaseProjStartTime(String.valueOf(apply.getBaseProjStartTime())); |
|
|
|
|
|
req.setBaseProjEndTime(String.valueOf(apply.getBaseProjEndTime())); |
|
|
|
|
|
|
|
|
req.setBaseProjStartTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjStartTime())); |
|
|
|
|
|
req.setBaseProjEndTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjEndTime())); |
|
|
req.setBaseProjSetYear(apply.getBaseProjSetYear()); |
|
|
req.setBaseProjSetYear(apply.getBaseProjSetYear()); |
|
|
req.setBaseProjSys(apply.getBaseProjSys()); |
|
|
req.setBaseProjSys(apply.getBaseProjSys()); |
|
|
req.setBaseProjSysCode(apply.getBaseDevelopCode()); |
|
|
req.setBaseProjSysCode(apply.getBaseDevelopCode()); |
|
@@ -388,8 +397,8 @@ public class ProjectConvert { |
|
|
req.setBaseProjConsClass(apply.getBaseProjConsClass()); |
|
|
req.setBaseProjConsClass(apply.getBaseProjConsClass()); |
|
|
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); |
|
|
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration())); |
|
|
req.setBaseProjIntro(apply.getBaseProjIntro()); |
|
|
req.setBaseProjIntro(apply.getBaseProjIntro()); |
|
|
req.setBaseProjStartTime(String.valueOf(apply.getBaseProjStartTime())); |
|
|
|
|
|
req.setBaseProjEndTime(String.valueOf(apply.getBaseProjEndTime())); |
|
|
|
|
|
|
|
|
req.setBaseProjStartTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjStartTime())); |
|
|
|
|
|
req.setBaseProjEndTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjEndTime())); |
|
|
req.setBaseProjSetYear(apply.getBaseProjSetYear()); |
|
|
req.setBaseProjSetYear(apply.getBaseProjSetYear()); |
|
|
req.setBaseProjSys(apply.getBaseProjSys()); |
|
|
req.setBaseProjSys(apply.getBaseProjSys()); |
|
|
req.setBaseProjSysCode(apply.getBaseDevelopCode()); |
|
|
req.setBaseProjSysCode(apply.getBaseDevelopCode()); |
|
|