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
c49e0d20
Commit
c49e0d20
authored
Dec 21, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志
parent
13c1f7bc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletions
+25
-1
GroupChatController.java
...aoban/manage/web/controller/chat/GroupChatController.java
+3
-0
GroupChatHmController.java
...ban/manage/web/controller/chat/GroupChatHmController.java
+9
-1
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+10
-0
HmLinkController.java
...gic/haoban/manage/web/controller/hm/HmLinkController.java
+3
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatController.java
View file @
c49e0d20
...
...
@@ -76,6 +76,7 @@ public class GroupChatController {
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatSearchQDTO
qdto
)
{
List
<
Long
>
groupChatIdList
=
qdto
.
getGroupChatIdList
();
if
(
CollectionUtils
.
isEmpty
(
groupChatIdList
))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"请选择认领的群"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
...
@@ -173,9 +174,11 @@ public class GroupChatController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_CHAT
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1001_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群列表"
)
public
RestResponse
<
Object
>
transfer
(
String
staffId
,
String
groupChatIdList
)
{
if
(
StringUtils
.
isEmpty
(
staffId
))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"请选择继承的群主"
);
}
if
(
StringUtils
.
isEmpty
(
groupChatIdList
))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"请选择继承的群"
);
}
String
[]
arr
=
groupChatIdList
.
split
(
","
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatHmController.java
View file @
c49e0d20
...
...
@@ -80,9 +80,11 @@ public class GroupChatHmController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码-新建活码"
)
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatHmDTO
dto
)
{
if
(
CollectionUtils
.
isEmpty
(
dto
.
getChatIdList
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"请选择加入的群"
);
}
if
(
dto
.
getChatIdList
().
size
()
>
4
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"最多可选4个群"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
...
@@ -107,13 +109,16 @@ public class GroupChatHmController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_02
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码-编辑活码"
)
public
RestResponse
<
Object
>
update
(
@RequestBody
GroupChatHmDTO
dto
)
{
if
(
CollectionUtils
.
isEmpty
(
dto
.
getChatIdList
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"请选择加入的群"
);
}
if
(
dto
.
getChatIdList
().
size
()
>
4
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"最多可选4个群"
);
}
if
(
null
==
dto
.
getChatHmId
())
{
return
RestResponse
.
failure
(
"1"
,
"ID未空"
);
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"ID为空"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
ServiceResponse
<
GroupChatHmDTO
>
oldResp
=
this
.
groupChatHmApiService
.
detail
(
dto
.
getChatHmId
());
...
...
@@ -132,6 +137,8 @@ public class GroupChatHmController {
if
(
StringUtils
.
isNotBlank
(
logContent
))
{
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
else
{
GicLogRecordEvaluationContext
.
noWriteLog
();
}
return
RestResponse
.
successResult
();
}
...
...
@@ -242,6 +249,7 @@ public class GroupChatHmController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_03
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码"
)
public
RestResponse
<
Object
>
discard
(
Long
chatHmId
,
@RequestParam
(
defaultValue
=
"0"
)
int
page
)
{
if
(
null
==
chatHmId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"群活码ID空"
);
}
// 判断是否关联链接
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
c49e0d20
...
...
@@ -69,6 +69,7 @@ public class GroupChatPlanController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatPlanDTO
dto
)
{
if
(
StringUtils
.
isBlank
(
dto
.
getStaffIdList
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"请选择群主"
);
}
logger
.
info
(
"新增参数={}"
,
JSON
.
toJSONString
(
dto
));
...
...
@@ -90,10 +91,12 @@ public class GroupChatPlanController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_04
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
public
RestResponse
<
Object
>
del
(
Long
planId
)
{
if
(
null
==
planId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"任务ID空"
);
}
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"任务不存在"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
...
@@ -117,14 +120,17 @@ public class GroupChatPlanController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_03
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
public
RestResponse
<
Object
>
stop
(
Long
planId
)
{
if
(
null
==
planId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"任务ID空"
);
}
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
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
();
...
...
@@ -142,10 +148,12 @@ public class GroupChatPlanController {
ServiceResponse
<
GroupChatPlanDTO
>
oldResp
=
this
.
groupChatPlanApiService
.
detail
(
dto
.
getPlanId
());
GroupChatPlanDTO
oldPlan
=
oldResp
.
getResult
();
if
(
null
==
oldPlan
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"任务不存在"
);
}
long
now
=
System
.
currentTimeMillis
();
if
(
oldPlan
.
getEndTime
().
getTime
()
<=
now
||
oldPlan
.
getStatusFlag
()
==
0
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"任务已结束"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
...
@@ -165,6 +173,8 @@ public class GroupChatPlanController {
if
(
StringUtils
.
isNotBlank
(
logContent
))
{
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
else
{
GicLogRecordEvaluationContext
.
noWriteLog
();
}
return
RestResponse
.
successResult
();
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmLinkController.java
View file @
c49e0d20
...
...
@@ -97,6 +97,7 @@ public class HmLinkController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HUOMA
,
optType
=
GicLogRecordOptTypeEnum
.
HM_LINK_ADD
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"引流链接-新建链接"
)
public
RestResponse
<
Object
>
save
(
@RequestBody
HmLinkDTO
dto
)
{
if
(
null
==
dto
.
getLinkType
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"请选择链接类型"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
...
@@ -152,6 +153,8 @@ public class HmLinkController {
GicLogRecordEvaluationContext
.
setOptPage
(
"引流入群-编辑链接"
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
else
{
GicLogRecordEvaluationContext
.
noWriteLog
();
}
return
RestResponse
.
successResult
();
}
else
{
...
...
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