Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
a49f445e
Commit
a49f445e
authored
May 27, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
趋势图多出一条记录的问题
parent
6574cc77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PriceAdjustmentDaoImpl.java
...xyst/dinas/price/internal/dao/PriceAdjustmentDaoImpl.java
+2
-2
No files found.
backend/xyst.dinas.price/src/main/java/com/xyst/dinas/price/internal/dao/PriceAdjustmentDaoImpl.java
View file @
a49f445e
...
@@ -362,7 +362,7 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
...
@@ -362,7 +362,7 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
*/
*/
private
List
<
UUID
>
getToStartStation
(
Date
date
){
private
List
<
UUID
>
getToStartStation
(
Date
date
){
DetachedCriteria
detachedCriteria
=
getDetachedCriteria
(
date
);
DetachedCriteria
detachedCriteria
=
getDetachedCriteria
(
date
);
detachedCriteria
.
setProjection
(
Projections
.
projectionList
().
add
(
Projections
.
property
(
"id"
)));
detachedCriteria
.
setProjection
(
Projections
.
projectionList
().
add
(
Projections
.
property
(
"
station.
id"
)));
return
(
List
<
UUID
>)
template
.
findByCriteria
(
detachedCriteria
);
return
(
List
<
UUID
>)
template
.
findByCriteria
(
detachedCriteria
);
}
}
...
@@ -428,7 +428,7 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
...
@@ -428,7 +428,7 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
priceAdjustment
.
setValue
(
Double
.
valueOf
(
value
.
toString
()));
priceAdjustment
.
setValue
(
Double
.
valueOf
(
value
.
toString
()));
priceAdjustmentList
.
add
(
priceAdjustment
);
priceAdjustmentList
.
add
(
priceAdjustment
);
ArrayList
<
TimeValue
>
newTimeValue
=
setEveryDayValue
(
adjustmentStartDate
,
forDate
,
forValue
,
dinasTypeId
,
stationId
,
adjustmentId
,
(
Date
)
o
,
(
BigDecimal
)
value
);
ArrayList
<
TimeValue
>
newTimeValue
=
setEveryDayValue
(
adjustmentStartDate
,
forDate
,
forValue
,
dinasTypeId
,
stationId
,
adjustmentId
,
o1
,
(
BigDecimal
)
value
);
if
(
newTimeValue
!=
null
)
{
if
(
newTimeValue
!=
null
)
{
priceAdjustmentList
.
addAll
(
priceAdjustmentList
.
size
()-
1
,
newTimeValue
);
priceAdjustmentList
.
addAll
(
priceAdjustmentList
.
size
()-
1
,
newTimeValue
);
}
}
...
...
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