|
|
@@ -3,6 +3,7 @@ package com.siwei.apply.service.impl;
|
|
|
import com.siwei.apply.domain.Gyjsydscdj;
|
|
|
import com.siwei.apply.domain.Project;
|
|
|
import com.siwei.apply.domain.res.GyjsydscdjRes;
|
|
|
+import com.siwei.apply.domain.res.GyjsydscdjSinglRes;
|
|
|
import com.siwei.apply.domain.vo.GyjsydscdjUpdateVo;
|
|
|
import com.siwei.apply.domain.vo.GyjsydscdjVo;
|
|
|
import com.siwei.apply.mapper.GyjsydscdjMapper;
|
|
|
@@ -22,6 +23,7 @@ import com.siwei.apply.mapper.ProjectWorkflowMapper;
|
|
|
import com.siwei.apply.mapper.WorkflowMapper;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Collections;
|
|
|
|
|
|
/**
|
|
|
* 国有建设用地使用权首次登记 服务实现类
|
|
|
@@ -89,6 +91,23 @@ public class GyjsydscdjImpl implements GyjsydscdjService {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public GyjsydscdjSinglRes getById(String id) {
|
|
|
+ GyjsydscdjSinglRes res = new GyjsydscdjSinglRes();
|
|
|
+ Gyjsydscdj item = gyjsydscdjMapper.getById(id);
|
|
|
+ if (item == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ Project project = projectMapper.get(item.getProjectId());
|
|
|
+ res.setProjectId(item.getProjectId());
|
|
|
+ if (project != null) {
|
|
|
+ res.setProjectName(project.getName());
|
|
|
+ res.setProjectCode(project.getCode());
|
|
|
+ }
|
|
|
+ BeanUtils.copyProperties(res, item);
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void update(GyjsydscdjUpdateVo gyjsydscdjUpdateVo) {
|
|
|
gyjsydscdjMapper.update(gyjsydscdjUpdateVo);
|