消息通知 userId使用飞书userId
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
<select id="selectByCheckMobile" resultType="com.cool.store.dto.partner.MobileCheckDTO">
|
||||
select a.partner_id as partnerId,a.mobile,a.username as partnerName,
|
||||
b.line_status as lineStatus ,b.workflow_stage as workflowStage ,b.workflow_status as workflowStatus ,close_time as closeTime,b.id as lineId,
|
||||
c.`name`as investmentManager,c.mobile as investmentManagerMobile
|
||||
c.`name`as investmentManagerName,c.mobile as investmentManagerMobile,c.user_id as investmentManager
|
||||
FROM hy_partner_user_info a left join hy_partner_line_info b on a.partner_id=b.partner_id and b.deleted=0 left join enterprise_user c on b.investment_manager=c.user_id and c.deleted=0 WHERE a.mobile=#{mobile}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ public class MobileCheckDTO {
|
||||
private String workflowStatus;
|
||||
private String closeTime;
|
||||
private String investmentManager;
|
||||
private String investmentManagerName;
|
||||
private Long lineId;
|
||||
private String partnerName;
|
||||
|
||||
|
||||
@@ -288,7 +288,7 @@ public class LineHighSeasServiceImpl implements LineHighSeasService {
|
||||
if (mobileCheckDTO.getLineStatus().equals(LineStatusEnum.PUBLIC_SEAS.getCode())) {
|
||||
throw new ServiceException(ErrorCodeEnum.PUBLIC_LINE_NOT_FOLLOW);
|
||||
} else {
|
||||
String message = MessageFormat.format(ErrorCodeEnum.LINE_EXIST_FOLLOW.getMessage(), mobileCheckDTO.getInvestmentManager(), mobileCheckDTO.getInvestmentManagerMobile());
|
||||
String message = MessageFormat.format(ErrorCodeEnum.LINE_EXIST_FOLLOW.getMessage(), mobileCheckDTO.getInvestmentManagerName(), mobileCheckDTO.getInvestmentManagerMobile());
|
||||
return new ResponseResult(ErrorCodeEnum.LINE_EXIST_FOLLOW.getCode(),message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -512,7 +513,11 @@ public class ExhibitionServiceImpl implements ExhibitionService {
|
||||
BeanUtil.copyProperties(x,exhibitionLineBaseVO);
|
||||
result.add(exhibitionLineBaseVO);
|
||||
});
|
||||
return result;
|
||||
//去重
|
||||
return result.stream()
|
||||
.collect(Collectors.toMap(ExhibitionLineBaseVO::getMobile, Function.identity(), (existing, replacement) -> existing))
|
||||
.values().stream()
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -630,7 +635,8 @@ public class ExhibitionServiceImpl implements ExhibitionService {
|
||||
whetherInExhibition(Arrays.asList(lineId),Boolean.TRUE);
|
||||
if (sendNotice){
|
||||
//发送通知
|
||||
eventCenterHttpRequest.sendFeiShuNotice(FeiShuNoticeMsgEnum.PARTNER_SIGNUP_EXHIBITION,Arrays.asList(investManager),mobileCheckDTO.getPartnerName(),mobileCheckDTO.getMobile(),
|
||||
List<String> feishuUserIdListByUserIds = enterpriseUserDAO.getFeishuUserIdListByUserIds(Arrays.asList(investManager));
|
||||
eventCenterHttpRequest.sendFeiShuNotice(FeiShuNoticeMsgEnum.PARTNER_SIGNUP_EXHIBITION,feishuUserIdListByUserIds,mobileCheckDTO.getPartnerName(),mobileCheckDTO.getMobile(),
|
||||
DateUtils.format(hyExhibitionDO.getStartDate(),CoolDateUtils.DATE_FORMAT_DAY_2),hyExhibitionDO.getExhibitionName(),hyExhibitionDO.getLocation());
|
||||
}
|
||||
return new SignUpExhibitionVO(Boolean.TRUE,CommonConstants.ZERO,null);
|
||||
|
||||
Reference in New Issue
Block a user