| | |
| | | import com.mzl.flower.dto.response.payment.*; |
| | | import com.mzl.flower.service.payment.DeliveryOrderService; |
| | | import com.mzl.flower.service.payment.OrderService; |
| | | import com.mzl.flower.service.payment.UserPaymentSybService; |
| | | import com.mzl.flower.service.payment.UserPaymentV3Service; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | |
| | | private OrderService orderService; |
| | | |
| | | @Autowired |
| | | private UserPaymentSybService paymentSybService; |
| | | private UserPaymentV3Service paymentV3Service; |
| | | |
| | | @Autowired |
| | | private DeliveryOrderService deliveryOrderService; |
| | |
| | | @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), |
| | | }) |
| | | @ApiOperation(value = "退款") |
| | | public ResponseEntity<ReturnDataDTO> refundOrder(String id) throws Exception { |
| | | public ResponseEntity<ReturnDataDTO> refundOrder(String id) { |
| | | orderService.refundCheckAdmin(id); |
| | | paymentSybService.refundOrder(id); |
| | | paymentV3Service.refundOrder(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | |
| | | 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()); |
| | | } |
| | | |
| | | } |