改bug
This commit is contained in:
@@ -61,8 +61,10 @@ public class AiVipLogServiceImpl extends ServiceImpl<AiVipLogDao, AiVipLog> impl
|
|||||||
AiVipLog aiVipLog = this.getOne(new LambdaQueryWrapper<AiVipLog>()
|
AiVipLog aiVipLog = this.getOne(new LambdaQueryWrapper<AiVipLog>()
|
||||||
.eq(AiVipLog::getUserId,ShiroUtils.getUId())
|
.eq(AiVipLog::getUserId,ShiroUtils.getUId())
|
||||||
.eq(AiVipLog::getState,0));
|
.eq(AiVipLog::getState,0));
|
||||||
if (aiVipLog.getSurplusCount()>0&&new Date().getTime()<aiVipLog.getEndTime().getTime()){
|
if (aiVipLog!=null){
|
||||||
return true;
|
if (aiVipLog.getSurplusCount()>0&&new Date().getTime()<aiVipLog.getEndTime().getTime()){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class AiRecordFolderController {
|
|||||||
String des = chatContent.get(0).getContent();
|
String des = chatContent.get(0).getContent();
|
||||||
recordFolderChat.setDescription(des);
|
recordFolderChat.setDescription(des);
|
||||||
recordFolderChat.setChatAssistantName(chatContent.get(0).getChatAssistantName());
|
recordFolderChat.setChatAssistantName(chatContent.get(0).getChatAssistantName());
|
||||||
recordFolderChat.setDiagnosis(des.contains("诊断:")?des.substring(des.indexOf("诊断:")+3,des.indexOf(",病情为:")):des);
|
recordFolderChat.setDiagnosis(des.contains("诊断:")?des.substring(des.indexOf("诊断:")+3,des.indexOf(",主要病史:")):des);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return R.ok().put("list",list);
|
return R.ok().put("list",list);
|
||||||
|
|||||||
@@ -69,14 +69,14 @@ public class AiVipController {
|
|||||||
flag = 2;//是vip不可升级
|
flag = 2;//是vip不可升级
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else {
|
}
|
||||||
List<AiChatContent> quankeContentList = aiChatContentService.list(new LambdaQueryWrapper<AiChatContent>()
|
List<AiChatContent> quankeContentList = aiChatContentService.list(new LambdaQueryWrapper<AiChatContent>()
|
||||||
.eq(AiChatContent::getUserId,ShiroUtils.getUId())
|
.eq(AiChatContent::getUserId,ShiroUtils.getUId())
|
||||||
.like(AiChatContent::getChatAssistantName,"全科")
|
.like(AiChatContent::getChatAssistantName,"全科")
|
||||||
.orderByAsc(AiChatContent::getCreateTime)
|
.orderByAsc(AiChatContent::getCreateTime)
|
||||||
.groupBy(AiChatContent::getChatId));
|
.groupBy(AiChatContent::getChatId));
|
||||||
|
if (quankeContentList.size()<3){
|
||||||
freeCount = 3-quankeContentList.size();
|
freeCount = 3-quankeContentList.size();
|
||||||
|
|
||||||
}
|
}
|
||||||
return R.ok().put("aiVipLog",aiVipLog)
|
return R.ok().put("aiVipLog",aiVipLog)
|
||||||
.put("flag",flag)
|
.put("flag",flag)
|
||||||
|
|||||||
Reference in New Issue
Block a user