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
625acc73
Commit
625acc73
authored
Oct 11, 2022
by
caiyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复商品分类排序调整问题
parent
1cac5c58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
soss-system/src/main/java/com/soss/system/service/impl/GoodsCategoryServiceImpl.java
+16
-16
soss-system/src/main/java/com/soss/system/service/impl/MachineApiServiceImpl.java
+0
-2
No files found.
soss-system/src/main/java/com/soss/system/service/impl/GoodsCategoryServiceImpl.java
View file @
625acc73
...
...
@@ -137,22 +137,22 @@ public class GoodsCategoryServiceImpl implements IGoodsCategoryService
int
size
=
goodsCategories
.
size
();
for
(
int
i
=
0
;
i
<
size
;
i
++){
GoodsCategory
goodsCategory
=
goodsCategories
.
get
(
i
);
if
(
id
.
equals
(
goodsCategory
.
getId
()))
{
if
(
"1"
.
equals
(
pointer
))
{
int
index
=
i
-
1
;
if
(
index
<
0
)
{
lastId
=
id
;
}
else
{
lastId
=
goodsCategories
.
get
(
inde
x
).
getId
().
toString
();
}
}
else
if
(
"2"
.
equals
(
pointer
))
{
int
index
=
i
+
1
;
if
(
index
>=
size
)
{
lastId
=
id
;
}
else
{
lastId
=
goodsCategories
.
get
(
inde
x
).
getId
().
toString
();
}
}
if
(
id
.
equals
(
goodsCategory
.
getId
().
toString
()))
{
if
(
"1"
.
equals
(
pointer
))
{
int
lastIdx
=
i
-
1
;
if
(
lastIdx
<
0
)
{
lastId
=
id
;
}
else
{
lastId
=
goodsCategories
.
get
(
lastId
x
).
getId
().
toString
();
}
}
else
if
(
"2"
.
equals
(
pointer
))
{
int
lastIdx
=
i
+
1
;
if
(
lastIdx
>=
size
)
{
lastId
=
id
;
}
else
{
lastId
=
goodsCategories
.
get
(
lastId
x
).
getId
().
toString
();
}
}
}
}
...
...
soss-system/src/main/java/com/soss/system/service/impl/MachineApiServiceImpl.java
View file @
625acc73
...
...
@@ -262,8 +262,6 @@ public class MachineApiServiceImpl {
}
machine
.
setState
(
status
);
return
machineMapper
.
updateMachine
(
machine
);
}
public
void
updateOrder
(
Order
order
)
{
...
...
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