|
|
@@ -2,6 +2,7 @@ package com.ningdatech.pmapi.gov.convert; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import com.ningdatech.pmapi.gov.contants.BizProjectContant; |
|
|
|
import com.ningdatech.pmapi.gov.model.dto.*; |
|
|
|
import com.ningdatech.pmapi.gov.model.req.*; |
|
|
|
|
|
|
@@ -25,7 +26,7 @@ public class ProjectConvert { |
|
|
|
*/ |
|
|
|
public static ProjectPushReq convert(GovBizProjectSaveDTO saveDTO) { |
|
|
|
ProjectPushReq req = new ProjectPushReq(); |
|
|
|
req.setBaseinfo(convertBase(saveDTO.getBaseinfo())); |
|
|
|
req.setBaseinfo(convertBase(saveDTO.getBaseinfo(),BizProjectContant.EFFECTIVE_CODE)); |
|
|
|
req.setApply(convertApply(saveDTO.getApply())); |
|
|
|
req.setApprove(convertApprove(saveDTO.getApprove())); |
|
|
|
req.setCimplement(convertCimplement(saveDTO.getCimplement())); |
|
|
@@ -126,8 +127,9 @@ public class ProjectConvert { |
|
|
|
return req; |
|
|
|
} |
|
|
|
|
|
|
|
public static ProjectBaseInfoReq convertBase(GovBizProjectBaseinfoDTO baseinfo) { |
|
|
|
public static ProjectBaseInfoReq convertBase(GovBizProjectBaseinfoDTO baseinfo,String isEffective) { |
|
|
|
ProjectBaseInfoReq req = BeanUtil.copyProperties(baseinfo,ProjectBaseInfoReq.class); |
|
|
|
baseinfo.setIsEffective(isEffective); |
|
|
|
return req; |
|
|
|
} |
|
|
|
} |