@@ -1,6 +1,7 @@
package org.eco.als.domain;
import com.mybatisflex.annotation.Column;
+import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
@@ -24,6 +25,7 @@ public class Aircraft extends TreeEntity {
/**
* 编号
*/
+ @Id
private Long id;
@@ -24,6 +25,7 @@ public class Product extends TreeEntity {
@@ -97,7 +97,6 @@ public class ProductServiceImpl extends BaseServiceImpl<ProductMapper, Product>
@Override
public boolean insert(ProductBo productBo) {
Product product = MapstructUtils.convert(productBo, Product.class);
-
return this.save(product);//使用全局配置的雪花算法主键生成器生成ID值
}