feat 移除订单编号字段并优化订单创建逻辑
- 移除了 `Order` 实体中的 `OrderSN` 字段及相关逻辑。 - 修改 `Order` 构造函数,简化参数,新增默认状态字段。 - 更新 `AddressInfo` 属性访问修饰符为 `private set`。 - 调整 `OrderAppService` 的订单创建逻辑,适配新构造函数。 - 更新数据库迁移路径,新增迁移文件 `20251017042956_V1.0.0`。 - 新增 `AppOrder`、`AppProduct`、`AppServiceCategory` 表。 - 在 `AbpUsers` 表中新增字段以支持用户扩展。 - 更新实体配置,统一命名约定,支持扩展映射。 - 添加 `AdminDataSeedContributor` 类,预留数据种子逻辑。
This commit is contained in:
		| @ -79,7 +79,7 @@ public class OrderAppService(IOrderRepository orderRepository) : ApplicationServ | ||||
|         // 生成订单号 TODO | ||||
|         var orderSN = "SN001"; | ||||
|         var address = ObjectMapper.Map<AddressDto, AddressInfo>(input.Address); | ||||
|         var order = new Order(Guid.NewGuid(), orderSN, input.CustomerId, input.ServiceCategoryId, input.ServiceTime, | ||||
|         var order = new Order(input.CustomerId, input.ServiceCategoryId, input.ServiceTime, | ||||
|             input.Amount, address, input.Remark); | ||||
|  | ||||
|         await _orderRepository.InsertAsync(order); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user