src/main/java/com/mzl/flower/dto/request/payment/PostQueryDTO.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/mzl/flower/web/supplier/DeliverySupplierController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/mzl/flower/dto/request/payment/PostQueryDTO.java
对比新文件 @@ -0,0 +1,15 @@ package com.mzl.flower.dto.request.payment; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.time.LocalDate; import java.util.List; @Data public class PostQueryDTO implements Serializable { @ApiModelProperty(value = "主键列表") private List<String> ids; } src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java
@@ -238,8 +238,8 @@ return deliveryOrderItemMapper.selectDoItemList(id); } public List<DeliveryOrderItemDTO> getSupplierDeliveryOrderItems(String ids){ List<String> idList = splitParam(ids); public List<DeliveryOrderItemDTO> getSupplierDeliveryOrderItems(PostQueryDTO dto){ List<String> idList = dto.getIds(); List<DeliveryOrderItemDTO> ls = new ArrayList<>(); if(idList != null && idList.size() > 0){ for(String id : idList){ src/main/java/com/mzl/flower/web/supplier/DeliverySupplierController.java
@@ -7,6 +7,7 @@ import com.mzl.flower.constant.Constants; import com.mzl.flower.dto.request.payment.DeliveryOrderArriveDTO; import com.mzl.flower.dto.request.payment.DeliveryOrderQueryDTO; import com.mzl.flower.dto.request.payment.PostQueryDTO; import com.mzl.flower.dto.response.payment.*; import com.mzl.flower.dto.response.supplier.SupplierOrderDTO; import com.mzl.flower.service.payment.DeliveryOrderService; @@ -104,13 +105,10 @@ return returnData(R.SUCCESS.getCode(), deliveryOrderService.getSupplierDeliveryOrderItem(id)); } @GetMapping("/list/items/views") @PostMapping("/list/items/views") @ApiOperation(value = "获取商品详情列表") @ApiImplicitParams({ @ApiImplicitParam(name = "ids", value = "配送物品id列表", required = true, dataType = "String", paramType = "query") }) public ResponseEntity<ReturnDataDTO<List<DeliveryOrderItemDTO>>> getSupplierDeliveryOrderItems(String ids){ return returnData(R.SUCCESS.getCode(), deliveryOrderService.getSupplierDeliveryOrderItems(ids)); public ResponseEntity<ReturnDataDTO<List<DeliveryOrderItemDTO>>> getSupplierDeliveryOrderItems(@RequestBody PostQueryDTO dto){ return returnData(R.SUCCESS.getCode(), deliveryOrderService.getSupplierDeliveryOrderItems(dto)); } @PostMapping("/list/arrive")