Commit 0aa86a86 authored by 潘志辉's avatar 潘志辉

Merge branch 'master' into 'uat'

Master

See merge request !81
parents bd3a6c8b dca0fd55
...@@ -51,7 +51,9 @@ public class ClueImMessageController extends BaseController { ...@@ -51,7 +51,9 @@ public class ClueImMessageController extends BaseController {
Page<LiveCrmCustomerChat> page = new Page<>(request.getCurrent(), request.getSize()); Page<LiveCrmCustomerChat> page = new Page<>(request.getCurrent(), request.getSize());
LambdaQueryWrapper<LiveCrmCustomerChat> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<LiveCrmCustomerChat> queryWrapper = new LambdaQueryWrapper<>();
openIdDTOList.forEach(openIdDTO -> { openIdDTOList.forEach(openIdDTO -> {
queryWrapper.or().eq(LiveCrmCustomerChat::getAuthorOpenId, openIdDTO.getAuthorOpenId()) queryWrapper.or()
.eq(LiveCrmCustomerChat::getAuthorId, openIdDTO.getAuthorId())
.eq(LiveCrmCustomerChat::getAuthorOpenId, openIdDTO.getAuthorOpenId())
.eq(LiveCrmCustomerChat::getFansOpenId, openIdDTO.getUserOpenId()); .eq(LiveCrmCustomerChat::getFansOpenId, openIdDTO.getUserOpenId());
}); });
......
...@@ -12,6 +12,7 @@ import javax.validation.constraints.NotNull; ...@@ -12,6 +12,7 @@ import javax.validation.constraints.NotNull;
@JsonNaming(value = com.fasterxml.jackson.databind.PropertyNamingStrategy.SnakeCaseStrategy.class) @JsonNaming(value = com.fasterxml.jackson.databind.PropertyNamingStrategy.SnakeCaseStrategy.class)
@JSONType(naming = com.alibaba.fastjson.PropertyNamingStrategy.SnakeCase) @JSONType(naming = com.alibaba.fastjson.PropertyNamingStrategy.SnakeCase)
public class OpenIdDTO { public class OpenIdDTO {
private String authorId;
private String authorOpenId; private String authorOpenId;
private String userOpenId; private String userOpenId;
private int platform; private int platform;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<select id="getOpenIdByStoreCodeAndPhone" <select id="getOpenIdByStoreCodeAndPhone"
resultType="com.afanticar.afantiopenapi.model.dto.OpenIdDTO"> resultType="com.afanticar.afantiopenapi.model.dto.OpenIdDTO">
select distinct author_open_id ,user_open_id,platform from fhl_mkms_clue_follow_up lea select distinct author_id ,author_open_id ,user_open_id,platform from fhl_mkms_clue_follow_up lea
inner join base_dealer dea on lea.dealer_id = dea.id and dea.status=1 and dea.is_deleted =0 and dea.store_code =#{storeCode} inner join base_dealer dea on lea.dealer_id = dea.id and dea.status=1 and dea.is_deleted =0 and dea.store_code =#{storeCode}
where lea.contact =#{phone} and lea.is_deleted = 0 where lea.contact =#{phone} and lea.is_deleted = 0
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment