| | |
| | | import com.oying.modules.sh.domain.OrderReturnOperationLog; |
| | | import com.oying.modules.sh.service.OrderReturnOperationLogService; |
| | | import com.oying.modules.sh.domain.dto.OrderReturnOperationLogQueryCriteria; |
| | | import com.oying.utils.R; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | **/ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "退订用户操作管理") |
| | | @Api(tags = "SH:退订用户操作管理") |
| | | @RequestMapping("/api/orderReturnOperationLog") |
| | | public class OrderReturnOperationLogController { |
| | | |
| | |
| | | return new ResponseEntity<>(orderReturnOperationLogService.queryAll(criteria,page),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增退订用户操作管理") |
| | | @ApiOperation("新增退订用户操作管理") |
| | | @PreAuthorize("@el.check('orderReturnOperationLog:add')") |
| | | public ResponseEntity<Object> createOrderReturnOperationLog(@Validated @RequestBody OrderReturnOperationLog resources){ |
| | | orderReturnOperationLogService.create(resources); |
| | | return new ResponseEntity<>(HttpStatus.CREATED); |
| | | @GetMapping("getByReturnNum") |
| | | @ApiOperation("根据退单号查询退单操作日志") |
| | | public ResponseEntity<Object> getByReturnNum(@RequestParam String returnNum) { |
| | | return new ResponseEntity<>(R.success(orderReturnOperationLogService.getByReturnNum(returnNum)), HttpStatus.OK); |
| | | } |
| | | } |