Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
ms
soss
Commits
62c4ae79
Commit
62c4ae79
authored
Jun 28, 2022
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前进前进,继续上代码
parent
cb21d696
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
soss-admin/src/main/java/com/soss/web/controller/coffee/GoodsController.java
+1
-1
soss-system/src/main/java/com/soss/system/service/impl/SpecServiceImpl.java
+1
-1
No files found.
soss-admin/src/main/java/com/soss/web/controller/coffee/GoodsController.java
View file @
62c4ae79
...
@@ -50,7 +50,7 @@ public class GoodsController extends BaseController
...
@@ -50,7 +50,7 @@ public class GoodsController extends BaseController
try
{
try
{
return
AjaxResult
.
success
(
goodsService
.
putShop
(
goodsId
,
boo
));
return
AjaxResult
.
success
(
goodsService
.
putShop
(
goodsId
,
boo
));
}
catch
(
ServiceException
serviceException
){
}
catch
(
ServiceException
serviceException
){
return
AjaxResult
.
error
(
99
,
serviceException
.
getMessage
()
);
return
AjaxResult
.
error
(
99
,
null
);
}
}
}
}
...
...
soss-system/src/main/java/com/soss/system/service/impl/SpecServiceImpl.java
View file @
62c4ae79
...
@@ -149,6 +149,7 @@ public class SpecServiceImpl implements ISpecService
...
@@ -149,6 +149,7 @@ public class SpecServiceImpl implements ISpecService
spec
.
setIsDeleted
(
0
);
spec
.
setIsDeleted
(
0
);
spec
.
setUpdatedAt
(
new
Date
());
spec
.
setUpdatedAt
(
new
Date
());
int
i
=
specMapper
.
updateSpec
(
spec
);
int
i
=
specMapper
.
updateSpec
(
spec
);
deleteGoodsSku
(
String
.
valueOf
(
spec
.
getId
()));
List
<
SpecRule
>
specRules
=
spec
.
getSpecRules
();
List
<
SpecRule
>
specRules
=
spec
.
getSpecRules
();
if
(
specRules
==
null
||
specRules
.
isEmpty
()){
if
(
specRules
==
null
||
specRules
.
isEmpty
()){
return
i
;
return
i
;
...
@@ -160,7 +161,6 @@ public class SpecServiceImpl implements ISpecService
...
@@ -160,7 +161,6 @@ public class SpecServiceImpl implements ISpecService
}
else
{
}
else
{
spec
.
setIsShow
(
0L
);
spec
.
setIsShow
(
0L
);
}
}
deleteGoodsSku
(
String
.
valueOf
(
spec
.
getId
()));
long
specId
=
spec
.
getId
();
long
specId
=
spec
.
getId
();
if
(
spec
.
getIsShow
()==
1L
){
if
(
spec
.
getIsShow
()==
1L
){
for
(
SpecRule
specRule
:
specRules
)
{
for
(
SpecRule
specRule
:
specRules
)
{
...
...
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