| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | |
| | | |
| | | @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 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()); |
| | | } |
| | | |
| | | } |