|
|
@ -24,6 +24,7 @@ import com.elink.esua.epdc.dto.house.SysPopulationSimpleDictDTO; |
|
|
|
import com.elink.esua.epdc.dto.house.form.SysPopulationSimpleDictFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.house.result.EpdcPopulationErrorResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.EpidemicUnitOwnerDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.form.BindingFamilyFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.form.FamilyMemberInfoFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.form.GetMemberListFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.personroom.result.EpidemicPlotBuildingResultDTO; |
|
|
@ -1668,4 +1669,30 @@ public class EpidemicUserInfoServiceImpl extends CrudServiceImpl<EpidemicUserInf |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result bindingFamily(BindingFamilyFormDTO formDTO) { |
|
|
|
// 新增人员
|
|
|
|
if("1".equals(formDTO.getFlag())){ |
|
|
|
// 获取部门信息
|
|
|
|
Result<ParentAndAllDeptDTO> result = adminVimFeignClient.getParentAndAllDept(formDTO.getDeptId()); |
|
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = result.getData(); |
|
|
|
formDTO.setAllDeptIds(parentAndAllDeptDTO.getAllDeptIds()); |
|
|
|
formDTO.setAllDeptNames(parentAndAllDeptDTO.getAllDeptNames()); |
|
|
|
formDTO.setParentDeptIds(parentAndAllDeptDTO.getParentDeptIds()); |
|
|
|
formDTO.setParentDeptNames(parentAndAllDeptDTO.getParentDeptNames()); |
|
|
|
formDTO.setGridName(parentAndAllDeptDTO.getGrid()); |
|
|
|
// 新增epidemic_user_info
|
|
|
|
EpidemicUserInfoEntity epidemicUserInfoEntity = ConvertUtils.sourceToTarget(formDTO, EpidemicUserInfoEntity.class); |
|
|
|
baseDao.insert(epidemicUserInfoEntity); |
|
|
|
} |
|
|
|
|
|
|
|
// 绑定房屋
|
|
|
|
EpidemicUnitOwnerEntity epidemicUnitOwnerEntity = ConvertUtils.sourceToTarget(formDTO, EpidemicUnitOwnerEntity.class); |
|
|
|
epidemicUnitOwnerEntity.setOwnerName(formDTO.getUserName()); |
|
|
|
epidemicUnitOwnerEntity.setAddress(formDTO.getHouseAddress()); |
|
|
|
epidemicUnitOwnerService.insert(epidemicUnitOwnerEntity); |
|
|
|
|
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|