|
|
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
@ -85,9 +86,9 @@ public class IcWorkLogServiceImpl extends BaseServiceImpl<IcWorkLogDao, IcWorkLo |
|
|
|
customerStaffParam.setUserId(loginUserUtil.getLoginUserId()); |
|
|
|
Result<CustomerStaffDTO> staffInfo = epmetUserFeignClient.getCustomerStaffInfoByUserId(customerStaffParam); |
|
|
|
if (!staffInfo.success() || null == staffInfo.getData()) { |
|
|
|
logger.warn(String.format("居民申请入群,给组长发送消息通知错误,调用%s服务查询申请用户名称失败,入参%s", ServiceConstant.EPMET_USER_SERVER, JSON.toJSONString(userResiInfoFormDTO))); |
|
|
|
throw new EpmetException("查询用户信息失败"+ JSON.toJSONString(customerStaffParam)); |
|
|
|
} else { |
|
|
|
currentUserName = resultUserInfo.getData().getShowName(); |
|
|
|
dto.setCreatedUser(staffInfo.getData().getRealName()); |
|
|
|
} |
|
|
|
IcWorkLogEntity entity = ConvertUtils.sourceToTarget(dto, IcWorkLogEntity.class); |
|
|
|
insert(entity); |
|
|
|