Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4d406ba5
authored
Jan 08, 2026
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(bi): 开始时间 结束时间调整 日志打印
1 parent
ab322bd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerSelfDailyDataJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessIntelligenceService.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerSelfDailyDataJob.java
View file @
4d406ba
...
@@ -33,8 +33,8 @@ public class HandlerSelfDailyDataJob implements SimpleJob {
...
@@ -33,8 +33,8 @@ public class HandlerSelfDailyDataJob implements SimpleJob {
String
messageTemplate
=
"处理4s店业务自定义返回数据,默认前1天~前1个月-开始-时间:%s"
;
String
messageTemplate
=
"处理4s店业务自定义返回数据,默认前1天~前1个月-开始-时间:%s"
;
String
messageContent
=
String
.
format
(
messageTemplate
,
DateUtil
.
now
());
String
messageContent
=
String
.
format
(
messageTemplate
,
DateUtil
.
now
());
WeComRobotUtil
.
sendTextMessage
(
roobotUrl
,
messageContent
);
WeComRobotUtil
.
sendTextMessage
(
roobotUrl
,
messageContent
);
String
startDateStr
=
DateUtil
.
format
(
DateUtil
.
yesterday
(
),
"yyyy-MM-dd"
);
String
startDateStr
=
DateUtil
.
format
(
DateUtil
.
offsetMonth
(
DateUtil
.
yesterday
(),
-
1
),
"yyyy-MM-dd"
);
String
endDateStr
=
DateUtil
.
format
(
DateUtil
.
offsetMonth
(
DateUtil
.
yesterday
(),
-
1
),
"yyyy-MM-dd"
);
String
endDateStr
=
DateUtil
.
format
(
DateUtil
.
yesterday
(
),
"yyyy-MM-dd"
);
businessIntelligenceService
.
selfDailyDataHandle
(
startDateStr
,
endDateStr
);
businessIntelligenceService
.
selfDailyDataHandle
(
startDateStr
,
endDateStr
);
long
duration
=
System
.
currentTimeMillis
()
-
startTime
;
long
duration
=
System
.
currentTimeMillis
()
-
startTime
;
messageTemplate
=
"处理4s店业务自定义返回数据,默认前1天~前1个月-结束-时间:%s,耗时:%s 秒"
;
messageTemplate
=
"处理4s店业务自定义返回数据,默认前1天~前1个月-结束-时间:%s,耗时:%s 秒"
;
...
...
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessIntelligenceService.java
View file @
4d406ba
...
@@ -65,12 +65,8 @@ public class BusinessIntelligenceService {
...
@@ -65,12 +65,8 @@ public class BusinessIntelligenceService {
public
void
selfDailyDataHandle
(
String
startDate
,
String
endDate
)
{
public
void
selfDailyDataHandle
(
String
startDate
,
String
endDate
)
{
long
startTime
=
System
.
currentTimeMillis
();
long
startTime
=
System
.
currentTimeMillis
();
log
.
info
(
"开始处理日期范围 {} 至 {}"
,
format
(
DateUtil
.
yesterday
()),
format
(
DateUtil
.
yesterday
()));
log
.
info
(
"开始处理日期范围 {} 至 {}"
,
startDate
,
endDate
);
if
(
StrUtil
.
isBlank
(
startDate
)
||
StrUtil
.
isBlank
(
endDate
))
{
generateBusinessIntelligenceData
(
DateUtil
.
yesterday
(),
DateUtil
.
yesterday
(),
false
);
}
else
{
generateBusinessIntelligenceData
(
DateUtil
.
parse
(
startDate
,
"yyyy-MM-dd"
),
DateUtil
.
parse
(
endDate
,
"yyyy-MM-dd"
),
false
);
generateBusinessIntelligenceData
(
DateUtil
.
parse
(
startDate
,
"yyyy-MM-dd"
),
DateUtil
.
parse
(
endDate
,
"yyyy-MM-dd"
),
false
);
}
long
duration
=
System
.
currentTimeMillis
()
-
startTime
;
long
duration
=
System
.
currentTimeMillis
()
-
startTime
;
log
.
info
(
"BI数据生成完成,耗时 {} 毫秒"
,
duration
);
log
.
info
(
"BI数据生成完成,耗时 {} 毫秒"
,
duration
);
}
}
...
@@ -367,7 +363,7 @@ public class BusinessIntelligenceService {
...
@@ -367,7 +363,7 @@ public class BusinessIntelligenceService {
}
}
long
duration
=
System
.
currentTimeMillis
()
-
startTime
;
long
duration
=
System
.
currentTimeMillis
()
-
startTime
;
log
.
debug
(
"商户ID:{} 批量插入完成,耗时:{} ms,数量:{}"
,
records
.
get
(
0
).
getMerchantId
(),
duration
,
records
.
size
());
log
.
debug
(
"商户ID:{} 批量插入完成,耗时:{} ms,数量:{}"
,
records
.
get
(
0
).
getMerchantId
(),
duration
,
records
.
size
());
}
else
{
}
else
{
log
.
info
(
"商户ID:{} 批量记录数量:{}"
,
records
.
get
(
0
).
getMerchantId
(),
records
.
size
());
log
.
info
(
"商户ID:{} 批量记录数量:{}"
,
records
.
get
(
0
).
getMerchantId
(),
records
.
size
());
long
startTime
=
System
.
currentTimeMillis
();
long
startTime
=
System
.
currentTimeMillis
();
biMapper
.
insertBatchBiRecord
(
records
);
biMapper
.
insertBatchBiRecord
(
records
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment