|
|
@ -20,10 +20,12 @@ package com.elink.esua.epdc.epmet.modules.userrelation.service.impl; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.SysUserDTO; |
|
|
|
import com.elink.esua.epdc.dto.admin.SysEpmetUserFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.admin.SysEpmetUserResultDTO; |
|
|
|
import com.elink.esua.epdc.epmet.modules.feign.EpmetAnalysisFeignClient; |
|
|
@ -125,12 +127,19 @@ public class SysEpmetUserRelationServiceImpl extends BaseServiceImpl<SysEpmetUse |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result bindSysUserWithEpmetUser(SysEpmetUserRelationDTO formDto) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
// 获取系统工作人员ID
|
|
|
|
SysUserDTO sysUser = baseDao.selectSysUserInfoByMobile(formDto.getMobile()); |
|
|
|
if (null == sysUser) { |
|
|
|
throw new RenException("查询用户信息失败"); |
|
|
|
} |
|
|
|
formDto.setSysUserId(sysUser.getId()); |
|
|
|
// 删除已绑定网格员信息
|
|
|
|
baseDao.deleteRelationInfoBySysUserId(sysUser.getId()); |
|
|
|
if (StringUtils.isNotEmpty(formDto.getId())) { |
|
|
|
insert(ConvertUtils.sourceToTarget(formDto, SysEpmetUserRelationEntity.class)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result unbindSysUserWithEpmetUser(SysEpmetUserRelationDTO formDto) { |
|
|
|
return null; |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|