|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.ningdatech.pmapi.AppTests; |
|
|
|
import com.ningdatech.pmapi.common.constant.BizConst; |
|
|
|
import com.ningdatech.pmapi.gov.model.dto.GovBizProjectApplyDTO; |
|
|
|
import com.ningdatech.pmapi.gov.model.dto.GovBizProjectBaseinfoDTO; |
|
|
|
import com.ningdatech.pmapi.gov.model.dto.GovBizProjectSaveDTO; |
|
|
@@ -52,14 +53,14 @@ public class ProjectCollectionTest extends AppTests { |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test(){ |
|
|
|
List<String> baseProjIds = Lists.newArrayList("33112700020210100191"); |
|
|
|
List<String> baseProjIds = Lists.newArrayList("33110000020230100061"); |
|
|
|
for(String baseProjId : baseProjIds){ |
|
|
|
GovBizProjectBaseinfo baseinfo = baseinfoService.getOne(Wrappers.lambdaQuery(GovBizProjectBaseinfo.class) |
|
|
|
.eq(GovBizProjectBaseinfo::getBaseProjId, baseProjId) |
|
|
|
.eq(GovBizProjectBaseinfo::getId,457)); |
|
|
|
.last(BizConst.LIMIT_1)); |
|
|
|
GovBizProjectApply apply = applyService.getOne(Wrappers.lambdaQuery(GovBizProjectApply.class) |
|
|
|
.eq(GovBizProjectApply::getBaseProjId, baseProjId) |
|
|
|
.eq(GovBizProjectApply::getId,451)); |
|
|
|
.last(BizConst.LIMIT_1)); |
|
|
|
|
|
|
|
GovBizProjectSaveDTO saveDTO = new GovBizProjectSaveDTO(); |
|
|
|
saveDTO.setApply(BeanUtil.copyProperties(apply, GovBizProjectApplyDTO.class)); |
|
|
|