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
c2f8f135
Commit
c2f8f135
authored
Mar 26, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周月报
parent
75f5e432
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
WeekMonthDataAdaptor.java
...service/service/content/adaptor/WeekMonthDataAdaptor.java
+1
-1
WeekMonthReportBuilder.java
...rvice/service/content/adaptor/WeekMonthReportBuilder.java
+4
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/WeekMonthDataAdaptor.java
View file @
c2f8f135
...
@@ -163,7 +163,7 @@ public class WeekMonthDataAdaptor {
...
@@ -163,7 +163,7 @@ public class WeekMonthDataAdaptor {
if
(
jsonObject
==
null
)
{
if
(
jsonObject
==
null
)
{
return
null
;
return
null
;
}
}
BigDecimal
useMatlNum
=
jsonObject
.
getBigDecimal
(
"useMatlNum"
);
BigDecimal
useMatlNum
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"useMatlNum"
)).
orElse
(
BigDecimal
.
ZERO
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"omniConvSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
BigDecimal
convSalesAmt
=
Optional
.
ofNullable
(
jsonObject
.
getBigDecimal
(
"omniConvSalesAmt"
)).
orElse
(
BigDecimal
.
ZERO
);
return
formatDecimal
(
useMatlNum
,
convSalesAmt
);
return
formatDecimal
(
useMatlNum
,
convSalesAmt
);
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/WeekMonthReportBuilder.java
View file @
c2f8f135
...
@@ -143,7 +143,10 @@ public class WeekMonthReportBuilder {
...
@@ -143,7 +143,10 @@ public class WeekMonthReportBuilder {
return
;
return
;
}
}
// 生成图片地址
// 生成图片地址
String
url
=
DrawImageUtils
.
drawImage
(
context
.
getFactoryCode
(),
materialDataResult
.
getFirstValue
(),
materialDataResult
.
getSecondValue
(),
templatePath
);
String
url
=
DrawImageUtils
.
drawImage
(
context
.
getFactoryCode
(),
StringUtils
.
isBlank
(
materialDataResult
.
getFirstValue
())?
"0"
:
materialDataResult
.
getFirstValue
(),
StringUtils
.
isBlank
(
materialDataResult
.
getSecondValue
())?
"0"
:
materialDataResult
.
getSecondValue
(),
templatePath
);
context
.
setMaterialReportUrl
(
url
);
context
.
setMaterialReportUrl
(
url
);
}
}
...
...
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