diff --git a/lab4-5/.gradle/8.5/executionHistory/executionHistory.bin b/lab4-5/.gradle/8.5/executionHistory/executionHistory.bin index 323e033..991c1b9 100644 Binary files a/lab4-5/.gradle/8.5/executionHistory/executionHistory.bin and b/lab4-5/.gradle/8.5/executionHistory/executionHistory.bin differ diff --git a/lab4-5/.gradle/8.5/executionHistory/executionHistory.lock b/lab4-5/.gradle/8.5/executionHistory/executionHistory.lock index c809c1c..54c814e 100644 Binary files a/lab4-5/.gradle/8.5/executionHistory/executionHistory.lock and b/lab4-5/.gradle/8.5/executionHistory/executionHistory.lock differ diff --git a/lab4-5/.gradle/8.5/fileHashes/fileHashes.bin b/lab4-5/.gradle/8.5/fileHashes/fileHashes.bin index c12c0a0..651c7c8 100644 Binary files a/lab4-5/.gradle/8.5/fileHashes/fileHashes.bin and b/lab4-5/.gradle/8.5/fileHashes/fileHashes.bin differ diff --git a/lab4-5/.gradle/8.5/fileHashes/fileHashes.lock b/lab4-5/.gradle/8.5/fileHashes/fileHashes.lock index 3ef077b..396d62e 100644 Binary files a/lab4-5/.gradle/8.5/fileHashes/fileHashes.lock and b/lab4-5/.gradle/8.5/fileHashes/fileHashes.lock differ diff --git a/lab4-5/.gradle/8.5/fileHashes/resourceHashesCache.bin b/lab4-5/.gradle/8.5/fileHashes/resourceHashesCache.bin index 12581cd..5df11a7 100644 Binary files a/lab4-5/.gradle/8.5/fileHashes/resourceHashesCache.bin and b/lab4-5/.gradle/8.5/fileHashes/resourceHashesCache.bin differ diff --git a/lab4-5/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/lab4-5/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 9303cf0..fbc89b6 100644 Binary files a/lab4-5/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/lab4-5/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/lab4-5/build/classes/java/main/com/example/demo/products/api/ProductController.class b/lab4-5/build/classes/java/main/com/example/demo/products/api/ProductController.class index 76486d4..c0ebe61 100644 Binary files a/lab4-5/build/classes/java/main/com/example/demo/products/api/ProductController.class and b/lab4-5/build/classes/java/main/com/example/demo/products/api/ProductController.class differ diff --git a/lab4-5/build/resources/main/templates/default.html b/lab4-5/build/resources/main/templates/default.html index 4f42e71..25350f5 100644 --- a/lab4-5/build/resources/main/templates/default.html +++ b/lab4-5/build/resources/main/templates/default.html @@ -28,8 +28,8 @@
@@ -64,4 +60,22 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lab4-5/build/resources/main/templates/order-details.html b/lab4-5/build/resources/main/templates/order-details.html index e48449b..21995d5 100644 --- a/lab4-5/build/resources/main/templates/order-details.html +++ b/lab4-5/build/resources/main/templates/order-details.html @@ -3,39 +3,41 @@
-

Заказ №[[${order.id}]], [[${#dates.format(order.date, 'HH:mm dd-MM-yyyy')}]]

- -

Товары заказа отсутствуют

- - - - - - - - - - - - - - - - - - - - - -
Название товараЦветРазмерЦенаКоличество
+
+

Заказ №[[${order.id}]], [[${#dates.format(order.date, 'HH:mm dd-MM-yyyy')}]]

+ +

Товары заказа отсутствуют

+ + + + + + + + + + + + + + + + + + + + + +
Название товараЦветРазмерЦенаКоличество
+
+ +

Итого: [[${#numbers.formatDecimal(order.total, 1, 2)}]] руб

+
- -

Итого: [[${#numbers.formatDecimal(order.total, 1, 2)}]] руб

- -
+
diff --git a/lab4-5/build/resources/main/templates/orders.html b/lab4-5/build/resources/main/templates/orders.html index 3ffe78b..669d042 100644 --- a/lab4-5/build/resources/main/templates/orders.html +++ b/lab4-5/build/resources/main/templates/orders.html @@ -3,42 +3,44 @@
- - - -

Данные отсутствуют

- - - - - - - - - - - - - - - - - -
IDДата
-
- -
-
+
+

Личный кабинет

+ + +

Данные отсутствуют

+ + + + + + + + + + + + + + + + + +
IDДата
+
+ +
+
+
+ + - - -
+
\ No newline at end of file diff --git a/lab4-5/build/resources/main/templates/product.html b/lab4-5/build/resources/main/templates/product.html index 3767bc1..b296f9b 100644 --- a/lab4-5/build/resources/main/templates/product.html +++ b/lab4-5/build/resources/main/templates/product.html @@ -11,20 +11,8 @@

Данные отсутствуют

-

Товары

- - - -
-
+
Добавить товар
@@ -74,14 +62,9 @@ currentPage=${currentPage}) }" />
-
-
    -
  • - [[${stat.typeId}]]: - [[${#numbers.formatDecimal(stat.totalPrice, 1, 2)}]] ₽ -
  • -
-
+
@@ -89,4 +72,36 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lab4-5/build/resources/main/templates/profile.html b/lab4-5/build/resources/main/templates/profile.html index 157f1e3..34cc51b 100644 --- a/lab4-5/build/resources/main/templates/profile.html +++ b/lab4-5/build/resources/main/templates/profile.html @@ -8,7 +8,7 @@

Личный кабинет

-
diff --git a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/CartItemController.class.uniqueId0 b/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/CartItemController.class.uniqueId0 deleted file mode 100644 index 708fb82..0000000 Binary files a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/CartItemController.class.uniqueId0 and /dev/null differ diff --git a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/OrderController.class.uniqueId1 b/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/OrderController.class.uniqueId1 deleted file mode 100644 index ea71a5e..0000000 Binary files a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/OrderController.class.uniqueId1 and /dev/null differ diff --git a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/OrderService.class.uniqueId2 b/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/OrderService.class.uniqueId2 deleted file mode 100644 index 182b63d..0000000 Binary files a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/OrderService.class.uniqueId2 and /dev/null differ diff --git a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/ProductController.class.uniqueId0 b/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/ProductController.class.uniqueId0 new file mode 100644 index 0000000..76486d4 Binary files /dev/null and b/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/ProductController.class.uniqueId0 differ diff --git a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/UserProfileController.class.uniqueId3 b/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/UserProfileController.class.uniqueId3 deleted file mode 100644 index 17c45d6..0000000 Binary files a/lab4-5/build/tmp/compileJava/compileTransaction/stash-dir/UserProfileController.class.uniqueId3 and /dev/null differ diff --git a/lab4-5/build/tmp/compileJava/previous-compilation-data.bin b/lab4-5/build/tmp/compileJava/previous-compilation-data.bin index 8fc1f51..d08f74a 100644 Binary files a/lab4-5/build/tmp/compileJava/previous-compilation-data.bin and b/lab4-5/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/lab4-5/data.mv.db b/lab4-5/data.mv.db index 6c7b74d..a100306 100644 Binary files a/lab4-5/data.mv.db and b/lab4-5/data.mv.db differ diff --git a/lab4-5/src/main/java/com/example/demo/products/api/ProductController.java b/lab4-5/src/main/java/com/example/demo/products/api/ProductController.java index 4582a6d..741a88e 100644 --- a/lab4-5/src/main/java/com/example/demo/products/api/ProductController.java +++ b/lab4-5/src/main/java/com/example/demo/products/api/ProductController.java @@ -110,10 +110,6 @@ public class ProductController { @GetMapping("/edit/") public String create(Model model) { model.addAttribute(PRODUCT_ATTRIBUTE, new ProductDto()); - /*model.addAttribute("stats", - productService.getTotal().stream() - .map(this::toGroupedDto) - .toList()); */ model.addAttribute("types", typeService.getAll().stream() .map(this::toTypeDto) @@ -139,10 +135,6 @@ public class ProductController { if (id <= 0) { throw new IllegalArgumentException(); } - /*model.addAttribute("stats", - productService.getTotal().stream() - .map(this::toGroupedDto) - .toList()); */ model.addAttribute("types", typeService.getAll().stream() .map(this::toTypeDto) diff --git a/lab4-5/src/main/resources/templates/default.html b/lab4-5/src/main/resources/templates/default.html index 4f42e71..25350f5 100644 --- a/lab4-5/src/main/resources/templates/default.html +++ b/lab4-5/src/main/resources/templates/default.html @@ -28,8 +28,8 @@
@@ -64,4 +60,22 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lab4-5/src/main/resources/templates/order-details.html b/lab4-5/src/main/resources/templates/order-details.html index e48449b..21995d5 100644 --- a/lab4-5/src/main/resources/templates/order-details.html +++ b/lab4-5/src/main/resources/templates/order-details.html @@ -3,39 +3,41 @@
-

Заказ №[[${order.id}]], [[${#dates.format(order.date, 'HH:mm dd-MM-yyyy')}]]

- -

Товары заказа отсутствуют

- - - - - - - - - - - - - - - - - - - - - -
Название товараЦветРазмерЦенаКоличество
+
+

Заказ №[[${order.id}]], [[${#dates.format(order.date, 'HH:mm dd-MM-yyyy')}]]

+ +

Товары заказа отсутствуют

+ + + + + + + + + + + + + + + + + + + + + +
Название товараЦветРазмерЦенаКоличество
+
+ +

Итого: [[${#numbers.formatDecimal(order.total, 1, 2)}]] руб

+
- -

Итого: [[${#numbers.formatDecimal(order.total, 1, 2)}]] руб

- -
+
diff --git a/lab4-5/src/main/resources/templates/orders.html b/lab4-5/src/main/resources/templates/orders.html index 3ffe78b..669d042 100644 --- a/lab4-5/src/main/resources/templates/orders.html +++ b/lab4-5/src/main/resources/templates/orders.html @@ -3,42 +3,44 @@
- - - -

Данные отсутствуют

- - - - - - - - - - - - - - - - - -
IDДата
-
- -
-
+
+

Личный кабинет

+ + +

Данные отсутствуют

+ + + + + + + + + + + + + + + + + +
IDДата
+
+ +
+
+
+ + - - -
+
\ No newline at end of file diff --git a/lab4-5/src/main/resources/templates/product.html b/lab4-5/src/main/resources/templates/product.html index 3767bc1..b296f9b 100644 --- a/lab4-5/src/main/resources/templates/product.html +++ b/lab4-5/src/main/resources/templates/product.html @@ -11,20 +11,8 @@

Данные отсутствуют

-

Товары

- - - -
-
+
Добавить товар
@@ -74,14 +62,9 @@ currentPage=${currentPage}) }" />
-
-
    -
  • - [[${stat.typeId}]]: - [[${#numbers.formatDecimal(stat.totalPrice, 1, 2)}]] ₽ -
  • -
-
+
@@ -89,4 +72,36 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lab4-5/src/main/resources/templates/profile.html b/lab4-5/src/main/resources/templates/profile.html index 157f1e3..34cc51b 100644 --- a/lab4-5/src/main/resources/templates/profile.html +++ b/lab4-5/src/main/resources/templates/profile.html @@ -8,7 +8,7 @@

Личный кабинет

-