feat:本地商品bug

This commit is contained in:
dzc committed 2025-03-20 10:42:31 +08:00
1 parent 32341ef253
commit 1f50f737b1
11 files changed
+152 -92

No files matched your search

@@ -1,3 +1,4 @@
import 'package:equatable/equatable.dart';
import 'package:floor/floor.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:pj_supermarket_cloud/common/index.dart';
@@ -6,7 +7,7 @@ part 'supermarket_spu_entity.g.dart';
@JsonSerializable()
@Entity(tableName: "supermarket_spu")
class SupermarketSpuEntity {
class SupermarketSpuEntity extends Equatable {
/// 自增ID
@PrimaryKey(autoGenerate: true)
int? id;
@@ -95,4 +96,22 @@ class SupermarketSpuEntity {
_$SupermarketSpuEntityFromJson(json);
Map<String, dynamic> toJson() => _$SupermarketSpuEntityToJson(this);
@override
List<Object?> get props => [
serviceUniqueCode,
classifyServiceUniqueCode,
productCode,
productName,
productNature,
barCode,
packageNum,
unit,
spec,
picUrl,
stock,
purchasePrice,
retailPrice,
promotionPrice,
];
}