Browse Source

调整部分代码

hotfix/yujt_opt
yujt 6 years ago
parent
commit
1838096a8b
  1. 9
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/project/service/impl/PropertyProjectServiceImpl.java

9
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/project/service/impl/PropertyProjectServiceImpl.java

@ -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

Loading…
Cancel
Save