Showing
3 changed files
with
18 additions
and
0 deletions
| ... | @@ -89,6 +89,10 @@ public class SettlementDTO { | ... | @@ -89,6 +89,10 @@ public class SettlementDTO { |
| 89 | public static class SettlementOrderDetail { | 89 | public static class SettlementOrderDetail { |
| 90 | private String mealTime; | 90 | private String mealTime; |
| 91 | private String code; | 91 | private String code; |
| 92 | + /** 支付完成时间,格式 yyyy-MM-dd HH:mm:ss,无则空 */ | ||
| 93 | + private String payTime; | ||
| 94 | + /** 下单人:院区端为操作员名称;住院小程序为客户姓名;阳光厅为客户手机号 */ | ||
| 95 | + private String orderer; | ||
| 92 | private String mealName; | 96 | private String mealName; |
| 93 | private String roomNo; | 97 | private String roomNo; |
| 94 | private String customerName; | 98 | private String customerName; | ... | ... |
| ... | @@ -2,12 +2,16 @@ package com.infoloop.tianting.service.client; | ... | @@ -2,12 +2,16 @@ package com.infoloop.tianting.service.client; |
| 2 | 2 | ||
| 3 | import com.infoloop.tianting.COperatorServiceProtoRpcGrpc; | 3 | import com.infoloop.tianting.COperatorServiceProtoRpcGrpc; |
| 4 | import com.infoloop.tianting.GetCOperatorByIdRpcRequest; | 4 | import com.infoloop.tianting.GetCOperatorByIdRpcRequest; |
| 5 | +import com.infoloop.tianting.GetCOperatorByIdsRpcRequest; | ||
| 5 | import com.infoloop.tianting.GetCOperatorByMobileOrEmailRpcRequest; | 6 | import com.infoloop.tianting.GetCOperatorByMobileOrEmailRpcRequest; |
| 6 | import com.infoloop.tianting.SingleCOperatorRpcResponse; | 7 | import com.infoloop.tianting.SingleCOperatorRpcResponse; |
| 7 | import lombok.RequiredArgsConstructor; | 8 | import lombok.RequiredArgsConstructor; |
| 8 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| 9 | import org.springframework.stereotype.Service; | 10 | import org.springframework.stereotype.Service; |
| 10 | 11 | ||
| 12 | +import java.util.Collections; | ||
| 13 | +import java.util.List; | ||
| 14 | + | ||
| 11 | @Service | 15 | @Service |
| 12 | @RequiredArgsConstructor(onConstructor = @__(@Autowired)) | 16 | @RequiredArgsConstructor(onConstructor = @__(@Autowired)) |
| 13 | public class OperatorServiceRpcClient { | 17 | public class OperatorServiceRpcClient { |
| ... | @@ -26,5 +30,15 @@ public class OperatorServiceRpcClient { | ... | @@ -26,5 +30,15 @@ public class OperatorServiceRpcClient { |
| 26 | return cOperatorServiceProtoRpcBlockingStub.getCOperatorById(request).getResponse(); | 30 | return cOperatorServiceProtoRpcBlockingStub.getCOperatorById(request).getResponse(); |
| 27 | } | 31 | } |
| 28 | 32 | ||
| 33 | + public List<SingleCOperatorRpcResponse> getCOperatorsByIds(List<Integer> ids) { | ||
| 34 | + if (ids == null || ids.isEmpty()) { | ||
| 35 | + return Collections.emptyList(); | ||
| 36 | + } | ||
| 37 | + return cOperatorServiceProtoRpcBlockingStub.getCOperatorByIds(GetCOperatorByIdsRpcRequest.newBuilder() | ||
| 38 | + .addAllIds(ids) | ||
| 39 | + .setIncludeDeleted(false) | ||
| 40 | + .build()) | ||
| 41 | + .getResponsesList(); | ||
| 42 | + } | ||
| 29 | 43 | ||
| 30 | } | 44 | } | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment