Showing
9 changed files
with
15 additions
and
11 deletions
No preview for this file type
| ... | @@ -46,8 +46,8 @@ public class LabelController { | ... | @@ -46,8 +46,8 @@ public class LabelController { |
| 46 | @ApiOperation(value = "按类型获取标签") | 46 | @ApiOperation(value = "按类型获取标签") |
| 47 | @PostMapping("/labels") | 47 | @PostMapping("/labels") |
| 48 | @ResponseStatus(HttpStatus.OK) | 48 | @ResponseStatus(HttpStatus.OK) |
| 49 | - public List<LabelDto> getMealsByIds(@Valid @RequestBody ClientLabelDTO.QueryLabelsDto queryLabelsDto) { | 49 | + public List<LabelDto> getMiniProgramLabels(@Valid @RequestBody ClientLabelDTO.QueryLabelsDto queryLabelsDto) { |
| 50 | - return deliveryRuleService.getLabelsByType(queryLabelsDto); | 50 | + return deliveryRuleService.getLabelsByTypes(queryLabelsDto); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | @ApiOperation(value = "批量创建用户绑定标签") | 53 | @ApiOperation(value = "批量创建用户绑定标签") | ... | ... |
| ... | @@ -37,7 +37,7 @@ public class ClientLabelDTO { | ... | @@ -37,7 +37,7 @@ public class ClientLabelDTO { |
| 37 | @ApiModel(description = "查询标签 DTO") | 37 | @ApiModel(description = "查询标签 DTO") |
| 38 | public static class QueryLabelsDto { | 38 | public static class QueryLabelsDto { |
| 39 | private Integer enterpriseId; | 39 | private Integer enterpriseId; |
| 40 | - private ClientLabelTypeEnum type; | 40 | + private List<ClientLabelTypeEnum> types; |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | @Data | 43 | @Data | ... | ... |
| ... | @@ -30,6 +30,7 @@ public class KdsDTO { | ... | @@ -30,6 +30,7 @@ public class KdsDTO { |
| 30 | private CustomerNotice customerNotice; | 30 | private CustomerNotice customerNotice; |
| 31 | private String adjustSkuRemark; | 31 | private String adjustSkuRemark; |
| 32 | private String mealTime; | 32 | private String mealTime; |
| 33 | + private ServeStatusEnum serveStatus; | ||
| 33 | } | 34 | } |
| 34 | 35 | ||
| 35 | @Data | 36 | @Data | ... | ... |
| ... | @@ -7,6 +7,8 @@ import java.util.List; | ... | @@ -7,6 +7,8 @@ import java.util.List; |
| 7 | 7 | ||
| 8 | public interface DeliveryRuleService { | 8 | public interface DeliveryRuleService { |
| 9 | 9 | ||
| 10 | - List<LabelDto> getLabelsByType(QueryLabelsDto queryLabelsDto); | 10 | +// List<LabelDto> getLabelsByType(QueryLabelsDto queryLabelsDto); |
| 11 | + | ||
| 12 | + List<LabelDto> getLabelsByTypes(QueryLabelsDto queryLabelsDto); | ||
| 11 | 13 | ||
| 12 | } | 14 | } | ... | ... |
| ... | @@ -19,11 +19,11 @@ public class DeliveryRuleServiceRpcClient { | ... | @@ -19,11 +19,11 @@ public class DeliveryRuleServiceRpcClient { |
| 19 | private final TiantingDeliveryRuleServiceRpcGrpc.TiantingDeliveryRuleServiceRpcBlockingStub | 19 | private final TiantingDeliveryRuleServiceRpcGrpc.TiantingDeliveryRuleServiceRpcBlockingStub |
| 20 | deliveryRuleServiceRpcBlockingStub; | 20 | deliveryRuleServiceRpcBlockingStub; |
| 21 | 21 | ||
| 22 | - public QueryClientLabelsByConditionRpcResponse getLabelsByType(QueryLabelsDto queryLabelsDto) { | 22 | + public QueryClientLabelsByConditionRpcResponse getLabelsByTypes(QueryLabelsDto queryLabelsDto) { |
| 23 | final var request = QueryClientLabelsByConditionRpcRequest.newBuilder() | 23 | final var request = QueryClientLabelsByConditionRpcRequest.newBuilder() |
| 24 | .setEnterpriseId(queryLabelsDto.getEnterpriseId()) | 24 | .setEnterpriseId(queryLabelsDto.getEnterpriseId()) |
| 25 | - .setShouldFilterType(true) | 25 | + .setShouldFilterTypes(true) |
| 26 | - .setType(queryLabelsDto.getType()) | 26 | + .addAllTypes(queryLabelsDto.getTypes()) |
| 27 | .setIncludeDeleted(false) | 27 | .setIncludeDeleted(false) |
| 28 | .build(); | 28 | .build(); |
| 29 | return deliveryRuleServiceRpcBlockingStub.queryClientLabelsByCondition(request); | 29 | return deliveryRuleServiceRpcBlockingStub.queryClientLabelsByCondition(request); | ... | ... |
| ... | @@ -28,7 +28,7 @@ public class PayServiceClient { | ... | @@ -28,7 +28,7 @@ public class PayServiceClient { |
| 28 | 28 | ||
| 29 | public PayResponseDto payInform(PayInformRequestDto payRequestDto) { | 29 | public PayResponseDto payInform(PayInformRequestDto payRequestDto) { |
| 30 | try { | 30 | try { |
| 31 | - String url = "http://10.2.1.166:21051/API/Microapp/CreateOrder?appid=Order0001"; | 31 | + String url = "http://10.2.5.162:21051/API/Microapp/CreateOrder?appid=Order0001"; |
| 32 | String clientId = "Order0001"; | 32 | String clientId = "Order0001"; |
| 33 | ObjectMapper objectMapper = new ObjectMapper(); | 33 | ObjectMapper objectMapper = new ObjectMapper(); |
| 34 | ThirdPartyPayInformRequestDto jsonData = new ThirdPartyPayInformRequestDto(); | 34 | ThirdPartyPayInformRequestDto jsonData = new ThirdPartyPayInformRequestDto(); | ... | ... |
| ... | @@ -20,9 +20,9 @@ public class DeliveryRuleServiceImpl implements DeliveryRuleService { | ... | @@ -20,9 +20,9 @@ public class DeliveryRuleServiceImpl implements DeliveryRuleService { |
| 20 | private final DeliveryRuleServiceRpcClient deliveryRuleServiceRpcClient; | 20 | private final DeliveryRuleServiceRpcClient deliveryRuleServiceRpcClient; |
| 21 | 21 | ||
| 22 | @Override | 22 | @Override |
| 23 | - public List<LabelDto> getLabelsByType(QueryLabelsDto queryLabelsDto) { | 23 | + public List<LabelDto> getLabelsByTypes(QueryLabelsDto queryLabelsDto) { |
| 24 | 24 | ||
| 25 | - final var response = deliveryRuleServiceRpcClient.getLabelsByType(queryLabelsDto); | 25 | + final var response = deliveryRuleServiceRpcClient.getLabelsByTypes(queryLabelsDto); |
| 26 | return response.getResponsesList().stream().map( | 26 | return response.getResponsesList().stream().map( |
| 27 | label -> LabelDto.builder() | 27 | label -> LabelDto.builder() |
| 28 | .id(label.getId()) | 28 | .id(label.getId()) | ... | ... |
| ... | @@ -125,6 +125,7 @@ public class KdsServiceImpl implements KdsService { | ... | @@ -125,6 +125,7 @@ public class KdsServiceImpl implements KdsService { |
| 125 | .build()) | 125 | .build()) |
| 126 | .adjustSkuRemark(detail.getAdjustSkuRemark()) | 126 | .adjustSkuRemark(detail.getAdjustSkuRemark()) |
| 127 | .mealTime(DateUtil.formatDate(order.get().getMealTime())) | 127 | .mealTime(DateUtil.formatDate(order.get().getMealTime())) |
| 128 | + .serveStatus(detail.getServeStatus()) | ||
| 128 | .build(); | 129 | .build(); |
| 129 | kdsOrders.add(kdsOrder); | 130 | kdsOrders.add(kdsOrder); |
| 130 | } | 131 | } |
| ... | @@ -199,7 +200,7 @@ public class KdsServiceImpl implements KdsService { | ... | @@ -199,7 +200,7 @@ public class KdsServiceImpl implements KdsService { |
| 199 | List<KdsMealDetailDto> kdsMealDetailDtoList = new ArrayList<>(); | 200 | List<KdsMealDetailDto> kdsMealDetailDtoList = new ArrayList<>(); |
| 200 | for(Integer mealId: mealIds) { | 201 | for(Integer mealId: mealIds) { |
| 201 | final var meal = allMeals.stream().filter(m -> m.getId() == mealId).findFirst(); | 202 | final var meal = allMeals.stream().filter(m -> m.getId() == mealId).findFirst(); |
| 202 | - String mealName = ""; | 203 | + String mealName = "无餐别"; |
| 203 | if(meal.isEmpty() && mealId != 0) { | 204 | if(meal.isEmpty() && mealId != 0) { |
| 204 | continue; | 205 | continue; |
| 205 | } | 206 | } | ... | ... |
-
Please register or login to post a comment