Serve
glasses serves
Сортировка: по дате начала производства: **productionStartedAt,ASC/DESC** по дате выдачи заказа: **finishedAt,ASC/DESC** по дате создания заказа: **createdAt,ASC/DESC** (default: **productionStartedAt,DESC**)
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
Parameter | Description |
---|---|
|
comma separated user ids |
|
min date including |
|
max date including |
|
department id |
|
production department id |
|
order status |
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
}
Path | Type | Description |
---|---|---|
|
|
Glasses serve list |
|
|
serve id |
|
|
production start date |
|
|
order id |
|
|
|
|
|
order creation date |
|
|
order finish date |
|
|
expected order finish date |
|
|
department name |
|
|
production department name |
|
|
order status |
|
|
user |
|
|
user id |
|
|
user first name |
|
|
user family name |
|
|
user patronymic name |