|
|
@@ -14,6 +14,7 @@ import com.siwei.common.core.exception.ServiceException;
|
|
|
import com.siwei.common.core.utils.bean.BeanUtils;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.collections4.MapUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.siwei.apply.domain.res.LandTypeTreeRes;
|
|
|
@@ -65,6 +66,10 @@ public class TdgyImpl implements TdgyService {
|
|
|
BeanUtils.copyProperties(tdgyVo, tdgy);
|
|
|
tdgy.generateId();
|
|
|
tdgy.setCreatorId(UserId);
|
|
|
+ //初始化默认值为出让
|
|
|
+ if(StringUtils.isBlank(tdgy.getGdType())){
|
|
|
+ tdgy.setGdType("出让");
|
|
|
+ }
|
|
|
tdgyMapper.add(tdgy);
|
|
|
// 添加项目流程(仿照YdbpImpl)
|
|
|
Integer projectType = projectMapper.getProjectTypeById(tdgy.getProjectId());
|