|
|
@@ -98,11 +98,11 @@ public class StoreCustomerServiceServiceImpl extends ServiceImpl<StoreCustomerSe
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<AiIntelligentAssistant> selectAiIntelligentAssistant(String userId,String time) {
|
|
|
+ public List<AiIntelligentAssistant> selectAiIntelligentAssistant(String userId,String time,Integer talkSource) {
|
|
|
LambdaQueryWrapper<AiIntelligentAssistant> last = new LambdaQueryWrapper<AiIntelligentAssistant>()
|
|
|
.lt(AiIntelligentAssistant::getCreatedTime, time)
|
|
|
.eq(AiIntelligentAssistant::getDeleteFlag, 0)
|
|
|
- .eq(AiIntelligentAssistant::getType, 0).eq(AiIntelligentAssistant::getUserId, userId).orderByDesc(AiIntelligentAssistant::getCreatedTime).last("limit 1");
|
|
|
+ .eq(AiIntelligentAssistant::getType, 0).eq(AiIntelligentAssistant::getTalkSource, talkSource).eq(AiIntelligentAssistant::getUserId, userId).orderByDesc(AiIntelligentAssistant::getCreatedTime).last("limit 1");
|
|
|
AiIntelligentAssistant aiIntelligentAssistant = aiIntelligentAssistantMapper.selectOne(last);
|
|
|
if (ObjectUtils.isNotEmpty(aiIntelligentAssistant)) {
|
|
|
LambdaQueryWrapper<AiIntelligentAssistant> queryWrapper = new LambdaQueryWrapper<AiIntelligentAssistant>()
|
|
|
@@ -110,6 +110,7 @@ public class StoreCustomerServiceServiceImpl extends ServiceImpl<StoreCustomerSe
|
|
|
.lt(AiIntelligentAssistant::getCreatedTime, time)
|
|
|
.eq(AiIntelligentAssistant::getDeleteFlag, 0)
|
|
|
.eq(AiIntelligentAssistant::getUserId, userId)
|
|
|
+ .eq(AiIntelligentAssistant::getTalkSource, talkSource)
|
|
|
.orderByAsc(AiIntelligentAssistant::getCreatedTime);
|
|
|
return aiIntelligentAssistantMapper.selectList(queryWrapper);
|
|
|
}
|