Showing
5 changed files
with
9 additions
and
0 deletions
No preview for this file type
| ... | @@ -53,6 +53,7 @@ ADD COLUMN `isRead` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是å¦å·²è¯»ï¼›0ï¼šæœ | ... | @@ -53,6 +53,7 @@ ADD COLUMN `isRead` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是å¦å·²è¯»ï¼›0ï¼šæœ |
| 53 | 53 | ||
| 54 | CREATE TABLE `client_customer_order_details` ( | 54 | CREATE TABLE `client_customer_order_details` ( |
| 55 | `id` INT AUTO_INCREMENT PRIMARY KEY COMMENT '订单详情表主键,自增整数', | 55 | `id` INT AUTO_INCREMENT PRIMARY KEY COMMENT '订单详情表主键,自增整数', |
| 56 | + `enterpriseId` INT NOT NULL COMMENT '企业 ID', | ||
| 56 | `orderId` INT NOT NULL COMMENT '订单ID', | 57 | `orderId` INT NOT NULL COMMENT '订单ID', |
| 57 | `menuDetailId` INT NOT NULL COMMENT '餐单详情 id,即菜品', | 58 | `menuDetailId` INT NOT NULL COMMENT '餐单详情 id,即菜品', |
| 58 | `count` INT NOT NULL COMMENT '菜品所点份数', | 59 | `count` INT NOT NULL COMMENT '菜品所点份数', | ... | ... |
| ... | @@ -33,6 +33,7 @@ public class OrderDetailDb extends Model<OrderDetailDb> implements Serializable | ... | @@ -33,6 +33,7 @@ public class OrderDetailDb extends Model<OrderDetailDb> implements Serializable |
| 33 | * 订单号 | 33 | * 订单号 |
| 34 | */ | 34 | */ |
| 35 | private Integer orderId; | 35 | private Integer orderId; |
| 36 | + private Integer enterpriseId; | ||
| 36 | /** | 37 | /** |
| 37 | * 餐单详情id | 38 | * 餐单详情id |
| 38 | */ | 39 | */ | ... | ... |
| ... | @@ -53,6 +53,7 @@ public class OrderDetailDbServiceImpl extends ServiceImpl<OrderDetailMapper, Ord | ... | @@ -53,6 +53,7 @@ public class OrderDetailDbServiceImpl extends ServiceImpl<OrderDetailMapper, Ord |
| 53 | orderDetailDb.setCreationSource(createOrderDetailRequest.getCreationSourceValue()); | 53 | orderDetailDb.setCreationSource(createOrderDetailRequest.getCreationSourceValue()); |
| 54 | orderDetailDb.setUpdatedBy(createOrderDetailRequest.getCreatedBy()); | 54 | orderDetailDb.setUpdatedBy(createOrderDetailRequest.getCreatedBy()); |
| 55 | orderDetailDb.setUpdateSource(createOrderDetailRequest.getCreationSourceValue()); | 55 | orderDetailDb.setUpdateSource(createOrderDetailRequest.getCreationSourceValue()); |
| 56 | + orderDetailDb.setEnterpriseId(createOrderDetailRequest.getEnterpriseId()); | ||
| 56 | if (createOrderDetailRequest.getCreation().getShouldCreateShowName()) { | 57 | if (createOrderDetailRequest.getCreation().getShouldCreateShowName()) { |
| 57 | orderDetailDb.setShowName(createOrderDetailRequest.getCreation().getShowName()); | 58 | orderDetailDb.setShowName(createOrderDetailRequest.getCreation().getShowName()); |
| 58 | } | 59 | } |
| ... | @@ -94,6 +95,7 @@ public class OrderDetailDbServiceImpl extends ServiceImpl<OrderDetailMapper, Ord | ... | @@ -94,6 +95,7 @@ public class OrderDetailDbServiceImpl extends ServiceImpl<OrderDetailMapper, Ord |
| 94 | orderDetailDb.setSkuId(creation.getSkuId()); | 95 | orderDetailDb.setSkuId(creation.getSkuId()); |
| 95 | orderDetailDb.setIsDeleted(false); | 96 | orderDetailDb.setIsDeleted(false); |
| 96 | orderDetailDb.setNotServe(false); | 97 | orderDetailDb.setNotServe(false); |
| 98 | + orderDetailDb.setEnterpriseId(batchCreateOrderDetailsRequest.getEnterpriseId()); | ||
| 97 | if (creation.getShouldCreateShowName()) { | 99 | if (creation.getShouldCreateShowName()) { |
| 98 | orderDetailDb.setShowName(creation.getShowName()); | 100 | orderDetailDb.setShowName(creation.getShowName()); |
| 99 | } | 101 | } | ... | ... |
| ... | @@ -391,6 +391,7 @@ message SingleClientCustomerOrderDetailRpcResponse { | ... | @@ -391,6 +391,7 @@ message SingleClientCustomerOrderDetailRpcResponse { |
| 391 | OrderSourceEnum updateSource = 17; | 391 | OrderSourceEnum updateSource = 17; |
| 392 | bool isDeleted = 18; | 392 | bool isDeleted = 18; |
| 393 | bool notServe = 19; | 393 | bool notServe = 19; |
| 394 | + int32 enterpriseId = 20; | ||
| 394 | } | 395 | } |
| 395 | 396 | ||
| 396 | message GetClientCustomerOrderDetailByIdRpcRequest { | 397 | message GetClientCustomerOrderDetailByIdRpcRequest { |
| ... | @@ -442,6 +443,7 @@ message CreateClientCustomerOrderDetailRpcRequest { | ... | @@ -442,6 +443,7 @@ message CreateClientCustomerOrderDetailRpcRequest { |
| 442 | ClientCustomerOrderDetailCreation creation = 1; | 443 | ClientCustomerOrderDetailCreation creation = 1; |
| 443 | int32 createdBy = 2; | 444 | int32 createdBy = 2; |
| 444 | OrderSourceEnum creationSource = 3; | 445 | OrderSourceEnum creationSource = 3; |
| 446 | + int32 enterpriseId = 4; | ||
| 445 | } | 447 | } |
| 446 | 448 | ||
| 447 | message CreateClientCustomerOrderDetailRpcResponse { | 449 | message CreateClientCustomerOrderDetailRpcResponse { |
| ... | @@ -453,6 +455,7 @@ message BatchCreateClientCustomerOrderDetailsRpcRequest { | ... | @@ -453,6 +455,7 @@ message BatchCreateClientCustomerOrderDetailsRpcRequest { |
| 453 | repeated ClientCustomerOrderDetailCreation creations = 1; | 455 | repeated ClientCustomerOrderDetailCreation creations = 1; |
| 454 | int32 createdBy = 2; | 456 | int32 createdBy = 2; |
| 455 | OrderSourceEnum creationSource = 3; | 457 | OrderSourceEnum creationSource = 3; |
| 458 | + int32 enterpriseId = 4; | ||
| 456 | } | 459 | } |
| 457 | 460 | ||
| 458 | message BatchCreateClientCustomerOrderDetailsRpcResponse { | 461 | message BatchCreateClientCustomerOrderDetailsRpcResponse { |
| ... | @@ -488,6 +491,7 @@ message UpdateClientCustomerOrderDetailRpcRequest { | ... | @@ -488,6 +491,7 @@ message UpdateClientCustomerOrderDetailRpcRequest { |
| 488 | ClientCustomerOrderDetailModification modification = 1; | 491 | ClientCustomerOrderDetailModification modification = 1; |
| 489 | int32 updatedBy = 2; | 492 | int32 updatedBy = 2; |
| 490 | OrderSourceEnum updateSource = 3; | 493 | OrderSourceEnum updateSource = 3; |
| 494 | + int32 enterpriseId = 4; | ||
| 491 | } | 495 | } |
| 492 | 496 | ||
| 493 | message UpdateClientCustomerOrderDetailRpcResponse { | 497 | message UpdateClientCustomerOrderDetailRpcResponse { |
| ... | @@ -498,6 +502,7 @@ message BatchUpdateClientCustomerOrderDetailsRpcRequest { | ... | @@ -498,6 +502,7 @@ message BatchUpdateClientCustomerOrderDetailsRpcRequest { |
| 498 | repeated ClientCustomerOrderDetailModification modifications = 1; | 502 | repeated ClientCustomerOrderDetailModification modifications = 1; |
| 499 | int32 updatedBy = 2; | 503 | int32 updatedBy = 2; |
| 500 | OrderSourceEnum updateSource = 3; | 504 | OrderSourceEnum updateSource = 3; |
| 505 | + int32 enterpriseId = 4; | ||
| 501 | } | 506 | } |
| 502 | 507 | ||
| 503 | message BatchUpdateClientCustomerOrderDetailsRpcResponse { | 508 | message BatchUpdateClientCustomerOrderDetailsRpcResponse { | ... | ... |
-
Please register or login to post a comment