Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
90987c31
Commit
90987c31
authored
Sep 11, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查价横向类目
parent
b7659c08
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/TransverseCategory.java
...c/main/java/com/wwdz/ch/wx/entity/TransverseCategory.java
+4
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/QueryPriceServiceImpl.java
.../main/java/com/wwdz/ch/wx/impl/QueryPriceServiceImpl.java
+1
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/TransverseCategory.java
View file @
90987c31
...
...
@@ -3,6 +3,7 @@ package com.wwdz.ch.wx.entity;
import
com.wwdz.ch.db.domain.Category
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
org.springframework.util.StringUtils
;
@Data
public
class
TransverseCategory
implements
Entity
{
...
...
@@ -17,6 +18,8 @@ public class TransverseCategory implements Entity {
private
Boolean
isLeaf
;
private
String
cion
;
public
TransverseCategory
()
{
}
...
...
@@ -37,6 +40,7 @@ public class TransverseCategory implements Entity {
transverseCategory
.
setLevel
(
category
.
getLevel
());
transverseCategory
.
setIsLeaf
(
category
.
getIsLeaf
());
transverseCategory
.
setPid
(
category
.
getPid
());
transverseCategory
.
setCion
(
StringUtils
.
isEmpty
(
category
.
getIcon
())?
""
:
category
.
getIcon
().
split
(
";"
)[
0
]);
return
transverseCategory
;
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/QueryPriceServiceImpl.java
View file @
90987c31
...
...
@@ -75,7 +75,7 @@ public class QueryPriceServiceImpl implements QueryPriceService {
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
String
time
=
date
.
format
(
formatter
);
xData
.
add
(
time
);
totalPrice
+=
bidRecord
.
getPrice
()
/
(
double
)
100
;
totalPrice
+=
(
bidRecord
.
getPrice
()
/
(
double
)
100
)
;
valueList
.
add
(
bidRecord
.
getPrice
()
/
(
double
)
100
/
(
double
)
10000
);
}
double
averagePrice
=
totalPrice
/
bidRecordList
.
size
();
...
...
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