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
4701ed14
Commit
4701ed14
authored
Dec 20, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志
parent
c6b3a753
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
17 deletions
+3
-17
GroupChatController.java
...aoban/manage/web/controller/chat/GroupChatController.java
+0
-3
GroupChatHmController.java
...ban/manage/web/controller/chat/GroupChatHmController.java
+3
-11
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+0
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatController.java
View file @
4701ed14
...
...
@@ -76,7 +76,6 @@ 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
();
...
...
@@ -174,11 +173,9 @@ 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 @
4701ed14
...
...
@@ -80,11 +80,9 @@ 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
();
...
...
@@ -109,21 +107,17 @@ 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
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"ID未空"
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
ServiceResponse
<
GroupChatHmDTO
>
oldResp
=
this
.
groupChatHmApiService
.
detail
(
dto
.
getChatHmId
());
if
(!
oldResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
oldResp
.
getCode
(),
oldResp
.
getMessage
());
}
GroupChatHmDTO
oldDTO
=
oldResp
.
getResult
();
...
...
@@ -135,11 +129,10 @@ public class GroupChatHmController {
ServiceResponse
<
GroupChatHmDTO
>
resp
=
this
.
groupChatHmApiService
.
save
(
dto
);
if
(
resp
.
isSuccess
())
{
String
logContent
=
this
.
getUpdateLog
(
oldDTO
,
dto
);
if
(
StringUtils
.
isBlank
(
logContent
))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
if
(
StringUtils
.
isNotBlank
(
logContent
))
{
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
return
RestResponse
.
successResult
();
}
GicLogRecordEvaluationContext
.
noWriteLog
();
...
...
@@ -249,7 +242,6 @@ 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 @
4701ed14
...
...
@@ -69,7 +69,6 @@ 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
));
...
...
@@ -91,12 +90,10 @@ 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
();
...
...
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