|
|
@ -28,6 +28,7 @@ import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
|
import com.elink.esua.epdc.dto.constant.GroupConstant; |
|
|
|
import com.elink.esua.epdc.dto.enums.GroupStateEnum; |
|
|
|
import com.elink.esua.epdc.dto.project.form.ProjectDetailFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.project.form.ProjectListFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.project.result.ProjectDetailResultDTO; |
|
|
@ -121,7 +122,7 @@ public class PropertyProjectServiceImpl extends BaseServiceImpl<PropertyProjectD |
|
|
|
|
|
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = getParentAndAllDeptDTO(dto.getGridId()); |
|
|
|
|
|
|
|
//保存用户居住地所在网格,及其他冗余字段。
|
|
|
|
// 保存机构,及其他冗余字段。
|
|
|
|
DeptEntityUtils.loadDeptInfo( |
|
|
|
ConvertUtils.sourceToTarget(parentAndAllDeptDTO, DeptEntityUtils.DeptDto.class), |
|
|
|
entity |
|
|
@ -136,10 +137,10 @@ public class PropertyProjectServiceImpl extends BaseServiceImpl<PropertyProjectD |
|
|
|
groupEntity |
|
|
|
); |
|
|
|
groupEntity.setReferenceBusinessId(entity.getId()); |
|
|
|
groupEntity.setState(10); |
|
|
|
groupEntity.setState(GroupStateEnum.GROUP_STATE_EXAMINATION_PASSED.getValue()); |
|
|
|
groupEntity.setGroupAvatar(GroupConstant.PROPERTY_GROUP_AVATAR); |
|
|
|
groupEntity.setGroupName(entity.getProjectName() + "群"); |
|
|
|
groupEntity.setGroupCategory("2"); |
|
|
|
groupEntity.setGroupCategory(GroupConstant.PROPERTY_GROUP_CATEGORY); |
|
|
|
groupEntity.setGrid(entity.getGrid()); |
|
|
|
groupEntity.setGridId(Long.parseLong(entity.getGridId())); |
|
|
|
groupDao.insert(groupEntity); |
|
|
@ -151,7 +152,7 @@ public class PropertyProjectServiceImpl extends BaseServiceImpl<PropertyProjectD |
|
|
|
PropertyProjectEntity entity = ConvertUtils.sourceToTarget(dto, PropertyProjectEntity.class); |
|
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = getParentAndAllDeptDTO(dto.getGridId()); |
|
|
|
|
|
|
|
//保存用户居住地所在网格,及其他冗余字段。
|
|
|
|
// 保存机构,及其他冗余字段。
|
|
|
|
DeptEntityUtils.loadDeptInfo( |
|
|
|
ConvertUtils.sourceToTarget(parentAndAllDeptDTO, DeptEntityUtils.DeptDto.class), |
|
|
|
entity |
|
|
|