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
f576872f
Commit
f576872f
authored
Mar 24, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周月报格式化时间修改
parent
b2290f1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
WeekMonthDataAdaptor.java
...service/service/content/adaptor/WeekMonthDataAdaptor.java
+4
-5
WeekMonthReportBuilder.java
...rvice/service/content/adaptor/WeekMonthReportBuilder.java
+0
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/WeekMonthDataAdaptor.java
View file @
f576872f
...
...
@@ -225,11 +225,11 @@ public class WeekMonthDataAdaptor {
String
endDate
=
bizDate
;
String
beginDate
=
bizDate
;
if
(
MaterialReportType
.
MONTH
.
getCode
().
equals
(
reportType
))
{
DateTime
date
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
parse
(
"yyyy-MM"
);
DateTime
date
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
parse
(
bizDate
,
"yyyy-MM"
);
beginDate
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
format
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
beginOfMonth
(
date
),
"yyyy-MM-dd"
);
endDate
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
format
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
endOfMonth
(
date
),
"yyyy-MM-dd"
);
}
else
{
DateTime
date
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
parse
(
"yyyy-MM-dd"
);
DateTime
date
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
parse
(
bizDate
,
"yyyy-MM-dd"
);
endDate
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
format
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
endOfWeek
(
date
),
"yyyy-MM-dd"
);
}
Map
<
String
,
Object
>
inlineParams
=
new
HashMap
<>();
...
...
@@ -251,11 +251,10 @@ public class WeekMonthDataAdaptor {
if
(
result
.
get
(
"data"
)
==
null
)
{
return
null
;
}
List
<
JSONObject
>
dataList
=
DataApiUtils
.
getDataList
(
result
);
if
(
CollectionUtils
.
isEmpty
(
dataList
)
)
{
JSONObject
jsonObject
=
DataApiUtils
.
getPageOne
(
result
);
if
(
jsonObject
==
null
)
{
return
null
;
}
JSONObject
jsonObject
=
dataList
.
get
(
0
);
BigDecimal
potCusConnRate
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"potCusConnRate"
)).
orElse
(
BigDecimal
.
ZERO
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"connConvsAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
return
formatDecimal
(
potCusConnRate
,
convSalesAmt
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/WeekMonthReportBuilder.java
View file @
f576872f
...
...
@@ -126,7 +126,6 @@ public class WeekMonthReportBuilder {
String
bizDate
=
this
.
calcBizDate
(
context
.
getReportType
());
context
.
setBizDate
(
bizDate
);
// todo 潜客雷达数据
if
(
StringUtils
.
isBlank
(
context
.
getMainStoreId
()))
{
// 区经
List
<
String
>
storeIds
=
this
.
queryClerkStoreIds
(
clerkId
,
context
.
getStaffInfo
().
getWxEnterpriseId
());
...
...
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