From 73aff9031f06c8f0577740a795023bfd9c29304b Mon Sep 17 00:00:00 2001 From: delicacylee Date: Mon, 31 Jul 2023 10:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=93=81=E7=89=8C=E5=92=8C?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=9A=84=E9=80=BB=E8=BE=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hiver-admin/test-output/test-report.html | 16 ++-- .../main/java/cc/hiver/core/vo/Option.java | 52 ++++++++++++ .../controller/GoodsAttributeController.java | 45 ++++++++++ .../mall/controller/GoodsBrandController.java | 29 ++++++- .../mall/controller/GoodsCartController.java | 41 ++++++++++ .../controller/GoodsCategoryController.java | 58 ++++++++++--- .../cc/hiver/mall/dao/GoodsCategoryDao.java | 25 ------ .../mall/dao/mapper/GoodsCategoryMapper.java | 27 ++++++ .../hiver/mall/pojo/vo/GoodsCategoryVO.java | 56 +++++++++++++ .../hiver/mall/service/GoodsBrandService.java | 3 + .../mall/service/GoodsCategoryService.java | 25 ------ .../service/mybatis/GoodsCategoryService.java | 16 ++++ .../serviceimpl/GoodsBrandServiceImpl.java | 32 ++++++++ .../serviceimpl/GoodsCategoryServiceImpl.java | 35 -------- .../mybatis/GoodsCategoryServiceImpl.java | 82 +++++++++++++++++++ 15 files changed, 435 insertions(+), 107 deletions(-) create mode 100644 hiver-core/src/main/java/cc/hiver/core/vo/Option.java create mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/GoodsAttributeController.java create mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/GoodsCartController.java delete mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/GoodsCategoryDao.java create mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/GoodsCategoryMapper.java create mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/pojo/vo/GoodsCategoryVO.java delete mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/service/GoodsCategoryService.java create mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/service/mybatis/GoodsCategoryService.java delete mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/GoodsCategoryServiceImpl.java create mode 100644 hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/GoodsCategoryServiceImpl.java diff --git a/hiver-admin/test-output/test-report.html b/hiver-admin/test-output/test-report.html index 4f57d30b..ddf3c480 100644 --- a/hiver-admin/test-output/test-report.html +++ b/hiver-admin/test-output/test-report.html @@ -35,7 +35,7 @@ Hiver
  • -七月 30, 2023 16:13:08 +七月 31, 2023 09:25:02
  • @@ -84,7 +84,7 @@

    passTest

    -

    16:13:08 下午 / 0.012 secs

    +

    09:25:03 上午 / 0.022 secs

    @@ -92,9 +92,9 @@
    #test-id=1
    passTest
    -07.30.2023 16:13:08 -07.30.2023 16:13:08 -0.012 secs +07.31.2023 09:25:03 +07.31.2023 09:25:03 +0.022 secs
    @@ -104,7 +104,7 @@ Pass - 16:13:08 + 9:25:03 Test passed @@ -128,13 +128,13 @@

    Started

    -

    七月 30, 2023 16:13:08

    +

    七月 31, 2023 09:25:02

    Ended

    -

    七月 30, 2023 16:13:08

    +

    七月 31, 2023 09:25:03

    diff --git a/hiver-core/src/main/java/cc/hiver/core/vo/Option.java b/hiver-core/src/main/java/cc/hiver/core/vo/Option.java new file mode 100644 index 00000000..1bcd9ee6 --- /dev/null +++ b/hiver-core/src/main/java/cc/hiver/core/vo/Option.java @@ -0,0 +1,52 @@ +/* +Copyright [2022] [https://hiver.cc] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ +package cc.hiver.core.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.List; + +/** + * @author Yazhi Li + */ +@ApiModel("涓嬫媺閫夐」瀵硅薄") +@Data +@NoArgsConstructor +public class Option { + public Option(T value, String label) { + this.value = value; + this.label = label; + } + + public Option(T value, String label, List