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
5047c627
Commit
5047c627
authored
Dec 20, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人群回显
parent
6ef0f293
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
14 deletions
+29
-14
HmLinkChatDTO.java
.../java/com/gic/haoban/manage/api/dto/hm/HmLinkChatDTO.java
+10
-0
HmLinkChatServiceImpl.java
...manage/service/service/hm/impl/HmLinkChatServiceImpl.java
+2
-2
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+17
-12
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/hm/HmLinkChatDTO.java
View file @
5047c627
...
...
@@ -35,6 +35,16 @@ public class HmLinkChatDTO implements Serializable {
private
String
name
;
private
Integer
linkCount
;
private
String
esId
;
// 用于人群回显
private
String
searchJson
;
public
String
getSearchJson
()
{
return
searchJson
;
}
public
void
setSearchJson
(
String
searchJson
)
{
this
.
searchJson
=
searchJson
;
}
public
String
getEsId
()
{
return
esId
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmLinkChatServiceImpl.java
View file @
5047c627
...
...
@@ -58,7 +58,7 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
TabHmLinkChat
entity
=
EntityUtil
.
changeEntityByJSON
(
TabHmLinkChat
.
class
,
item
);
this
.
hmLinkChatMapper
.
update
(
entity
);
if
(
item
.
getMemberType
()
==
0
)
{
screeningDetailService
.
save
(
HmLinkChatService
.
ES_ID
+
entity
.
getLinkChatId
(),
item
.
get
Filter
Json
());
screeningDetailService
.
save
(
HmLinkChatService
.
ES_ID
+
entity
.
getLinkChatId
(),
item
.
get
Search
Json
());
}
}
}
...
...
@@ -71,7 +71,7 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
entity
.
setLinkId
(
linkId
);
this
.
hmLinkChatMapper
.
insert
(
entity
);
if
(
dto
.
getMemberType
()
==
0
)
{
screeningDetailService
.
save
(
HmLinkChatService
.
ES_ID
+
entity
.
getLinkChatId
(),
dto
.
get
Filter
Json
());
screeningDetailService
.
save
(
HmLinkChatService
.
ES_ID
+
entity
.
getLinkChatId
(),
dto
.
get
Search
Json
());
}
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
5047c627
...
...
@@ -47,7 +47,7 @@ import com.gic.log.record.util.GicLogRecordOptTypeEnum;
/**
*
* @ClassName: GroupChatPlanController
* @Description: 群群发
计划
* @Description: 群群发
任务
* @author xugh
* @date 2022年11月26日 上午9:32:56
*
...
...
@@ -92,12 +92,12 @@ public class GroupChatPlanController {
public
RestResponse
<
Object
>
del
(
Long
planId
)
{
if
(
null
==
planId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"
计划
ID空"
);
return
RestResponse
.
failure
(
"9999"
,
"
任务
ID空"
);
}
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"
计划
不存在"
);
return
RestResponse
.
failure
(
"1"
,
"
任务
不存在"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
this
.
groupChatPlanApiService
.
del
(
loginUser
.
getClerkId
(),
loginUser
.
getClerkName
(),
planId
);
...
...
@@ -121,16 +121,21 @@ public class GroupChatPlanController {
public
RestResponse
<
Object
>
stop
(
Long
planId
)
{
if
(
null
==
planId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"
计划
ID空"
);
return
RestResponse
.
failure
(
"9999"
,
"
任务
ID空"
);
}
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
return
RestResponse
.
failure
(
"1"
,
"任务不存在"
);
}
GroupChatPlanDTO
plan
=
planResp
.
getResult
()
;
if
(
plan
.
getEndTime
().
getTime
()<=
new
Date
().
getTime
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"任务已结束"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
this
.
groupChatPlanApiService
.
stop
(
loginUser
.
getClerkId
(),
loginUser
.
getClerkName
(),
planId
);
String
logContent
=
"终止客户群群发【"
+
plan
Resp
.
getResult
()
.
getName
()
+
"】"
;
String
logContent
=
"终止客户群群发【"
+
plan
.
getName
()
+
"】"
;
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
return
RestResponse
.
successResult
();
...
...
@@ -144,7 +149,7 @@ public class GroupChatPlanController {
GroupChatPlanDTO
oldPlan
=
oldResp
.
getResult
();
if
(
null
==
oldPlan
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"
计划
不存在"
);
return
RestResponse
.
failure
(
"9999"
,
"
任务
不存在"
);
}
if
(
oldPlan
.
getSendType
()
==
1
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
...
...
@@ -286,7 +291,7 @@ public class GroupChatPlanController {
public
RestResponse
<
Object
>
detail
(
Long
planId
,
@RequestParam
(
defaultValue
=
"0"
)
int
updteFlag
)
{
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"1"
,
"
计划
不存在"
);
return
RestResponse
.
failure
(
"1"
,
"
任务
不存在"
);
}
GroupChatPlanDTO
plan
=
planResp
.
getResult
();
plan
.
getStaffIdList
();
...
...
@@ -328,14 +333,14 @@ public class GroupChatPlanController {
@RequestMapping
(
"owner-log"
)
public
RestResponse
<
Object
>
ownerLog
(
Long
planId
,
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
if
(
null
==
planId
)
{
return
RestResponse
.
failure
(
"9999"
,
"
计划
ID空"
);
return
RestResponse
.
failure
(
"9999"
,
"
任务
ID空"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
resp
=
this
.
groupChatPlanApiService
.
listOwnerLogPage
(
planId
,
qdto
,
basePageInfo
);
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"1"
,
"
计划
不存在"
);
return
RestResponse
.
failure
(
"1"
,
"
任务
不存在"
);
}
return
RestResponse
.
successResult
(
resp
.
getResult
());
}
...
...
@@ -343,14 +348,14 @@ public class GroupChatPlanController {
@RequestMapping
(
"log"
)
public
RestResponse
<
Object
>
log
(
Long
planId
,
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
if
(
null
==
planId
)
{
return
RestResponse
.
failure
(
"9999"
,
"
计划
ID空"
);
return
RestResponse
.
failure
(
"9999"
,
"
任务
ID空"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
ServiceResponse
<
Page
<
GroupChatPlanLogDTO
>>
resp
=
this
.
groupChatPlanApiService
.
listLogPage
(
planId
,
qdto
,
basePageInfo
);
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"1"
,
"
计划
不存在"
);
return
RestResponse
.
failure
(
"1"
,
"
任务
不存在"
);
}
return
RestResponse
.
successResult
(
resp
.
getResult
());
}
...
...
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