Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
93d6514f
Commit
93d6514f
authored
Oct 17, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai助手列表分页
parent
1c1012b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/AiAssistantVo.java
...src/main/java/com/wwdz/ch/wx/entity/vo/AiAssistantVo.java
+5
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/AiAssistantServiceImpl.java
...main/java/com/wwdz/ch/wx/impl/AiAssistantServiceImpl.java
+4
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/AiAssistantVo.java
View file @
93d6514f
...
@@ -30,6 +30,11 @@ public class AiAssistantVo implements Entity {
...
@@ -30,6 +30,11 @@ public class AiAssistantVo implements Entity {
*/
*/
private
Date
createTime
;
private
Date
createTime
;
/**
* 简介
*/
private
String
profile
;
/**
/**
* 是否已有会话
* 是否已有会话
*/
*/
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/AiAssistantServiceImpl.java
View file @
93d6514f
package
com.wwdz.ch.wx.impl
;
package
com.wwdz.ch.wx.impl
;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.core.type.PageSearchResult
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.AiAssistantDao
;
import
com.wwdz.ch.db.dao.AiAssistantDao
;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.db.domain.AiAssistant
;
...
@@ -33,13 +35,14 @@ public class AiAssistantServiceImpl implements AiAssistantService {
...
@@ -33,13 +35,14 @@ public class AiAssistantServiceImpl implements AiAssistantService {
try
{
try
{
List
<
AiAssistantVo
>
aiAssistantVos
=
new
ArrayList
<>();
List
<
AiAssistantVo
>
aiAssistantVos
=
new
ArrayList
<>();
List
<
AiAssistant
>
aiAssistantList
=
aiAssistantDao
.
findList
(
dto
);
List
<
AiAssistant
>
aiAssistantList
=
aiAssistantDao
.
findList
(
dto
);
PageInfo
<
AiAssistant
>
pageInfo
=
new
PageInfo
<>(
aiAssistantList
);
aiAssistantList
.
forEach
(
aiAssistant
->
{
aiAssistantList
.
forEach
(
aiAssistant
->
{
AiAssistantVo
aiAssistantVo
=
new
AiAssistantVo
();
AiAssistantVo
aiAssistantVo
=
new
AiAssistantVo
();
EntityMapper
.
copyAttribute
(
aiAssistant
,
aiAssistantVo
);
EntityMapper
.
copyAttribute
(
aiAssistant
,
aiAssistantVo
);
aiAssistantVo
.
setIsHasChated
(
false
);
aiAssistantVo
.
setIsHasChated
(
false
);
aiAssistantVos
.
add
(
aiAssistantVo
);
aiAssistantVos
.
add
(
aiAssistantVo
);
});
});
return
Result
.
success
(
aiAssistantVos
);
return
Result
.
success
(
PageSearchResult
.
of
(
pageInfo
,
aiAssistantVos
)
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询ai助手列表error : {}"
,
e
);
logger
.
error
(
"查询ai助手列表error : {}"
,
e
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment