Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dace1fa3
authored
Mar 31, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]下发指令代码修改
1 parent
b5fcb6fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/java/com/glsx/smart/dao/mapper/SmartProductTypeMapper.java
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java
src/main/java/com/glsx/smart/dao/mapper/SmartProductTypeMapper.java
View file @
dace1fa
...
...
@@ -24,5 +24,5 @@ public interface SmartProductTypeMapper extends tk.mybatis.mapper.common.Mapper<
List
<
SmartProductType
>
getListAndCondition
(
List
<
Long
>
list
);
int
findTypeIdByCat
(
int
category_id
);
Integer
findTypeIdByCat
(
int
category_id
);
}
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java
View file @
dace1fa
...
...
@@ -137,7 +137,7 @@ public class SmartProductTypeServiceImpl extends BaseService implements SmartPro
JSONObject
object
=
array
.
getJSONObject
(
i
);
JSONObject
val
=
new
JSONObject
();
int
category_id
=
object
.
getInteger
(
"category_id"
);
int
typeId
=
productTypeMapper
.
findTypeIdByCat
(
category_id
);
Integer
typeId
=
productTypeMapper
.
findTypeIdByCat
(
category_id
);
object
.
put
(
"typeId"
,
typeId
);
newarray
.
add
(
object
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment