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
c6b3a753
Commit
c6b3a753
authored
Dec 20, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志
parent
f4787ded
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+3
-2
GroupChatPlanApiServiceImpl.java
...ce/service/out/impl/chat/GroupChatPlanApiServiceImpl.java
+1
-1
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+3
-9
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
c6b3a753
...
...
@@ -432,10 +432,10 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
.
append
(
day
).
append
(
" "
).
append
(
month
).
append
(
" "
).
append
(
year
).
toString
();
return
time
;
}
@Override
public
void
updateRemark
(
GroupChatPlanDTO
dto
)
{
this
.
groupChatPlanMapper
.
updateRemark
(
dto
)
;
this
.
groupChatPlanMapper
.
updateRemark
(
dto
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatPlanApiServiceImpl.java
View file @
c6b3a753
...
...
@@ -49,7 +49,7 @@ public class GroupChatPlanApiServiceImpl implements GroupChatPlanApiService {
this
.
groupChatPlanService
.
save
(
dto
);
return
ServiceResponse
.
success
(
dto
);
}
@Override
public
ServiceResponse
<
GroupChatPlanDTO
>
updateRemark
(
GroupChatPlanDTO
dto
)
{
this
.
groupChatPlanService
.
updateRemark
(
dto
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
c6b3a753
...
...
@@ -120,17 +120,14 @@ 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
();
...
...
@@ -148,12 +145,10 @@ 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
();
...
...
@@ -168,11 +163,10 @@ public class GroupChatPlanController {
}
if
(
resp
.
isSuccess
())
{
String
logContent
=
this
.
getUpdateLog
(
oldPlan
,
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
();
}
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