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
0f30bc29
Commit
0f30bc29
authored
Mar 11, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改自动删除异常优惠卷
parent
70e036a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
1 deletions
+18
-1
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+1
-1
SConsumerCouponMapper.java
.../main/java/share/system/mapper/SConsumerCouponMapper.java
+2
-0
ISConsumerCouponService.java
...in/java/share/system/service/ISConsumerCouponService.java
+2
-0
SConsumerCouponServiceImpl.java
...share/system/service/impl/SConsumerCouponServiceImpl.java
+5
-0
SConsumerCouponMapper.xml
...rc/main/resources/mapper/system/SConsumerCouponMapper.xml
+8
-0
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
0f30bc29
...
@@ -130,7 +130,7 @@ public class RedisTask {
...
@@ -130,7 +130,7 @@ public class RedisTask {
}
}
}
}
//逻辑删除所有异常优惠券
//逻辑删除所有异常优惠券
isConsumerCouponService
.
removeById
s
(
expiredCoupons
);
isConsumerCouponService
.
removeById
List
(
expiredCoupons
);
}
}
}
}
...
...
share-system/src/main/java/share/system/mapper/SConsumerCouponMapper.java
View file @
0f30bc29
...
@@ -71,4 +71,6 @@ public interface SConsumerCouponMapper extends BaseMapper<SConsumerCoupon>
...
@@ -71,4 +71,6 @@ public interface SConsumerCouponMapper extends BaseMapper<SConsumerCoupon>
List
<
SConsumerCoupon
>
queryByIds
(
@Param
(
"couponIds"
)
List
<
Long
>
couponIds
);
List
<
SConsumerCoupon
>
queryByIds
(
@Param
(
"couponIds"
)
List
<
Long
>
couponIds
);
List
<
SConsumerCoupon
>
queryList
();
List
<
SConsumerCoupon
>
queryList
();
int
removeByIdList
(
@Param
(
"couponIds"
)
List
<
Long
>
expiredCoupons
);
}
}
share-system/src/main/java/share/system/service/ISConsumerCouponService.java
View file @
0f30bc29
...
@@ -84,4 +84,6 @@ public interface ISConsumerCouponService extends IService<SConsumerCoupon>
...
@@ -84,4 +84,6 @@ public interface ISConsumerCouponService extends IService<SConsumerCoupon>
int
cancelCoupon
(
Long
id
);
int
cancelCoupon
(
Long
id
);
int
restoreCoupon
(
Long
id
);
int
restoreCoupon
(
Long
id
);
int
removeByIdList
(
List
<
Long
>
expiredCoupons
);
}
}
share-system/src/main/java/share/system/service/impl/SConsumerCouponServiceImpl.java
View file @
0f30bc29
...
@@ -446,6 +446,11 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
...
@@ -446,6 +446,11 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
return
baseMapper
.
updateSConsumerCoupon
(
sConsumerCoupon
);
return
baseMapper
.
updateSConsumerCoupon
(
sConsumerCoupon
);
}
}
@Override
public
int
removeByIdList
(
List
<
Long
>
expiredCoupons
)
{
return
baseMapper
.
removeByIdList
(
expiredCoupons
);
}
private
void
extracted
(
SConsumerCoupon
item
,
BigDecimal
bigDecimal
,
SRoom
byId
,
BigDecimal
subtract
,
SStore
sStore
)
{
private
void
extracted
(
SConsumerCoupon
item
,
BigDecimal
bigDecimal
,
SRoom
byId
,
BigDecimal
subtract
,
SStore
sStore
)
{
//计算价格
//计算价格
BigDecimal
multiply
=
bigDecimal
.
multiply
(
byId
.
getPrice
());
BigDecimal
multiply
=
bigDecimal
.
multiply
(
byId
.
getPrice
());
...
...
share-system/src/main/resources/mapper/system/SConsumerCouponMapper.xml
View file @
0f30bc29
...
@@ -283,6 +283,14 @@
...
@@ -283,6 +283,14 @@
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
<update
id=
"removeByIdList"
>
update s_consumer_coupon
set is_delete = '1',use_status = '2'
where id in
<foreach
item=
"id"
collection=
"couponIds"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</update>
<delete
id=
"deleteSConsumerCouponById"
parameterType=
"Long"
>
<delete
id=
"deleteSConsumerCouponById"
parameterType=
"Long"
>
delete from s_consumer_coupon where id = #{id}
delete from s_consumer_coupon where id = #{id}
...
...
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