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
3ae3e83e
Commit
3ae3e83e
authored
Nov 10, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
910db98c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
QywxSendServiceImpl.java
...oban/manage/service/service/impl/QywxSendServiceImpl.java
+3
-0
QwMessageController.java
...an/manage/web/controller/content/QwMessageController.java
+10
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxSendServiceImpl.java
View file @
3ae3e83e
...
@@ -158,6 +158,9 @@ public class QywxSendServiceImpl implements QywxSendService {
...
@@ -158,6 +158,9 @@ public class QywxSendServiceImpl implements QywxSendService {
text
.
setContent
(
dto
.
getContent
());
text
.
setContent
(
dto
.
getContent
());
moment
.
setText
(
text
);
moment
.
setText
(
text
);
List
<
String
>
sendUser
=
new
ArrayList
<>();
List
<
String
>
sendUser
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
return
ServiceResponse
.
failure
(
"9999"
,
"无导购"
)
;
}
List
<
StaffClerkRelationDTO
>
clerkList
=
this
.
tabHaobanStaffClerkRelationMapper
.
listByClerkIds
(
clerkIdList
,
List
<
StaffClerkRelationDTO
>
clerkList
=
this
.
tabHaobanStaffClerkRelationMapper
.
listByClerkIds
(
clerkIdList
,
wxEnterpriseId
);
wxEnterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
clerkList
))
{
if
(
CollectionUtils
.
isEmpty
(
clerkList
))
{
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/QwMessageController.java
View file @
3ae3e83e
...
@@ -15,6 +15,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -15,6 +15,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.app.customer.dto.CustomerDTO
;
import
com.gic.haoban.app.customer.dto.CustomerDTO
;
import
com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO
;
import
com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO
;
import
com.gic.haoban.app.customer.service.api.service.DistributeApiService
;
import
com.gic.haoban.app.customer.service.api.service.DistributeApiService
;
...
@@ -40,7 +41,7 @@ public class QwMessageController extends WebBaseController {
...
@@ -40,7 +41,7 @@ public class QwMessageController extends WebBaseController {
* 群发-分享
* 群发-分享
*/
*/
@RequestMapping
(
"/message-send"
)
@RequestMapping
(
"/message-send"
)
public
HaobanResponse
messageSend
(
CustomerQO
qo
,
String
imgJson
,
String
selectedStoreId
)
{
public
RestResponse
<
Object
>
messageSend
(
CustomerQO
qo
,
String
imgJson
,
String
selectedStoreId
)
{
CustomerDTO
params
=
EntityUtil
.
changeEntityByJSON
(
CustomerDTO
.
class
,
qo
);
CustomerDTO
params
=
EntityUtil
.
changeEntityByJSON
(
CustomerDTO
.
class
,
qo
);
String
clerkId
=
qo
.
getClerkId
();
String
clerkId
=
qo
.
getClerkId
();
String
wxEnterpriseId
=
qo
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
qo
.
getWxEnterpriseId
();
...
@@ -59,7 +60,7 @@ public class QwMessageController extends WebBaseController {
...
@@ -59,7 +60,7 @@ public class QwMessageController extends WebBaseController {
params
.
setQwFriendFlag
(
true
);
params
.
setQwFriendFlag
(
true
);
List
<
String
>
sendMemberIds
=
distributeApiService
.
getMemberIds
(
params
,
memberIdList
,
memberInfoListParamsDTO
);
List
<
String
>
sendMemberIds
=
distributeApiService
.
getMemberIds
(
params
,
memberIdList
,
memberInfoListParamsDTO
);
if
(
CollectionUtils
.
isEmpty
(
sendMemberIds
))
{
if
(
CollectionUtils
.
isEmpty
(
sendMemberIds
))
{
return
this
.
fail
(
"无会员数据"
);
return
RestResponse
.
failure
(
"-1"
,
"无会员数据"
);
}
}
List
<
String
>
userIdList
=
new
ArrayList
<>();
List
<
String
>
userIdList
=
new
ArrayList
<>();
if
(
clerk
.
getClerkType
()
>
0
)
{
if
(
clerk
.
getClerkType
()
>
0
)
{
...
@@ -84,12 +85,12 @@ public class QwMessageController extends WebBaseController {
...
@@ -84,12 +85,12 @@ public class QwMessageController extends WebBaseController {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
info
(
e
.
getMessage
(),
e
);
logger
.
info
(
e
.
getMessage
(),
e
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
RestResponse
.
successResult
(
);
}
}
// 朋友圈任务
// 朋友圈任务
@RequestMapping
(
"/add_moment_task"
)
@RequestMapping
(
"/add_moment_task"
)
public
HaobanResponse
share
(
CustomerQO
qo
,
String
imgJson
)
{
public
RestResponse
<
Object
>
share
(
CustomerQO
qo
,
String
imgJson
)
{
String
clerkId
=
qo
.
getClerkId
();
String
clerkId
=
qo
.
getClerkId
();
String
wxEnterpriseId
=
qo
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
qo
.
getWxEnterpriseId
();
String
enterpriseId
=
qo
.
getEnterpriseId
();
String
enterpriseId
=
qo
.
getEnterpriseId
();
...
@@ -105,6 +106,9 @@ public class QwMessageController extends WebBaseController {
...
@@ -105,6 +106,9 @@ public class QwMessageController extends WebBaseController {
}
}
}
}
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
return
RestResponse
.
failure
(
"-1"
,
"无发送导购数据"
);
}
JSONObject
json
=
new
JSONObject
();
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"clerkIdList"
,
clerkIdList
);
json
.
put
(
"clerkIdList"
,
clerkIdList
);
json
.
put
(
"enterpriseId"
,
enterpriseId
);
json
.
put
(
"enterpriseId"
,
enterpriseId
);
...
@@ -113,6 +117,7 @@ public class QwMessageController extends WebBaseController {
...
@@ -113,6 +117,7 @@ public class QwMessageController extends WebBaseController {
// 朋友圈-分享
// 朋友圈-分享
json
.
put
(
"sendType"
,
2
);
json
.
put
(
"sendType"
,
2
);
json
.
put
(
"wxEnterpriseId"
,
wxEnterpriseId
);
json
.
put
(
"wxEnterpriseId"
,
wxEnterpriseId
);
json
.
put
(
"content"
,
qo
.
getContent
())
;
String
ret
=
json
.
toJSONString
();
String
ret
=
json
.
toJSONString
();
try
{
try
{
GICMQClientUtil
.
getClientInstance
().
sendCommonMessage
(
"haobanCommonRouter"
,
ret
,
GICMQClientUtil
.
getClientInstance
().
sendCommonMessage
(
"haobanCommonRouter"
,
ret
,
...
@@ -120,7 +125,7 @@ public class QwMessageController extends WebBaseController {
...
@@ -120,7 +125,7 @@ public class QwMessageController extends WebBaseController {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
info
(
e
.
getMessage
(),
e
);
logger
.
info
(
e
.
getMessage
(),
e
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
RestResponse
.
successResult
(
);
}
}
}
}
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