feat(clientcustomerorderservice): 将在线支付字段改为枚举类型- 在 ClientCustomerOrderService.pr…
…oto 中定义 OnlinePayEnum 枚举类型
Showing
4 changed files
with
33 additions
and
36 deletions
| ... | @@ -7,15 +7,14 @@ import com.baomidou.mybatisplus.annotation.TableId; | ... | @@ -7,15 +7,14 @@ import com.baomidou.mybatisplus.annotation.TableId; |
| 7 | import com.baomidou.mybatisplus.annotation.TableLogic; | 7 | import com.baomidou.mybatisplus.annotation.TableLogic; |
| 8 | import com.baomidou.mybatisplus.annotation.TableName; | 8 | import com.baomidou.mybatisplus.annotation.TableName; |
| 9 | import com.baomidou.mybatisplus.extension.activerecord.Model; | 9 | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| 10 | -import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 11 | import com.fasterxml.jackson.databind.JsonNode; | 10 | import com.fasterxml.jackson.databind.JsonNode; |
| 12 | import lombok.Data; | 11 | import lombok.Data; |
| 13 | import lombok.EqualsAndHashCode; | 12 | import lombok.EqualsAndHashCode; |
| 14 | import lombok.experimental.Accessors; | 13 | import lombok.experimental.Accessors; |
| 14 | +import org.apache.ibatis.type.JdbcType; | ||
| 15 | 15 | ||
| 16 | import java.io.Serializable; | 16 | import java.io.Serializable; |
| 17 | import java.time.LocalDateTime; | 17 | import java.time.LocalDateTime; |
| 18 | -import org.apache.ibatis.type.JdbcType; | ||
| 19 | 18 | ||
| 20 | /** | 19 | /** |
| 21 | * order DB | 20 | * order DB |
| ... | @@ -100,9 +99,9 @@ public class OrderDb extends Model<OrderDb> implements Serializable { | ... | @@ -100,9 +99,9 @@ public class OrderDb extends Model<OrderDb> implements Serializable { |
| 100 | */ | 99 | */ |
| 101 | private Integer payPrice; | 100 | private Integer payPrice; |
| 102 | /** | 101 | /** |
| 103 | - * 是否在线付费;0=未付费,1=付费 | 102 | + * 支付方式 |
| 104 | */ | 103 | */ |
| 105 | - private Boolean onlinePay; | 104 | + private Integer onlinePay; |
| 106 | /** | 105 | /** |
| 107 | * 支付时间 | 106 | * 支付时间 |
| 108 | */ | 107 | */ | ... | ... |
| ... | @@ -10,7 +10,6 @@ import com.infoloop.tianting.clientcustomerorderservice.BatchCreateClientCustome | ... | @@ -10,7 +10,6 @@ import com.infoloop.tianting.clientcustomerorderservice.BatchCreateClientCustome |
| 10 | import com.infoloop.tianting.clientcustomerorderservice.BatchUpdateClientCustomerOrdersRpcRequest; | 10 | import com.infoloop.tianting.clientcustomerorderservice.BatchUpdateClientCustomerOrdersRpcRequest; |
| 11 | import com.infoloop.tianting.clientcustomerorderservice.ClientCustomerOrderCreation; | 11 | import com.infoloop.tianting.clientcustomerorderservice.ClientCustomerOrderCreation; |
| 12 | import com.infoloop.tianting.clientcustomerorderservice.CreateClientCustomerOrderRpcRequest; | 12 | import com.infoloop.tianting.clientcustomerorderservice.CreateClientCustomerOrderRpcRequest; |
| 13 | -import com.infoloop.tianting.clientcustomerorderservice.PayStatusEnum; | ||
| 14 | import com.infoloop.tianting.clientcustomerorderservice.ServeStatusEnum; | 13 | import com.infoloop.tianting.clientcustomerorderservice.ServeStatusEnum; |
| 15 | import com.infoloop.tianting.clientcustomerorderservice.UpdateClientCustomerOrderRpcRequest; | 14 | import com.infoloop.tianting.clientcustomerorderservice.UpdateClientCustomerOrderRpcRequest; |
| 16 | import com.tianting.infoloop.mapper.OrderDbMapper; | 15 | import com.tianting.infoloop.mapper.OrderDbMapper; |
| ... | @@ -19,13 +18,13 @@ import com.tianting.infoloop.model.db.OrderDetailDb; | ... | @@ -19,13 +18,13 @@ import com.tianting.infoloop.model.db.OrderDetailDb; |
| 19 | import com.tianting.infoloop.model.dto.CustomerNoticeDto; | 18 | import com.tianting.infoloop.model.dto.CustomerNoticeDto; |
| 20 | import com.tianting.infoloop.model.dto.MealDetailJson; | 19 | import com.tianting.infoloop.model.dto.MealDetailJson; |
| 21 | import com.tianting.infoloop.service.OrderDbService; | 20 | import com.tianting.infoloop.service.OrderDbService; |
| 22 | -import com.tianting.infoloop.service.OrderDetailDbService; | ||
| 23 | import com.tianting.infoloop.utils.exception.ErrorCodeConstants; | 21 | import com.tianting.infoloop.utils.exception.ErrorCodeConstants; |
| 24 | import com.tianting.infoloop.utils.exception.ServiceExceptionUtil; | 22 | import com.tianting.infoloop.utils.exception.ServiceExceptionUtil; |
| 25 | import lombok.RequiredArgsConstructor; | 23 | import lombok.RequiredArgsConstructor; |
| 26 | import lombok.extern.slf4j.Slf4j; | 24 | import lombok.extern.slf4j.Slf4j; |
| 27 | import org.springframework.beans.factory.annotation.Autowired; | 25 | import org.springframework.beans.factory.annotation.Autowired; |
| 28 | import org.springframework.stereotype.Service; | 26 | import org.springframework.stereotype.Service; |
| 27 | +import org.springframework.transaction.annotation.Transactional; | ||
| 29 | 28 | ||
| 30 | import java.time.Instant; | 29 | import java.time.Instant; |
| 31 | import java.time.LocalDateTime; | 30 | import java.time.LocalDateTime; |
| ... | @@ -41,9 +40,9 @@ import java.util.stream.Collectors; | ... | @@ -41,9 +40,9 @@ import java.util.stream.Collectors; |
| 41 | @RequiredArgsConstructor(onConstructor_ = @Autowired) | 40 | @RequiredArgsConstructor(onConstructor_ = @Autowired) |
| 42 | public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> implements OrderDbService { | 41 | public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> implements OrderDbService { |
| 43 | private final OrderDbMapper orderDbMapper; | 42 | private final OrderDbMapper orderDbMapper; |
| 44 | - private final OrderDetailDbService orderDetailDbService; | ||
| 45 | 43 | ||
| 46 | @Override | 44 | @Override |
| 45 | + @Transactional(rollbackFor = Exception.class) | ||
| 47 | public OrderDb createOrderDb(CreateClientCustomerOrderRpcRequest createOrderRpcRequest) { | 46 | public OrderDb createOrderDb(CreateClientCustomerOrderRpcRequest createOrderRpcRequest) { |
| 48 | OrderDb orderDb = new OrderDb(); | 47 | OrderDb orderDb = new OrderDb(); |
| 49 | //生成分布式唯一值 | 48 | //生成分布式唯一值 |
| ... | @@ -68,12 +67,10 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -68,12 +67,10 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 68 | orderDb.setPayPrice(createOrderRpcRequest.getCreation().getPayPrice()); | 67 | orderDb.setPayPrice(createOrderRpcRequest.getCreation().getPayPrice()); |
| 69 | } | 68 | } |
| 70 | if (createOrderRpcRequest.getCreation().getShouldCreatePayTime()) { | 69 | if (createOrderRpcRequest.getCreation().getShouldCreatePayTime()) { |
| 71 | - orderDb.setPayTime(Instant.ofEpochMilli(createOrderRpcRequest.getCreation().getPayTime()) | 70 | + orderDb.setPayTime(Instant.ofEpochMilli(createOrderRpcRequest.getCreation().getPayTime()).atZone(ZoneId.systemDefault()).toLocalDateTime()); |
| 72 | - .atZone(ZoneId.systemDefault()) | ||
| 73 | - .toLocalDateTime()); | ||
| 74 | } | 71 | } |
| 75 | if (createOrderRpcRequest.getCreation().getShouldCreateOnlinePay()) { | 72 | if (createOrderRpcRequest.getCreation().getShouldCreateOnlinePay()) { |
| 76 | - orderDb.setOnlinePay(createOrderRpcRequest.getCreation().getOnlinePay()); | 73 | + orderDb.setOnlinePay(createOrderRpcRequest.getCreation().getOnlinePayValue()); |
| 77 | } | 74 | } |
| 78 | if (createOrderRpcRequest.getCreation().getShouldCreatePayStatus()) { | 75 | if (createOrderRpcRequest.getCreation().getShouldCreatePayStatus()) { |
| 79 | orderDb.setPayStatus(createOrderRpcRequest.getCreation().getPayStatusValue()); | 76 | orderDb.setPayStatus(createOrderRpcRequest.getCreation().getPayStatusValue()); |
| ... | @@ -110,12 +107,9 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -110,12 +107,9 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 110 | .build()); | 107 | .build()); |
| 111 | orderDb.setCustomerNoticeJson(notice); | 108 | orderDb.setCustomerNoticeJson(notice); |
| 112 | } | 109 | } |
| 113 | - LocalDateTime mealTime = Instant.ofEpochMilli(createOrderRpcRequest.getCreation().getMealTime()) | 110 | + LocalDateTime mealTime = Instant.ofEpochMilli(createOrderRpcRequest.getCreation().getMealTime()).atOffset(ZoneOffset.UTC).toLocalDateTime(); |
| 114 | -// .atZone(ZoneId.systemDefault()) | ||
| 115 | - .atOffset(ZoneOffset.UTC) | ||
| 116 | - .toLocalDateTime(); | ||
| 117 | orderDb.setMealTime(mealTime); | 111 | orderDb.setMealTime(mealTime); |
| 118 | - orderDb.setPayStatus(createOrderRpcRequest.getCreation().getOnlinePay() ? PayStatusEnum.TO_PAY_VALUE : PayStatusEnum.SUCCEED_VALUE); | 112 | + orderDb.setPayStatus(createOrderRpcRequest.getCreation().getPayStatusValue()); |
| 119 | orderDb.setCreatedBy(createOrderRpcRequest.getCreatedBy()); | 113 | orderDb.setCreatedBy(createOrderRpcRequest.getCreatedBy()); |
| 120 | orderDb.setCreationSource(createOrderRpcRequest.getCreationSourceValue()); | 114 | orderDb.setCreationSource(createOrderRpcRequest.getCreationSourceValue()); |
| 121 | orderDb.setUpdatedBy(createOrderRpcRequest.getCreatedBy()); | 115 | orderDb.setUpdatedBy(createOrderRpcRequest.getCreatedBy()); |
| ... | @@ -125,7 +119,6 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -125,7 +119,6 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 125 | orderDb.setIsDeleted(false); | 119 | orderDb.setIsDeleted(false); |
| 126 | orderDb.setIsConfirm(false); | 120 | orderDb.setIsConfirm(false); |
| 127 | orderDb.setIsAllocation(false); | 121 | orderDb.setIsAllocation(false); |
| 128 | - | ||
| 129 | boolean res = this.save(orderDb); | 122 | boolean res = this.save(orderDb); |
| 130 | if (!res) { | 123 | if (!res) { |
| 131 | throw ServiceExceptionUtil.exception(ErrorCodeConstants.ORDER_GEN_FAIL); | 124 | throw ServiceExceptionUtil.exception(ErrorCodeConstants.ORDER_GEN_FAIL); |
| ... | @@ -169,14 +162,12 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -169,14 +162,12 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 169 | .protein(detailCreation.getMealDetailJson().getProtein()) | 162 | .protein(detailCreation.getMealDetailJson().getProtein()) |
| 170 | .skus(detailCreation.getMealDetailJson().getSkusList()) | 163 | .skus(detailCreation.getMealDetailJson().getSkusList()) |
| 171 | .tastes(detailCreation.getMealDetailJson().getTastesList()) | 164 | .tastes(detailCreation.getMealDetailJson().getTastesList()) |
| 172 | - .build()));//detailCreation.getMealDetailJson() | 165 | + .build())); |
| 173 | } | 166 | } |
| 174 | return orderDetailDb; | 167 | return orderDetailDb; |
| 175 | }) | 168 | }) |
| 176 | .collect(Collectors.toList()); | 169 | .collect(Collectors.toList()); |
| 177 | - List<OrderDetailDb> resOrderDetails = SpringUtil.getBean(OrderDetailDbServiceImpl.class) | 170 | + List<OrderDetailDb> resOrderDetails = SpringUtil.getBean(OrderDetailDbServiceImpl.class).saveBatch(detailList) ? detailList : Collections.emptyList(); |
| 178 | - .saveBatch(detailList) ? detailList : Collections.emptyList(); | ||
| 179 | - | ||
| 180 | if (resOrderDetails.size() != createOrderRpcRequest.getCreation().getOrderDetailsCount()) { | 171 | if (resOrderDetails.size() != createOrderRpcRequest.getCreation().getOrderDetailsCount()) { |
| 181 | throw ServiceExceptionUtil.exception(ErrorCodeConstants.ORDER_DETAIL_GEN_FAIL); | 172 | throw ServiceExceptionUtil.exception(ErrorCodeConstants.ORDER_DETAIL_GEN_FAIL); |
| 182 | } | 173 | } |
| ... | @@ -272,7 +263,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -272,7 +263,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 272 | // throw ServiceExceptionUtil.exception(ErrorCodeConstants.ORDER_GEN_FAIL); | 263 | // throw ServiceExceptionUtil.exception(ErrorCodeConstants.ORDER_GEN_FAIL); |
| 273 | // } | 264 | // } |
| 274 | List<OrderDb> resOrders = new ArrayList<>(); | 265 | List<OrderDb> resOrders = new ArrayList<>(); |
| 275 | - for(ClientCustomerOrderCreation creation: batchCreateOrdersRequest.getCreationsList()){ | 266 | + for (ClientCustomerOrderCreation creation : batchCreateOrdersRequest.getCreationsList()) { |
| 276 | OrderDb orderDb = new OrderDb(); | 267 | OrderDb orderDb = new OrderDb(); |
| 277 | String orderCode = IdUtil.getSnowflake(0, 0).nextIdStr(); | 268 | String orderCode = IdUtil.getSnowflake(0, 0).nextIdStr(); |
| 278 | orderDb.setOrderCode(orderCode); | 269 | orderDb.setOrderCode(orderCode); |
| ... | @@ -282,8 +273,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -282,8 +273,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 282 | if (creation.getShouldCreateOpenId()) { | 273 | if (creation.getShouldCreateOpenId()) { |
| 283 | orderDb.setOpenId(creation.getOpenId()); | 274 | orderDb.setOpenId(creation.getOpenId()); |
| 284 | } | 275 | } |
| 285 | - if (creation.getShouldCreateCustomerNoticeJson()) | 276 | + if (creation.getShouldCreateCustomerNoticeJson()) { |
| 286 | - { | ||
| 287 | orderDb.setCustomerId(creation.getCustomerId()); | 277 | orderDb.setCustomerId(creation.getCustomerId()); |
| 288 | } | 278 | } |
| 289 | orderDb.setStatus(creation.getStatusValue()); | 279 | orderDb.setStatus(creation.getStatusValue()); |
| ... | @@ -298,7 +288,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -298,7 +288,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 298 | .toLocalDateTime()); | 288 | .toLocalDateTime()); |
| 299 | } | 289 | } |
| 300 | if (creation.getShouldCreateOnlinePay()) { | 290 | if (creation.getShouldCreateOnlinePay()) { |
| 301 | - orderDb.setOnlinePay(creation.getOnlinePay()); | 291 | + orderDb.setOnlinePay(creation.getOnlinePayValue()); |
| 302 | } | 292 | } |
| 303 | if (creation.getShouldCreatePayStatus()) { | 293 | if (creation.getShouldCreatePayStatus()) { |
| 304 | orderDb.setPayStatus(creation.getPayStatusValue()); | 294 | orderDb.setPayStatus(creation.getPayStatusValue()); |
| ... | @@ -454,9 +444,8 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -454,9 +444,8 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 454 | if (updateOrderRequest.getModification().getShouldUpdatePayPrice()) { | 444 | if (updateOrderRequest.getModification().getShouldUpdatePayPrice()) { |
| 455 | orderDb.setPayPrice(updateOrderRequest.getModification().getPayPrice()); | 445 | orderDb.setPayPrice(updateOrderRequest.getModification().getPayPrice()); |
| 456 | } | 446 | } |
| 457 | - if (updateOrderRequest.getModification(). | 447 | + if (updateOrderRequest.getModification().getShouldUpdateOnlinePay()) { |
| 458 | - getShouldUpdateOnlinePay()) { | 448 | + orderDb.setOnlinePay(updateOrderRequest.getModification().getOnlinePayValue()); |
| 459 | - orderDb.setOnlinePay(updateOrderRequest.getModification().getOnlinePay()); | ||
| 460 | } | 449 | } |
| 461 | if (updateOrderRequest.getModification().getShouldUpdatePayTime()) { | 450 | if (updateOrderRequest.getModification().getShouldUpdatePayTime()) { |
| 462 | orderDb.setPayTime(Instant.ofEpochMilli(updateOrderRequest.getModification().getPayTime()) | 451 | orderDb.setPayTime(Instant.ofEpochMilli(updateOrderRequest.getModification().getPayTime()) |
| ... | @@ -555,7 +544,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl | ... | @@ -555,7 +544,7 @@ public class OrderDbServiceImpl extends ServiceImpl<OrderDbMapper, OrderDb> impl |
| 555 | orderDb.setPayPrice(modification.getPayPrice()); | 544 | orderDb.setPayPrice(modification.getPayPrice()); |
| 556 | } | 545 | } |
| 557 | if (modification.getShouldUpdateOnlinePay()) { | 546 | if (modification.getShouldUpdateOnlinePay()) { |
| 558 | - orderDb.setOnlinePay(modification.getOnlinePay()); | 547 | + orderDb.setOnlinePay(modification.getOnlinePayValue()); |
| 559 | } | 548 | } |
| 560 | if (modification.getShouldUpdatePayTime()) { | 549 | if (modification.getShouldUpdatePayTime()) { |
| 561 | orderDb.setPayTime(Instant.ofEpochMilli(modification.getPayTime()) | 550 | orderDb.setPayTime(Instant.ofEpochMilli(modification.getPayTime()) | ... | ... |
| ... | @@ -2,10 +2,10 @@ package com.tianting.infoloop.utils; | ... | @@ -2,10 +2,10 @@ package com.tianting.infoloop.utils; |
| 2 | 2 | ||
| 3 | import com.fasterxml.jackson.databind.JsonNode; | 3 | import com.fasterxml.jackson.databind.JsonNode; |
| 4 | import com.fasterxml.jackson.databind.ObjectMapper; | 4 | import com.fasterxml.jackson.databind.ObjectMapper; |
| 5 | -import com.google.protobuf.GeneratedMessageV3; | ||
| 6 | import com.infoloop.tianting.clientcustomerorderservice.CloseTimeType; | 5 | import com.infoloop.tianting.clientcustomerorderservice.CloseTimeType; |
| 7 | import com.infoloop.tianting.clientcustomerorderservice.CustomerNotice; | 6 | import com.infoloop.tianting.clientcustomerorderservice.CustomerNotice; |
| 8 | import com.infoloop.tianting.clientcustomerorderservice.MealDetail; | 7 | import com.infoloop.tianting.clientcustomerorderservice.MealDetail; |
| 8 | +import com.infoloop.tianting.clientcustomerorderservice.OnlinePayEnum; | ||
| 9 | import com.infoloop.tianting.clientcustomerorderservice.OrderSourceEnum; | 9 | import com.infoloop.tianting.clientcustomerorderservice.OrderSourceEnum; |
| 10 | import com.infoloop.tianting.clientcustomerorderservice.OrderStatusEnum; | 10 | import com.infoloop.tianting.clientcustomerorderservice.OrderStatusEnum; |
| 11 | import com.infoloop.tianting.clientcustomerorderservice.OrderTypeEnum; | 11 | import com.infoloop.tianting.clientcustomerorderservice.OrderTypeEnum; |
| ... | @@ -15,7 +15,7 @@ import com.infoloop.tianting.clientcustomerorderservice.SingleClientCustomerOrde | ... | @@ -15,7 +15,7 @@ import com.infoloop.tianting.clientcustomerorderservice.SingleClientCustomerOrde |
| 15 | import com.infoloop.tianting.clientcustomerorderservice.SingleClientCustomerOrderRpcResponse; | 15 | import com.infoloop.tianting.clientcustomerorderservice.SingleClientCustomerOrderRpcResponse; |
| 16 | import com.tianting.infoloop.model.db.OrderDb; | 16 | import com.tianting.infoloop.model.db.OrderDb; |
| 17 | import com.tianting.infoloop.model.db.OrderDetailDb; | 17 | import com.tianting.infoloop.model.db.OrderDetailDb; |
| 18 | -import java.lang.reflect.Constructor; | 18 | + |
| 19 | import java.time.ZoneOffset; | 19 | import java.time.ZoneOffset; |
| 20 | import java.util.ArrayList; | 20 | import java.util.ArrayList; |
| 21 | import java.util.List; | 21 | import java.util.List; |
| ... | @@ -56,7 +56,7 @@ public class DbToProtoUtil { | ... | @@ -56,7 +56,7 @@ public class DbToProtoUtil { |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | if (orderDb.getOnlinePay()!= null) { | 58 | if (orderDb.getOnlinePay()!= null) { |
| 59 | - protoBuilder.setOnlinePay(orderDb.getOnlinePay()); | 59 | + protoBuilder.setOnlinePay(OnlinePayEnum.forNumber(orderDb.getOnlinePay())); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | if (orderDb.getPayStatus()!= null) { | 62 | if (orderDb.getPayStatus()!= null) { | ... | ... |
| ... | @@ -81,6 +81,15 @@ enum CloseTimeType { | ... | @@ -81,6 +81,15 @@ enum CloseTimeType { |
| 81 | RESERVATION = 1; | 81 | RESERVATION = 1; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | +enum OnlinePayEnum { | ||
| 85 | + UNKNOWN = 0; | ||
| 86 | + ONLINE = 1; //在线 | ||
| 87 | + OFFLINE = 2; //线下 | ||
| 88 | + LEAVE_HOSPITAL = 3;//出院 | ||
| 89 | + EMPLOYEE_CARD = 4; //员工卡 | ||
| 90 | + PAPER_VERIFICATION = 5; //纸质核销 | ||
| 91 | +} | ||
| 92 | + | ||
| 84 | enum ServeStatusEnum { | 93 | enum ServeStatusEnum { |
| 85 | UNKNOWN_SERVE_STATUS = 0; | 94 | UNKNOWN_SERVE_STATUS = 0; |
| 86 | SERVE_NOT_START = 1; | 95 | SERVE_NOT_START = 1; |
| ... | @@ -106,7 +115,7 @@ message SingleClientCustomerOrderRpcResponse { | ... | @@ -106,7 +115,7 @@ message SingleClientCustomerOrderRpcResponse { |
| 106 | CloseTimeType closeTimeType = 10; | 115 | CloseTimeType closeTimeType = 10; |
| 107 | int32 totalNum = 11; | 116 | int32 totalNum = 11; |
| 108 | int32 payPrice = 12; | 117 | int32 payPrice = 12; |
| 109 | - bool onlinePay = 13; | 118 | + OnlinePayEnum onlinePay = 13; |
| 110 | int64 payTime = 14; | 119 | int64 payTime = 14; |
| 111 | PayStatusEnum payStatus = 15; | 120 | PayStatusEnum payStatus = 15; |
| 112 | string errorMsg = 16; | 121 | string errorMsg = 16; |
| ... | @@ -205,7 +214,7 @@ message QueryClientCustomerOrdersByConditionRpcRequest { | ... | @@ -205,7 +214,7 @@ message QueryClientCustomerOrdersByConditionRpcRequest { |
| 205 | bool shouldFilterCloseTimeType = 16; | 214 | bool shouldFilterCloseTimeType = 16; |
| 206 | CloseTimeType closeTimeType = 17; | 215 | CloseTimeType closeTimeType = 17; |
| 207 | bool shouldFilterOnlinePay = 18; | 216 | bool shouldFilterOnlinePay = 18; |
| 208 | - bool onlinePay = 19; | 217 | + OnlinePayEnum onlinePay = 19; |
| 209 | bool shouldFilterPayTimeStart = 20; | 218 | bool shouldFilterPayTimeStart = 20; |
| 210 | int64 payTimeStart = 21; | 219 | int64 payTimeStart = 21; |
| 211 | bool shouldFilterPayTimeEnd = 22; | 220 | bool shouldFilterPayTimeEnd = 22; |
| ... | @@ -254,7 +263,7 @@ message ClientCustomerOrderCreation{ | ... | @@ -254,7 +263,7 @@ message ClientCustomerOrderCreation{ |
| 254 | bool shouldCreatePayPrice = 12; | 263 | bool shouldCreatePayPrice = 12; |
| 255 | int32 payPrice = 13; | 264 | int32 payPrice = 13; |
| 256 | bool shouldCreateOnlinePay = 14; | 265 | bool shouldCreateOnlinePay = 14; |
| 257 | - bool onlinePay = 15; | 266 | + OnlinePayEnum onlinePay = 15; |
| 258 | bool shouldCreatePayTime = 16; | 267 | bool shouldCreatePayTime = 16; |
| 259 | int64 payTime = 17; | 268 | int64 payTime = 17; |
| 260 | bool shouldCreatePayStatus = 18; | 269 | bool shouldCreatePayStatus = 18; |
| ... | @@ -330,7 +339,7 @@ message ClientCustomerOrderModification { | ... | @@ -330,7 +339,7 @@ message ClientCustomerOrderModification { |
| 330 | bool shouldUpdatePayPrice = 20; | 339 | bool shouldUpdatePayPrice = 20; |
| 331 | int32 payPrice = 21; | 340 | int32 payPrice = 21; |
| 332 | bool shouldUpdateOnlinePay = 22; | 341 | bool shouldUpdateOnlinePay = 22; |
| 333 | - bool onlinePay = 23; | 342 | + OnlinePayEnum onlinePay = 23; |
| 334 | bool shouldUpdatePayTime = 24; | 343 | bool shouldUpdatePayTime = 24; |
| 335 | int64 payTime = 25; | 344 | int64 payTime = 25; |
| 336 | bool shouldUpdatePayStatus = 26; | 345 | bool shouldUpdatePayStatus = 26; | ... | ... |
-
Please register or login to post a comment