Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
point-project
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
point-project
Commits
ca837fbe
Commit
ca837fbe
authored
Oct 22, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加积分商城相关代码
parent
74b32f80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
cloud-point/src/main/java/com/yizhi/application/service/impl/PointProductServiceImpl.java
+0
-7
cloud-point/src/main/java/com/yizhi/application/service/impl/PointServiceImpl.java
+2
-0
No files found.
cloud-point/src/main/java/com/yizhi/application/service/impl/PointProductServiceImpl.java
View file @
ca837fbe
...
@@ -47,13 +47,6 @@ public class PointProductServiceImpl extends ServiceImpl<PointProductMapper, Poi
...
@@ -47,13 +47,6 @@ public class PointProductServiceImpl extends ServiceImpl<PointProductMapper, Poi
@Override
@Override
public
Long
deleteDetailById
(
PointProduct
pointProduct
)
{
public
Long
deleteDetailById
(
PointProduct
pointProduct
)
{
PointProduct
tem
=
new
PointProduct
();
tem
.
setId
(
pointProduct
.
getId
());
int
count
=
pointProductMapper
.
selectCount
(
new
EntityWrapper
<
PointProduct
>(
tem
));
log
.
info
(
"删除积分商品时判断是否存在:{}"
,
count
);
if
(
count
<=
0
){
return
-
1L
;
}
pointProduct
.
setState
(
0
);
pointProduct
.
setState
(
0
);
log
.
info
(
"删除积分商品update入参:{}"
,
JSONUtil
.
toJsonStr
(
pointProduct
));
log
.
info
(
"删除积分商品update入参:{}"
,
JSONUtil
.
toJsonStr
(
pointProduct
));
return
(
long
)
pointProductMapper
.
updateById
(
pointProduct
);
return
(
long
)
pointProductMapper
.
updateById
(
pointProduct
);
...
...
cloud-point/src/main/java/com/yizhi/application/service/impl/PointServiceImpl.java
View file @
ca837fbe
...
@@ -24,6 +24,7 @@ import com.yizhi.util.application.date.DateUtil;
...
@@ -24,6 +24,7 @@ import com.yizhi.util.application.date.DateUtil;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -92,6 +93,7 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements
...
@@ -92,6 +93,7 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
addPoint
(
Long
accountId
,
String
type
,
String
sourceId
){
public
void
addPoint
(
Long
accountId
,
String
type
,
String
sourceId
){
Long
companyId
=
ContextHolder
.
get
().
getCompanyId
();
Long
companyId
=
ContextHolder
.
get
().
getCompanyId
();
Long
orgId
=
ContextHolder
.
get
().
getOrgId
();
Long
orgId
=
ContextHolder
.
get
().
getOrgId
();
...
...
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