Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
5aff3b67
Commit
5aff3b67
authored
Sep 09, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai换装
parent
2c6bf8b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+12
-7
CustomSwitcher.java
.../java/com/gic/haoban/manage/web/utils/CustomSwitcher.java
+3
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
5aff3b67
...
...
@@ -359,9 +359,13 @@ public class WxStaffController extends WebBaseController {
private
int
aiCustom
(
String
enterpriseId
)
{
List
<
AiCustomVO
>
list
=
CustomSwitcher
.
haoban_ai_custom
;
list
=
list
.
stream
().
filter
(
o
->
o
.
getIsOpen
()==
1
&&
o
.
getEid
().
equals
(
enterpriseId
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
JSONObject
>
list
=
CustomSwitcher
.
haoban_ai_custom
;
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
0
;
}
List
<
AiCustomVO
>
voList
=
list
.
stream
().
map
(
o
->
JSONObject
.
parseObject
(
o
.
toJSONString
(),
AiCustomVO
.
class
)).
collect
(
Collectors
.
toList
());
voList
=
voList
.
stream
().
filter
(
o
->
o
.
getIsOpen
()==
1
&&
o
.
getEid
().
equals
(
enterpriseId
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
voList
))
{
return
1
;
}
return
0
;
...
...
@@ -387,10 +391,11 @@ public class WxStaffController extends WebBaseController {
}
}
}
List
<
AiCustomVO
>
list
=
CustomSwitcher
.
haoban_ai_custom
;
list
=
list
.
stream
().
filter
(
o
->
o
.
getIsOpen
()==
1
&&
o
.
getEid
().
equals
(
enterpriseId
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
AiCustomVO
vo
=
list
.
get
(
0
)
;
List
<
JSONObject
>
list
=
CustomSwitcher
.
haoban_ai_custom
;
List
<
AiCustomVO
>
voList
=
list
.
stream
().
map
(
o
->
JSONObject
.
parseObject
(
o
.
toJSONString
(),
AiCustomVO
.
class
)).
collect
(
Collectors
.
toList
());
voList
=
voList
.
stream
().
filter
(
o
->
o
.
getIsOpen
()==
1
&&
o
.
getEid
().
equals
(
enterpriseId
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
voList
))
{
AiCustomVO
vo
=
voList
.
get
(
0
)
;
String
h5
=
String
.
format
(
vo
.
getUrl
(),
wmId
)
;
String
str
=
"{\"url\":\""
+
h5
+
"\",\"id\":\"5\"}"
;
Map
<
String
,
Object
>
map
=
this
.
enterpriseWxaLinkService
.
getWxaLinkAndQrCode
(
enterpriseId
,
str
)
;
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/utils/CustomSwitcher.java
View file @
5aff3b67
package
com
.
gic
.
haoban
.
manage
.
web
.
utils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.switcher.Switcher
;
import
com.gic.commons.switcher.SwitcherNamespace
;
import
com.gic.haoban.manage.web.vo.AiCustomVO
;
import
java.util.List
;
...
...
@@ -10,6 +10,6 @@ import java.util.List;
public
class
CustomSwitcher
{
@Switcher
public
static
List
<
AiCustomVO
>
haoban_ai_custom
;
public
static
List
<
JSONObject
>
haoban_ai_custom
;
}
\ No newline at end of file
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