From 7e0b7e4b2a5f57b0c38ac8e27436928f70137f17 Mon Sep 17 00:00:00 2001 From: xjs <1294405880@qq.com> Date: Mon, 28 Feb 2022 23:15:05 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=B0=9A=E8=9E=8D=E5=AE=9D=E6=9C=8D=E5=8A=A1=E5=90=84=E4=B8=AA?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=8F=8A=E6=96=87=E4=BB=B6=202=E3=80=81?= =?UTF-8?q?=E5=B0=9A=E8=9E=8D=E5=AE=9D=E9=A1=B9=E7=9B=AE=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E7=AD=89=E7=BA=A7controller=E7=BC=96=E5=86=99crud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/controller/BorrowInfoController.java | 2 + .../admin/IntegralGradeController.java | 71 +++++++++++++++++++ .../xjs/srb/core/entity/IntegralGrade.java | 55 ++++++++++++++ .../srb/core/mapper/IntegralGradeMapper.java | 16 +++++ .../core/service/IIntegralGradeService.java | 16 +++++ .../impl/IntegralGradeServiceImpl.java | 20 ++++++ .../resources/mapper/IntegralGradeMapper.xml | 5 ++ .../src/test/java/com/xjs/CodeGenerator.java | 2 +- 8 files changed, 186 insertions(+), 1 deletion(-) create mode 100644 xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/admin/IntegralGradeController.java create mode 100644 xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/entity/IntegralGrade.java create mode 100644 xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/mapper/IntegralGradeMapper.java create mode 100644 xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/service/IIntegralGradeService.java create mode 100644 xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/service/impl/IntegralGradeServiceImpl.java create mode 100644 xjs-business/xjs-business-srb/srb-service-core/src/main/resources/mapper/IntegralGradeMapper.xml diff --git a/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/BorrowInfoController.java b/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/BorrowInfoController.java index 782cd2af..aecabf9c 100644 --- a/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/BorrowInfoController.java +++ b/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/BorrowInfoController.java @@ -1,6 +1,7 @@ package com.xjs.srb.core.controller; +import io.swagger.annotations.Api; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.stereotype.Controller; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Controller; */ @Controller @RequestMapping("/core/borrowInfo") +@Api(tags = "尚融宝-借款信息管理") public class BorrowInfoController { } diff --git a/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/admin/IntegralGradeController.java b/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/admin/IntegralGradeController.java new file mode 100644 index 00000000..b1c175b4 --- /dev/null +++ b/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/controller/admin/IntegralGradeController.java @@ -0,0 +1,71 @@ +package com.xjs.srb.core.controller.admin; + + +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.xjs.srb.core.entity.IntegralGrade; +import com.xjs.srb.core.service.IIntegralGradeService; +import com.xjs.web.MyBaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +/** + *
+ * 积分等级表 前端控制器 + *
+ * + * @author xiejs + * @since 2022-02-28 + */ +@RestController +@RequestMapping("/admin/core/integralGrade") +@Api(tags = "尚融宝-积分管理") +public class IntegralGradeController extends MyBaseController+ * 积分等级表 + *
+ * + * @author xiejs + * @since 2022-02-28 + */ +@Getter +@Setter +@TableName("integral_grade") +@ApiModel(value = "IntegralGrade对象", description = "积分等级表") +public class IntegralGrade implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("编号") + @TableId(value = "id") + private Long id; + + @ApiModelProperty("积分区间开始") + private Integer integralStart; + + @ApiModelProperty("积分区间结束") + private Integer integralEnd; + + @ApiModelProperty("借款额度") + private BigDecimal borrowAmount; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("逻辑删除(1:已删除,0:未删除)") + @TableLogic + private Boolean isDeleted; + + +} diff --git a/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/mapper/IntegralGradeMapper.java b/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/mapper/IntegralGradeMapper.java new file mode 100644 index 00000000..e730c2c9 --- /dev/null +++ b/xjs-business/xjs-business-srb/srb-service-core/src/main/java/com/xjs/srb/core/mapper/IntegralGradeMapper.java @@ -0,0 +1,16 @@ +package com.xjs.srb.core.mapper; + +import com.xjs.srb.core.entity.IntegralGrade; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *+ * 积分等级表 Mapper 接口 + *
+ * + * @author xiejs + * @since 2022-02-28 + */ +public interface IntegralGradeMapper extends BaseMapper+ * 积分等级表 服务类 + *
+ * + * @author xiejs + * @since 2022-02-28 + */ +public interface IIntegralGradeService extends IService+ * 积分等级表 服务实现类 + *
+ * + * @author xiejs + * @since 2022-02-28 + */ +@Service +public class IntegralGradeServiceImpl extends ServiceImpl