| | |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.constant.Constants; |
| | | import com.mzl.flower.dto.request.payment.OrderAddressUpdateDTO; |
| | | import com.mzl.flower.dto.request.payment.OrderDeliveryNoDTO; |
| | | import com.mzl.flower.dto.request.payment.OrderQueryDTO; |
| | | import com.mzl.flower.dto.request.payment.OrderReduceDTO; |
| | | import com.mzl.flower.dto.response.payment.*; |
| | | import com.mzl.flower.service.payment.DeliveryOrderService; |
| | | import com.mzl.flower.service.payment.OrderService; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | |
| | | public ResponseEntity<ReturnDataDTO<Page<OrderPlatformListDTO>>> selectOrderList(Page page, OrderQueryDTO dto){ |
| | | return returnData(R.SUCCESS.getCode(), orderService.selectOrderPlatformList(page, dto)); |
| | | } |
| | | |
| | | @GetMapping("/list/view") |
| | | @ApiOperation(value = "订单详情") |
| | | @ApiImplicitParams({ |
| | |
| | | |
| | | @GetMapping("/list/abnormal/process") |
| | | @ApiOperation(value = "异常订单处理(不管有没有退款金额,建议都要处理)") |
| | | public ResponseEntity<ReturnDataDTO> processLevelDown(String id) { |
| | | public ResponseEntity<ReturnDataDTO> processLevelDown(String id) throws Exception { |
| | | orderService.processAbnormalOrder(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | |
| | | }) |
| | | public ResponseEntity<ReturnDataDTO<OrderItemCheckNumDTO>> getReplaceCheck(String orderItemId){ |
| | | return returnData(R.SUCCESS.getCode(), deliveryOrderService.getOtherCheck(orderItemId |
| | | , Constants.CHECK_TYPE.replace.name())); |
| | | , Constants.CHECK_TYPE.replace.name(), false)); |
| | | } |
| | | |
| | | @GetMapping("/list/check/info/lack") |
| | |
| | | }) |
| | | public ResponseEntity<ReturnDataDTO<OrderItemCheckNumDTO>> getLackCheck(String orderItemId){ |
| | | return returnData(R.SUCCESS.getCode(), deliveryOrderService.getOtherCheck(orderItemId |
| | | , Constants.CHECK_TYPE.lack.name())); |
| | | , Constants.CHECK_TYPE.lack.name(), false)); |
| | | } |
| | | |
| | | @GetMapping("/list/check/info/agree") |
| | |
| | | return returnData(R.SUCCESS.getCode(), orderService.selectOrderCheckList(dto)); |
| | | } |
| | | |
| | | @PostMapping("/check/location/list") |
| | | @ApiOperation(value = "查询订单清单列表-按库位分商品") |
| | | public ResponseEntity<ReturnDataDTO<List<OrderCheckLocationListDTO>>> selectOrderCheckLocationList( |
| | | @RequestBody OrderQueryDTO dto){ |
| | | return returnData(R.SUCCESS.getCode(), orderService.selectOrderCheckLocationList(dto)); |
| | | } |
| | | |
| | | @GetMapping(value = "/refund") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), |
| | |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @PostMapping("/page/update") |
| | | @ApiOperation(value = "订单修改", notes = "订单修改") |
| | | public ResponseEntity<ReturnDataDTO> operationUpdate(@Validated @RequestBody OrderAddressUpdateDTO dto) { |
| | | orderService.operationUpdate(dto); |
| | | return returnData(R.SUCCESS.getCode(),null); |
| | | } |
| | | |
| | | @GetMapping("/list/export") |
| | | @ApiOperation(value = "订单导出") |
| | | public void exportOrderDetail(HttpServletResponse response, OrderQueryDTO queryOrderDTO) { |
| | | orderService.exportOrderDetail(response, queryOrderDTO); |
| | | } |
| | | |
| | | @GetMapping("/time/now") |
| | | @ApiOperation(value = "订单导出") |
| | | public ResponseEntity<Long> getNowTime() { |
| | | return returnData(R.SUCCESS.getCode(),System.currentTimeMillis()); |
| | | } |
| | | |
| | | @GetMapping("/elk/date") |
| | | @ApiOperation(value = "订单日期刷新") |
| | | public ResponseEntity<Long> getElkDate() { |
| | | orderService.refreshDate(); |
| | | return returnData(R.SUCCESS.getCode(),System.currentTimeMillis()); |
| | | } |
| | | |
| | | } |