Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 113d1154
authored
May 17, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-dingwf' into develop
2 parents
60862447
ac6441f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/entity/ProductCategoryEntity.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/ProductServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/entity/ProductCategoryEntity.java
View file @
113d115
...
...
@@ -14,17 +14,17 @@ import javax.persistence.*;
@Entity
@Data
@Table
(
name
=
"product_category"
)
public
class
ProductCategoryEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
public
class
ProductCategoryEntity
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
/**
* 小组id
*/
@Column
(
name
=
"product_
service
_id"
)
private
Long
productService
Id
;
@Column
(
name
=
"product_
category
_id"
)
private
String
productCategory
Id
;
/**
* 品牌
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/ProductServiceImpl.java
View file @
113d115
...
...
@@ -36,7 +36,7 @@ public class ProductServiceImpl implements ProductService {
for
(
ProductCategoryEntity
e
:
productCategoryDao
.
findAll
())
{
String
brand
=
e
.
getBrand
();
String
text
=
String
.
format
(
"%s-%s"
,
e
.
getType
(),
e
.
getSkill
());
KeyValueDTO
categoryDto
=
new
KeyValueDTO
().
setLabel
(
text
).
setValue
(
e
.
getProduct
ServiceId
().
toString
());
KeyValueDTO
categoryDto
=
new
KeyValueDTO
().
setLabel
(
text
).
setValue
(
e
.
getProduct
CategoryId
());
if
(
brandMap
.
containsKey
(
brand
))
{
brandMap
.
get
(
brand
).
getCategories
().
add
(
categoryDto
);
}
else
{
...
...
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