Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
f67bb66f
Commit
f67bb66f
authored
Sep 24, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
5e2dfe8b
80b1b6b7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
ConsumerMonthlyCard.java
...rc/main/java/share/system/domain/ConsumerMonthlyCard.java
+3
-0
ConsumerSecondaryCard.java
.../main/java/share/system/domain/ConsumerSecondaryCard.java
+2
-3
MonthlyCardOrderServiceImpl.java
...hare/system/service/impl/MonthlyCardOrderServiceImpl.java
+1
-0
SecondaryCardOrderServiceImpl.java
...re/system/service/impl/SecondaryCardOrderServiceImpl.java
+1
-0
No files found.
share-system/src/main/java/share/system/domain/ConsumerMonthlyCard.java
View file @
f67bb66f
package
share
.
system
.
domain
;
package
share
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -24,6 +26,7 @@ public class ConsumerMonthlyCard extends BaseEntity {
...
@@ -24,6 +26,7 @@ public class ConsumerMonthlyCard extends BaseEntity {
/**
/**
* 主键
* 主键
*/
*/
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/**
/**
...
...
share-system/src/main/java/share/system/domain/ConsumerSecondaryCard.java
View file @
f67bb66f
package
share
.
system
.
domain
;
package
share
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
@@ -26,6 +24,7 @@ public class ConsumerSecondaryCard extends BaseEntity {
...
@@ -26,6 +24,7 @@ public class ConsumerSecondaryCard extends BaseEntity {
/**
/**
* 主键
* 主键
*/
*/
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/**
/**
...
...
share-system/src/main/java/share/system/service/impl/MonthlyCardOrderServiceImpl.java
View file @
f67bb66f
...
@@ -168,6 +168,7 @@ public class MonthlyCardOrderServiceImpl extends ServiceImpl<MonthlyCardOrderMap
...
@@ -168,6 +168,7 @@ public class MonthlyCardOrderServiceImpl extends ServiceImpl<MonthlyCardOrderMap
consumerMonthlyCard
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
byId
.
getMonthlyCardDays
().
intValue
()));
consumerMonthlyCard
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
byId
.
getMonthlyCardDays
().
intValue
()));
consumerMonthlyCard
.
setFreeDuration
(
byId
.
getFreeDuration
());
consumerMonthlyCard
.
setFreeDuration
(
byId
.
getFreeDuration
());
consumerMonthlyCard
.
setMonthlyCardDays
(
byId
.
getMonthlyCardDays
());
consumerMonthlyCard
.
setMonthlyCardDays
(
byId
.
getMonthlyCardDays
());
consumerMonthlyCard
.
setCreateTime
(
new
Date
());
consumerMonthlyCardService
.
save
(
consumerMonthlyCard
);
consumerMonthlyCardService
.
save
(
consumerMonthlyCard
);
}
}
...
...
share-system/src/main/java/share/system/service/impl/SecondaryCardOrderServiceImpl.java
View file @
f67bb66f
...
@@ -158,6 +158,7 @@ public class SecondaryCardOrderServiceImpl extends ServiceImpl<SecondaryCardOrde
...
@@ -158,6 +158,7 @@ public class SecondaryCardOrderServiceImpl extends ServiceImpl<SecondaryCardOrde
consumerSecondaryCard
.
setPackId
(
secondaryCardConf
.
getPackId
());
consumerSecondaryCard
.
setPackId
(
secondaryCardConf
.
getPackId
());
consumerSecondaryCard
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
secondaryCardConf
.
getValidityPeriod
()));
consumerSecondaryCard
.
setExpirationDate
(
DateUtils
.
addYears
(
new
Date
(),
secondaryCardConf
.
getValidityPeriod
()));
consumerSecondaryCard
.
setNumber
(
secondaryCardConf
.
getNumber
());
consumerSecondaryCard
.
setNumber
(
secondaryCardConf
.
getNumber
());
consumerSecondaryCard
.
setCreateTime
(
new
Date
());
consumerSecondaryCardService
.
save
(
consumerSecondaryCard
);
consumerSecondaryCardService
.
save
(
consumerSecondaryCard
);
}
}
...
...
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