Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
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
poc
poc-api
Commits
95984445
Commit
95984445
authored
Dec 17, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:积分包价格
parent
2c8ee014
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
PointEquityInfo.java
src/main/java/cn/com/poc/equity/domain/PointEquityInfo.java
+5
-3
EquityRestImpl.java
...main/java/cn/com/poc/equity/rest/impl/EquityRestImpl.java
+2
-1
No files found.
src/main/java/cn/com/poc/equity/domain/PointEquityInfo.java
View file @
95984445
package
cn
.
com
.
poc
.
equity
.
domain
;
package
cn
.
com
.
poc
.
equity
.
domain
;
import
java.math.BigDecimal
;
/**
/**
* @author alex.yao
* @author alex.yao
* @date 2024/12/9
* @date 2024/12/9
*/
*/
public
class
PointEquityInfo
{
public
class
PointEquityInfo
{
private
Long
amount
;
private
BigDecimal
amount
;
private
Long
points
;
private
Long
points
;
public
Long
getAmount
()
{
public
BigDecimal
getAmount
()
{
return
amount
;
return
amount
;
}
}
public
void
setAmount
(
Long
amount
)
{
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
this
.
amount
=
amount
;
}
}
...
...
src/main/java/cn/com/poc/equity/rest/impl/EquityRestImpl.java
View file @
95984445
...
@@ -17,6 +17,7 @@ import org.springframework.stereotype.Component;
...
@@ -17,6 +17,7 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.util.List
;
import
java.util.List
;
@Component
@Component
...
@@ -51,7 +52,7 @@ public class EquityRestImpl implements EquityRest {
...
@@ -51,7 +52,7 @@ public class EquityRestImpl implements EquityRest {
Integer
amount
=
bizPaymentPackageConfigurationEntity
.
getAmount
();
Integer
amount
=
bizPaymentPackageConfigurationEntity
.
getAmount
();
Integer
points
=
bizPaymentPackageConfigurationEntity
.
getResourceCount
();
Integer
points
=
bizPaymentPackageConfigurationEntity
.
getResourceCount
();
pointEquityInfo
.
setPoints
(
points
.
longValue
());
pointEquityInfo
.
setPoints
(
points
.
longValue
());
pointEquityInfo
.
setAmount
(
amount
.
longValue
(
));
pointEquityInfo
.
setAmount
(
new
BigDecimal
(
amount
).
divide
(
new
BigDecimal
(
"100"
),
2
,
RoundingMode
.
HALF_UP
));
if
(
type
.
equals
(
EquityEnum
.
TYPE
.
normal
.
name
()))
{
if
(
type
.
equals
(
EquityEnum
.
TYPE
.
normal
.
name
()))
{
result
.
setNormal
(
pointEquityInfo
);
result
.
setNormal
(
pointEquityInfo
);
}
else
if
(
type
.
equals
(
EquityEnum
.
TYPE
.
professional
.
name
()))
{
}
else
if
(
type
.
equals
(
EquityEnum
.
TYPE
.
professional
.
name
()))
{
...
...
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