|
|
@ -6,9 +6,7 @@ import com.wayn.common.core.domain.shop.Order;
|
|
|
|
import com.wayn.common.core.service.shop.IAdminOrderService;
|
|
|
|
import com.wayn.common.core.service.shop.IAdminOrderService;
|
|
|
|
import com.wayn.common.util.R;
|
|
|
|
import com.wayn.common.util.R;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
@ -24,5 +22,9 @@ public class AdminOrderController extends BaseController {
|
|
|
|
return R.success().add("page", iAdminOrderService.selectListPage(page, order));
|
|
|
|
return R.success().add("page", iAdminOrderService.selectListPage(page, order));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("{orderId}")
|
|
|
|
|
|
|
|
public R deleteOrder(@PathVariable Long orderId) {
|
|
|
|
|
|
|
|
return R.result(iAdminOrderService.removeById(orderId));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|