Commit ac6441f3 by 丁伟峰

根据数据库表作修改

1 parent ded29626
......@@ -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 productServiceId;
@Column(name="product_category_id")
private String productCategoryId;
/**
* 品牌
......
......@@ -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.getProductServiceId().toString());
KeyValueDTO categoryDto = new KeyValueDTO().setLabel(text).setValue(e.getProductCategoryId());
if (brandMap.containsKey(brand)) {
brandMap.get(brand).getCategories().add(categoryDto);
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!