Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
stockPriceTack
Project
Project
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
刘长帅
stockPriceTack
Commits
edc3a234
Commit
edc3a234
authored
Jul 20, 2022
by
liucx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志
parent
a3870578
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
DateUtil.java
...ain/java/com/zfxftech/telmarket/common/util/DateUtil.java
+5
-0
CommunicationRecordStatisticalLogServiceImpl.java
...nt/impl/CommunicationRecordStatisticalLogServiceImpl.java
+1
-2
TimedTaskController.java
...ech/telmarket/task/communication/TimedTaskController.java
+2
-2
No files found.
src/main/java/com/zfxftech/telmarket/common/util/DateUtil.java
View file @
edc3a234
...
...
@@ -31,6 +31,7 @@ public class DateUtil {
public
static
final
String
DATE_FMT
=
"yyyy-MM-dd"
;
public
static
final
String
DATE_TIME_FMT
=
"yyyy-MM-dd HH:mm:ss"
;
public
static
final
String
DATE_TIME_FMT_HOURS
=
"yyyy-MM-dd 00:00:00"
;
/**
* 从Date类型的时间中提取日期部分
...
...
@@ -284,6 +285,10 @@ public class DateUtil {
return
dateToStr
(
new
Date
(),
DATE_TIME_FMT
);
}
public
static
String
getNowHours
()
{
return
dateToStr
(
new
Date
(),
DATE_TIME_FMT_HOURS
);
}
/**
* 获取今天日期
*
...
...
src/main/java/com/zfxftech/telmarket/service/followAccount/impl/CommunicationRecordStatisticalLogServiceImpl.java
View file @
edc3a234
...
...
@@ -104,8 +104,7 @@ public class CommunicationRecordStatisticalLogServiceImpl extends ServiceImpl<Co
@Override
public
void
saveOrUpdateWeek
()
{
Date
startTime
=
DateUtil
.
getThisWeekMonday
(
new
Date
());
Date
str
=
DateUtil
.
dateStrToDate
(
DateUtil
.
dateToStr
(
startTime
,
"yyyy-MM-dd 00:00:00"
),
"yyyy-MM-dd 00:00:00"
);
Date
startTime
=
DateUtil
.
getThisWeekMonday
(
DateUtil
.
dateStrToDate
(
DateUtil
.
getNowHours
(),
DateUtil
.
DATE_TIME_FMT_HOURS
));
List
<
CustomerCommunicationRecordTask
>
list
=
customerCommunicationRecordService
.
queryCustomerCommunicationRecordTask
(
startTime
,
new
Date
());
if
(
ObjectUtils
.
isEmpty
(
list
)){
...
...
src/main/java/com/zfxftech/telmarket/task/communication/TimedTaskController.java
View file @
edc3a234
...
...
@@ -44,8 +44,8 @@ public class TimedTaskController {
@Scheduled
(
cron
=
"0 15 12,16 * * ?"
)
public
CommonResult
weekCommunicationCount
()
{
communicationRecordStatisticalLogService
.
saveOrUpdateWeek
();
logger
.
info
(
"
日
统计沟通记录次数成功"
);
return
CommonResult
.
success
(
"
日
统计沟通记录次数成功"
);
logger
.
info
(
"
周
统计沟通记录次数成功"
);
return
CommonResult
.
success
(
"
周
统计沟通记录次数成功"
);
}
@ApiOperation
(
value
=
"月统计沟通记录次数"
,
notes
=
"月统计沟通记录次数 "
,
httpMethod
=
"GET"
)
@GetMapping
(
"mothCommunication"
)
...
...
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