| package com.mzl.flower.web.customer; | 
|   | 
| import com.mzl.flower.base.BaseController; | 
| import com.mzl.flower.base.R; | 
| import com.mzl.flower.base.ReturnDataDTO; | 
| import com.mzl.flower.constant.Constants; | 
| import com.mzl.flower.dto.response.payment.*; | 
| import com.mzl.flower.service.payment.DeliveryOrderService; | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiImplicitParam; | 
| import io.swagger.annotations.ApiImplicitParams; | 
| import io.swagger.annotations.ApiOperation; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.http.ResponseEntity; | 
| import org.springframework.validation.annotation.Validated; | 
| import org.springframework.web.bind.annotation.*; | 
|   | 
| @RestController | 
| @RequestMapping("/api/customer/delivery") | 
| @Api(value = "配送管理-花店", tags = "配送管理-花店") | 
| @Validated | 
| @Slf4j | 
| public class DeliveryCustomerController extends BaseController { | 
|   | 
|     @Autowired | 
|     private DeliveryOrderService deliveryOrderService; | 
|   | 
|     @GetMapping("/mine/list/check/info/reduce") | 
|     @ApiOperation(value = "降级操作详情") | 
|     @ApiImplicitParams({ | 
|             @ApiImplicitParam(name = "orderItemId", value = "订单商品id", required = true, dataType = "String", paramType = "query") | 
|     }) | 
|     public ResponseEntity<ReturnDataDTO<OrderItemCheckReduceDTO>> getReduceCheck(String orderItemId){ | 
|         return returnData(R.SUCCESS.getCode(), deliveryOrderService.getReduceCheck(orderItemId)); | 
|     } | 
|   | 
|     @GetMapping("/mine/list/check/info/lack") | 
|     @ApiOperation(value = "缺货操作详情") | 
|     @ApiImplicitParams({ | 
|             @ApiImplicitParam(name = "orderItemId", value = "订单商品id", required = true, dataType = "String", paramType = "query") | 
|     }) | 
|     public ResponseEntity<ReturnDataDTO<OrderItemCheckNumDTO>> getLackCheck(String orderItemId){ | 
|         return returnData(R.SUCCESS.getCode(), deliveryOrderService.getOtherCheck(orderItemId | 
|                 , Constants.CHECK_TYPE.lack.name(), false)); | 
|     } | 
| } |