Serve

glasses serves

Сортировка:
по дате начала производства: **productionStartedAt,ASC/DESC**
по дате выдачи заказа: **finishedAt,ASC/DESC**
по дате создания заказа: **createdAt,ASC/DESC**
(default: **productionStartedAt,DESC**)
request
GET /api/v2/serves/glasses?page=0&size=20&startFrom=2016-02-15&prodDepartmentId=1000000004&userIds=1000000003,10000000013&status=ORDER_COMPLETED&status=ORDER_COMPLETED HTTP/1.1
Table 378. request description
Parameter Description

userIds

comma separated user ids

startFrom

min date including

startTo

max date including

departmentId

department id

prodDepartmentId

production department id

status

order status

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "order" : {
      "id" : 1000000128,
      "redo" : null,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2022-06-15T12:35:00.000Z",
      "finishedAt" : "2022-06-15T12:35:00.000Z",
      "finishExpectingAt" : null,
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2022-06-15T12:35:00.000Z"
  }, {
    "order" : {
      "id" : 1000000125,
      "redo" : false,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2020-12-08T14:46:00.000Z",
      "finishedAt" : "2020-12-11T18:40:00.000Z",
      "finishExpectingAt" : "2020-12-09T15:37:36.000Z",
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2020-12-11T18:38:00.000Z"
  }, {
    "order" : {
      "id" : 1000000105,
      "redo" : false,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2020-03-11T12:07:00.000Z",
      "finishedAt" : "2020-03-11T12:35:00.000Z",
      "finishExpectingAt" : null,
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2020-03-11T12:33:00.000Z"
  }, {
    "order" : {
      "id" : 1000000035,
      "redo" : false,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2019-02-27T16:33:00.000Z",
      "finishedAt" : "2019-02-27T16:34:00.000Z",
      "finishExpectingAt" : "2019-02-27T00:00:00.000Z",
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2019-02-27T16:34:00.000Z"
  }, {
    "order" : {
      "id" : 1000000028,
      "redo" : false,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2019-02-26T08:38:00.000Z",
      "finishedAt" : "2019-02-26T08:40:00.000Z",
      "finishExpectingAt" : null,
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2019-02-26T08:40:00.000Z"
  }, {
    "order" : {
      "id" : 1000000020,
      "redo" : false,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2025-08-27T01:00:00.000Z",
      "finishedAt" : "2019-02-06T17:03:00.000Z",
      "finishExpectingAt" : null,
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2019-02-06T17:03:00.000Z"
  }, {
    "order" : {
      "id" : 1000000013,
      "redo" : false,
      "status" : "ORDER_COMPLETED",
      "createdAt" : "2019-02-01T16:53:00.000Z",
      "finishedAt" : "2019-02-01T16:57:00.000Z",
      "finishExpectingAt" : null,
      "departmentName" : "Первый магазин",
      "productionDepartmentName" : "Цех"
    },
    "employee" : {
      "id" : 1000000003,
      "firstName" : "Иван",
      "familyName" : "Иванов",
      "patronymicName" : null,
      "fullName" : "Иванов Иван",
      "shortName" : "Иванов И."
    },
    "productionStartedAt" : "2019-02-01T16:57:00.000Z"
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 20,
    "sort" : {
      "empty" : false,
      "sorted" : true,
      "unsorted" : false
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 7,
  "totalPages" : 1,
  "first" : true,
  "size" : 20,
  "number" : 0,
  "sort" : {
    "empty" : false,
    "sorted" : true,
    "unsorted" : false
  },
  "numberOfElements" : 7,
  "empty" : false
}
Table 379. response description
Path Type Description

content[].

Array

Glasses serve list

[].id

Number

serve id

[].productionStartedAt

String

production start date

[].order.id

Number

order id

[].order.redo

Boolean

[].order.createdAt

String

order creation date

[].order.finishedAt

String

order finish date

[].order.finishExpectingAt

String

expected order finish date

[].order.departmentName

String

department name

[].order.productionDepartmentName

String

production department name

[].order.status

String

order status

[].userInfo

Object

user

[].userInfo.id

Number

user id

[].userInfo.firstName

String

user first name

[].userInfo.familyName

String

user family name

[].userInfo.patronymicName

String

user patronymic name