Showing
3 changed files
with
238 additions
and
17 deletions
| ... | @@ -553,52 +553,68 @@ public class OrderDbDTO { | ... | @@ -553,52 +553,68 @@ public class OrderDbDTO { |
| 553 | private Integer id; | 553 | private Integer id; |
| 554 | 554 | ||
| 555 | @ApiModelProperty(value = "需要修改菜品详情 id") | 555 | @ApiModelProperty(value = "需要修改菜品详情 id") |
| 556 | - private Boolean shouldUpdateMenuDetailId; | 556 | + @Builder.Default |
| 557 | + private Boolean shouldUpdateMenuDetailId = false; | ||
| 557 | 558 | ||
| 558 | @ApiModelProperty(value = "菜品详情 id") | 559 | @ApiModelProperty(value = "菜品详情 id") |
| 559 | - private Integer menuDetailId; | 560 | + @Builder.Default |
| 561 | + private Integer menuDetailId = 0; | ||
| 560 | 562 | ||
| 561 | @ApiModelProperty(value = "需要修改菜品数量") | 563 | @ApiModelProperty(value = "需要修改菜品数量") |
| 562 | - private Boolean shouldUpdateCount; | 564 | + @Builder.Default |
| 565 | + private Boolean shouldUpdateCount = false; | ||
| 563 | 566 | ||
| 564 | @ApiModelProperty(value = "菜品所点份数") | 567 | @ApiModelProperty(value = "菜品所点份数") |
| 565 | - private Integer count; | 568 | + @Builder.Default |
| 569 | + private Integer count = 0; | ||
| 566 | 570 | ||
| 567 | @ApiModelProperty(value = "需要修改菜品所属餐别 ID") | 571 | @ApiModelProperty(value = "需要修改菜品所属餐别 ID") |
| 568 | - private Boolean shouldUpdateMealId; | 572 | + @Builder.Default |
| 573 | + private Boolean shouldUpdateMealId = false; | ||
| 569 | 574 | ||
| 570 | @ApiModelProperty(value = "菜品所属餐别 ID") | 575 | @ApiModelProperty(value = "菜品所属餐别 ID") |
| 571 | - private Integer mealId; | 576 | + @Builder.Default |
| 577 | + private Integer mealId = 0; | ||
| 572 | 578 | ||
| 573 | @ApiModelProperty(value = "需要修改菜品所属分类 ID") | 579 | @ApiModelProperty(value = "需要修改菜品所属分类 ID") |
| 574 | - private Boolean shouldUpdateCategoryId; | 580 | + @Builder.Default |
| 581 | + private Boolean shouldUpdateCategoryId = false; | ||
| 575 | 582 | ||
| 576 | @ApiModelProperty(value = "菜品所属品类 ID") | 583 | @ApiModelProperty(value = "菜品所属品类 ID") |
| 577 | - private Integer categoryId; | 584 | + @Builder.Default |
| 585 | + private Integer categoryId = 0; | ||
| 578 | 586 | ||
| 579 | @ApiModelProperty(value = "需要修改菜品sku ID") | 587 | @ApiModelProperty(value = "需要修改菜品sku ID") |
| 580 | - private Boolean shouldUpdateSkuId; | 588 | + @Builder.Default |
| 589 | + private Boolean shouldUpdateSkuId = false; | ||
| 581 | 590 | ||
| 582 | @ApiModelProperty(value = "sku id") | 591 | @ApiModelProperty(value = "sku id") |
| 583 | - private Integer skuId; | 592 | + @Builder.Default |
| 593 | + private Integer skuId = 0; | ||
| 584 | 594 | ||
| 585 | @ApiModelProperty(value = "需要修改菜品展示名称") | 595 | @ApiModelProperty(value = "需要修改菜品展示名称") |
| 586 | - private Boolean shouldUpdateShowName; | 596 | + @Builder.Default |
| 597 | + private Boolean shouldUpdateShowName = false; | ||
| 587 | 598 | ||
| 588 | @ApiModelProperty(value = "菜品展示名称") | 599 | @ApiModelProperty(value = "菜品展示名称") |
| 589 | - private String showName; | 600 | + @Builder.Default |
| 601 | + private String showName = ""; | ||
| 590 | 602 | ||
| 591 | @ApiModelProperty(value = "需要修改菜品详情") | 603 | @ApiModelProperty(value = "需要修改菜品详情") |
| 592 | - private Boolean shouldUpdateMealDetailJson; | 604 | + @Builder.Default |
| 605 | + private Boolean shouldUpdateMealDetailJson = false; | ||
| 593 | 606 | ||
| 594 | @ApiModelProperty(value = "菜品详情,菜品主料、口味、能量、脂肪、蛋白质、碳水化合物、忌口、医嘱等") | 607 | @ApiModelProperty(value = "菜品详情,菜品主料、口味、能量、脂肪、蛋白质、碳水化合物、忌口、医嘱等") |
| 595 | - private MealDetailDto mealDetailJson; | 608 | + @Builder.Default |
| 609 | + private MealDetailDto mealDetailJson = null; | ||
| 596 | 610 | ||
| 597 | @ApiModelProperty(value = "需要修改出餐状态") | 611 | @ApiModelProperty(value = "需要修改出餐状态") |
| 598 | - private Boolean shouldUpdateServeStatus; | 612 | + @Builder.Default |
| 613 | + private Boolean shouldUpdateServeStatus = false; | ||
| 599 | 614 | ||
| 600 | @ApiModelProperty(value = "出餐状态: 默认未出餐=1; 不出餐=2; 已出餐=3") | 615 | @ApiModelProperty(value = "出餐状态: 默认未出餐=1; 不出餐=2; 已出餐=3") |
| 601 | - private ServeStatusEnum serveStatus; | 616 | + @Builder.Default |
| 617 | + private ServeStatusEnum serveStatus = ServeStatusEnum.SERVE_NOT_START; | ||
| 602 | } | 618 | } |
| 603 | 619 | ||
| 604 | @Data | 620 | @Data | ... | ... |
| ... | @@ -301,7 +301,7 @@ public class OrderServiceImpl implements OrderService { | ... | @@ -301,7 +301,7 @@ public class OrderServiceImpl implements OrderService { |
| 301 | .adjustSkuRemark(d.getAdjustSkuRemark()) | 301 | .adjustSkuRemark(d.getAdjustSkuRemark()) |
| 302 | .enterpriseId(d.getEnterpriseId()) | 302 | .enterpriseId(d.getEnterpriseId()) |
| 303 | .skuId(d.getSkuId()) | 303 | .skuId(d.getSkuId()) |
| 304 | - .serveStatus(d.getserveStatus()) | 304 | + .serveStatus(d.getServeStatus()) |
| 305 | .creationSource(d.getCreationSource().getNumber()) | 305 | .creationSource(d.getCreationSource().getNumber()) |
| 306 | .createdBy(d.getCreatedBy()) | 306 | .createdBy(d.getCreatedBy()) |
| 307 | .createdAt(DateUtil.formatDate(d.getCreatedAt())) | 307 | .createdAt(DateUtil.formatDate(d.getCreatedAt())) | ... | ... |
| 1 | +syntax = "proto3"; | ||
| 2 | + | ||
| 3 | +option java_multiple_files = true; | ||
| 4 | +option java_package = "com.infoloop.tianting.enterpriseresourcetagservice"; | ||
| 5 | +option java_outer_classname = "TiantingEnterpriseResourceTagServiceProto"; | ||
| 6 | +option objc_class_prefix = "OP"; | ||
| 7 | +package proto; | ||
| 8 | + | ||
| 9 | +service EnterpriseResourceTagServiceRpc { | ||
| 10 | + rpc GetTagById (SingleResourceTagGetRequest) returns (SingleResourceTagGetResponse) {} | ||
| 11 | + rpc GetTagsByIds (ResourceTagsGetByIdsRequest) returns (ResourceTagsGetByIdsResponse) {} | ||
| 12 | + rpc GetAllTags (ResourceTagsGetAllRequest) returns (ResourceTagsGetAllResponse) {} | ||
| 13 | + rpc GetUserResources (UserTagsAndResourcesGetRequest) returns (UserTagsAndResourcesGetResponse) {} | ||
| 14 | + rpc GetTagsByUserId (ResourceTagsGetByUserIdRequest) returns (ResourceTagsGetByUserIdResponse) {} | ||
| 15 | + rpc GetTagsByUserIds (ResourceTagsGetByUserIdsRequest) returns (ResourceTagsGetByUserIdsResponse) {} | ||
| 16 | + rpc GetTagsByWarehouseId (ResourceTagsGetByWarehouseIdRequest) returns (ResourceTagsGetByWarehouseIdResponse) {} | ||
| 17 | + rpc GetTagResources (SingleTagResourcesGetRequest) returns (SingleTagResourcesResponse) {} | ||
| 18 | + rpc GetTagResourcesByTagIds (GetTagResourcesByTagIdsRequest) returns (SingleTagResourcesResponse) {} | ||
| 19 | + rpc GetUsersByTagId (UsersGetByTagIdRequest) returns (UsersGetByTagIdResponse) {} | ||
| 20 | + rpc CreateTag (TagCreationRpcRequest) returns (TagCreationRpcResponse) {} | ||
| 21 | + rpc AddResourcesToTag (AddResourcesToTagRpcRequest) returns (AddResourcesToTagRpcResponse) {} | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +message TagCreationRpcRequest { | ||
| 25 | + int32 subjectId = 1; | ||
| 26 | + ResourceTagType resourceTagType = 2; | ||
| 27 | + ResourceTagStatus status = 4; | ||
| 28 | + string code = 5; | ||
| 29 | + string name = 6; | ||
| 30 | + string note = 7; | ||
| 31 | + int32 creationSource = 9; | ||
| 32 | + int32 createdBy = 10; | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +message TagCreationRpcResponse { | ||
| 36 | + int32 id = 1; | ||
| 37 | + bool isCreated = 2; | ||
| 38 | + string errorMessage = 3; | ||
| 39 | +} | ||
| 40 | + | ||
| 41 | +message SingleResourceTagGetRequest { | ||
| 42 | + int32 subjectId = 1; | ||
| 43 | + int32 id = 2; | ||
| 44 | +} | ||
| 45 | + | ||
| 46 | +message ResourceTagsGetByIdsRequest { | ||
| 47 | + int32 subjectId = 1; | ||
| 48 | + repeated int32 ids = 2; | ||
| 49 | + bool includeDeleted = 3; | ||
| 50 | +} | ||
| 51 | + | ||
| 52 | +message ResourceTagsGetAllRequest { | ||
| 53 | + int32 subjectId = 1; | ||
| 54 | + bool includeDeleted = 2; | ||
| 55 | +} | ||
| 56 | + | ||
| 57 | +enum ResourceTagType { | ||
| 58 | + DEFAULT_RESOURCE_TAG_TYPE = 0; | ||
| 59 | + CREATE_RESOURCE_TAG_TYPE = 1; | ||
| 60 | +} | ||
| 61 | + | ||
| 62 | +enum ResourceTagStatus { | ||
| 63 | + UNKNOWN_RESOURCE_TAG_STATUS = 0; | ||
| 64 | +} | ||
| 65 | + | ||
| 66 | +message SingleResourceTagResponse { | ||
| 67 | + int32 id = 1; | ||
| 68 | + int32 subjectId = 2; | ||
| 69 | + ResourceTagType type = 3; | ||
| 70 | + ResourceTagStatus status = 4; | ||
| 71 | + string code = 5; | ||
| 72 | + string name = 6; | ||
| 73 | + string note = 19; | ||
| 74 | + int32 creationSource = 20; | ||
| 75 | + int32 createdBy = 21; | ||
| 76 | + int64 createdAt = 22; | ||
| 77 | + int32 updateSource = 23; | ||
| 78 | + int32 updatedBy = 24; | ||
| 79 | + int64 updatedAt = 25; | ||
| 80 | +} | ||
| 81 | + | ||
| 82 | +message SingleResourceTagGetResponse { | ||
| 83 | + SingleResourceTagResponse response = 1; | ||
| 84 | +} | ||
| 85 | + | ||
| 86 | +message ResourceTagsGetByIdsResponse { | ||
| 87 | + repeated SingleResourceTagResponse responses = 1; | ||
| 88 | +} | ||
| 89 | + | ||
| 90 | +message ResourceTagsGetAllResponse { | ||
| 91 | + repeated SingleResourceTagResponse responses = 1; | ||
| 92 | +} | ||
| 93 | + | ||
| 94 | +message SingleTagResourcesGetRequest { | ||
| 95 | + int32 subjectId = 1; | ||
| 96 | + int32 id = 2; | ||
| 97 | +} | ||
| 98 | +message GetTagResourcesByTagIdsRequest { | ||
| 99 | + int32 subjectId = 1; | ||
| 100 | + repeated int32 ids = 2; | ||
| 101 | +} | ||
| 102 | + | ||
| 103 | +enum TagResourceType { | ||
| 104 | + // 0 is used internally | ||
| 105 | + UNKNOWN_RESOURCE_TYPE = 0; | ||
| 106 | + CLIENT = 1; | ||
| 107 | + STALL = 2; | ||
| 108 | + SUPPLIER = 3; | ||
| 109 | + WAREHOUSE = 4; | ||
| 110 | + CENTRAL_PROCESSOR = 5; | ||
| 111 | + PURCHASER = 6; | ||
| 112 | +} | ||
| 113 | + | ||
| 114 | +message TagResource { | ||
| 115 | + TagResourceType type = 1; | ||
| 116 | + int32 id = 2; | ||
| 117 | +} | ||
| 118 | + | ||
| 119 | +message SingleTagResourcesResponse { | ||
| 120 | + repeated TagResource resources = 1; | ||
| 121 | +} | ||
| 122 | + | ||
| 123 | +enum SingleResourceTagCreationFailure { | ||
| 124 | + UNKNOWN_RESOURCE_TAG_CREATION_FAILURE = 0; | ||
| 125 | +} | ||
| 126 | + | ||
| 127 | +message UserTagsAndResourcesGetRequest { | ||
| 128 | + int32 subjectId = 1; | ||
| 129 | + int32 userId = 3; | ||
| 130 | +} | ||
| 131 | + | ||
| 132 | +message UserTagsAndResourcesGetResponse { | ||
| 133 | + repeated SingleResourceTagResponse tags = 1; | ||
| 134 | + repeated int32 clientIds = 2; | ||
| 135 | + repeated int32 stallIds = 3; | ||
| 136 | + repeated int32 supplierIds = 4; | ||
| 137 | + repeated int32 warehouseIds = 5; | ||
| 138 | + repeated int32 central_processorIds = 6; | ||
| 139 | +} | ||
| 140 | + | ||
| 141 | +message ResourceTagsGetByUserIdRequest { | ||
| 142 | + int32 subjectId = 1; | ||
| 143 | + int32 userId = 2; | ||
| 144 | +} | ||
| 145 | + | ||
| 146 | +message ResourceTagsGetByUserIdResponse { | ||
| 147 | + repeated SingleResourceTagResponse tags = 1; | ||
| 148 | +} | ||
| 149 | + | ||
| 150 | +message UsersGetByTagIdRequest { | ||
| 151 | + int32 subjectId = 1; | ||
| 152 | + int32 tagId = 2; | ||
| 153 | +} | ||
| 154 | + | ||
| 155 | +message UsersGetByTagIdResponse { | ||
| 156 | + repeated int32 userIds = 1; | ||
| 157 | +} | ||
| 158 | + | ||
| 159 | +message UserTagsUpdateRequest { | ||
| 160 | + int32 subjectId = 1; | ||
| 161 | + int32 userId = 2; | ||
| 162 | + repeated int32 tagIds = 3; | ||
| 163 | + int32 updateSource = 4; | ||
| 164 | + int32 updater = 5; | ||
| 165 | +} | ||
| 166 | + | ||
| 167 | +message UserTagsUpdateResponse { | ||
| 168 | + bool isUpdated = 1; | ||
| 169 | +} | ||
| 170 | + | ||
| 171 | +message ResourceTagsGetByUserIdsRequest { | ||
| 172 | + int32 subjectId = 1; | ||
| 173 | + repeated int32 userIds = 2; | ||
| 174 | +} | ||
| 175 | + | ||
| 176 | +message ResourceTagsGetByWarehouseIdRequest { | ||
| 177 | + int32 subjectId = 1; | ||
| 178 | + int32 warehouseId = 2; | ||
| 179 | +} | ||
| 180 | + | ||
| 181 | +message TagsByUserResponse { | ||
| 182 | + int32 userId = 1; | ||
| 183 | + repeated SingleResourceTagResponse tags = 2; | ||
| 184 | +} | ||
| 185 | + | ||
| 186 | +message ResourceTagsGetByUserIdsResponse { | ||
| 187 | + repeated TagsByUserResponse userTags = 1; | ||
| 188 | +} | ||
| 189 | + | ||
| 190 | +message ResourceTagsGetByWarehouseIdResponse { | ||
| 191 | + repeated SingleResourceTagResponse tags = 1; | ||
| 192 | +} | ||
| 193 | + | ||
| 194 | +message AddResourcesToTagRpcRequest { | ||
| 195 | + int32 enterpriseId = 1; | ||
| 196 | + int32 tagId = 2; | ||
| 197 | + repeated int32 resourceIds = 3; | ||
| 198 | + TagResourceType type = 4; | ||
| 199 | + int32 creationSource = 5; | ||
| 200 | + int32 createdBy = 6; | ||
| 201 | +} | ||
| 202 | + | ||
| 203 | +message AddResourcesToTagRpcResponse { | ||
| 204 | + bool isSuccess = 1; | ||
| 205 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment