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
122d749b
Commit
122d749b
authored
Oct 22, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
da0a78b0
062003f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+14
-17
ConsumerMonthlyCardMapper.xml
...ain/resources/mapper/system/ConsumerMonthlyCardMapper.xml
+2
-0
ConsumerSecondaryCardMapper.xml
...n/resources/mapper/system/ConsumerSecondaryCardMapper.xml
+2
-0
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
122d749b
...
@@ -1336,23 +1336,20 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -1336,23 +1336,20 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
monthlyCardLogService
.
save
(
monthlyCardLog
);
monthlyCardLogService
.
save
(
monthlyCardLog
);
}
}
}
}
// if (!ObjectUtils.isEmpty(sOrder.getSecondaryCardId()) && !ObjectUtils.isEmpty(sOrder.getPackId())) {
if
(!
ObjectUtils
.
isEmpty
(
sOrder
.
getSecondaryCardId
()))
{
// if (sOrder.getPackId().equals(consumerSecondaryCard.getPackId())) {
consumerSecondaryCard
.
setNumber
(
consumerSecondaryCard
.
getNumber
()
-
1
);
// consumerSecondaryCard.setNumber(consumerSecondaryCard.getNumber() - 1);
SecondaryCardLog
secondaryCardLog
=
new
SecondaryCardLog
();
// SecondaryCardLog secondaryCardLog = new SecondaryCardLog();
secondaryCardLog
.
setConsumerSecondaryCardId
(
sOrder
.
getSecondaryCardId
());
// secondaryCardLog.setConsumerSecondaryCardId(sOrder.getSecondaryCardId());
secondaryCardLog
.
setConsumerId
(
consumerSecondaryCard
.
getConsumerId
());
// secondaryCardLog.setConsumerId(consumerSecondaryCard.getConsumerId());
secondaryCardLog
.
setPhone
(
sOrder
.
getConsumerPhone
());
// secondaryCardLog.setPhone(sOrder.getConsumerPhone());
secondaryCardLog
.
setUsageCount
(
1L
);
// secondaryCardLog.setPackId(sOrder.getPackId());
secondaryCardLog
.
setResidueCount
(
Long
.
valueOf
(
consumerSecondaryCard
.
getNumber
()));
// secondaryCardLog.setUsageCount(1L);
secondaryCardLog
.
setOperationType
(
YesNoEnum
.
no
.
getIndex
());
// secondaryCardLog.setResidueCount(Long.valueOf(consumerSecondaryCard.getNumber()));
secondaryCardLog
.
setOperationTime
(
new
Date
());
// secondaryCardLog.setOperationType(YesNoEnum.no.getIndex());
secondaryCardLog
.
setCreateTime
(
new
Date
());
// secondaryCardLog.setOperationTime(new Date());
consumerSecondaryCardService
.
updateById
(
consumerSecondaryCard
);
// secondaryCardLog.setCreateTime(new Date());
secondaryCardLogService
.
save
(
secondaryCardLog
);
// consumerSecondaryCardService.updateById(consumerSecondaryCard);
}
// secondaryCardLogService.save(secondaryCardLog);
// }
// }
}
}
private
void
refundExtracted
(
ConsumerWallet
consumerWallet
,
SOrder
sOrder
,
ConsumerMember
consumerMember
)
{
private
void
refundExtracted
(
ConsumerWallet
consumerWallet
,
SOrder
sOrder
,
ConsumerMember
consumerMember
)
{
...
...
share-system/src/main/resources/mapper/system/ConsumerMonthlyCardMapper.xml
View file @
122d749b
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
<select
id=
"selectByConsumerId"
resultMap=
"ConsumerMonthlyCardResult"
>
<select
id=
"selectByConsumerId"
resultMap=
"ConsumerMonthlyCardResult"
>
select c.id,
select c.id,
c.monthly_card_conf_id,
c.monthly_card_conf_id,
c1.name as 'conf_name', c1.monthly_card_amount as 'conf_amount',
c.consumer_id,
c.consumer_id,
c2.nick_name,
c2.nick_name,
c2.avatar,
c2.avatar,
...
@@ -93,6 +94,7 @@
...
@@ -93,6 +94,7 @@
c.remark
c.remark
from s_consumer_monthly_card c
from s_consumer_monthly_card c
join s_consumer c2 on c.consumer_id = c2.id
join s_consumer c2 on c.consumer_id = c2.id
join s_monthly_card_conf c1 on c.monthly_card_conf_id = c1.id
where c.is_delete = 0
where c.is_delete = 0
and c.consumer_id = #{consumerId}
and c.consumer_id = #{consumerId}
</select>
</select>
...
...
share-system/src/main/resources/mapper/system/ConsumerSecondaryCardMapper.xml
View file @
122d749b
...
@@ -87,6 +87,7 @@
...
@@ -87,6 +87,7 @@
c.phone,
c.phone,
m.nick_name,
m.nick_name,
m.avatar,
m.avatar,
s.name as 'conf_name', s.secondary_card_amount as 'conf_amount',
c.single_duration,
c.single_duration,
c.single_amount,
c.single_amount,
c.expiration_date,
c.expiration_date,
...
@@ -99,6 +100,7 @@
...
@@ -99,6 +100,7 @@
c.remark
c.remark
from s_consumer_secondary_card c
from s_consumer_secondary_card c
join s_consumer m on c.consumer_id = m.id
join s_consumer m on c.consumer_id = m.id
join s_secondary_card_conf s on c.secondary_card_conf_id = s.id
where c.is_delete = 0
where c.is_delete = 0
and c.consumer_id = #{consumerId}
and c.consumer_id = #{consumerId}
</select>
</select>
...
...
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