From 089dcbabbe3cb5f5cb168381392530281cc6c10d Mon Sep 17 00:00:00 2001
From: "DESKTOP-369JRHT\\12997" <9>
Date: Thu, 2 Nov 2023 18:32:07 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
fuintAdmin/package.json | 1 +
fuintAdmin/src/api/integral/category.js | 28 ++
fuintAdmin/src/api/integral/gift.js | 28 ++
fuintAdmin/src/api/integral/giftForm.js | 8 +
fuintAdmin/src/views/integral/gift/index.vue | 460 ++++++++++++++++++
.../src/views/integral/giftCategory/index.vue | 245 ++++++++++
fuintAdmin/src/views/system/menu/index.vue | 8 +
.../IntegralGiftCategoryController.java | 94 ++++
.../controller/IntegralGiftController.java | 92 ++++
.../integral/entity/IntegralGift.java | 377 ++++++++++++++
.../integral/entity/IntegralGiftCategory.java | 40 ++
.../mapper/IntegralGiftCategoryMapper.java | 85 ++++
.../integral/mapper/IntegralGiftMapper.java | 87 ++++
.../mapper/xml/IntegralGiftCategoryMapper.xml | 165 +++++++
.../mapper/xml/IntegralGiftMapper.xml | 400 +++++++++++++++
.../service/IntegralGiftCategoryService.java | 57 +++
.../integral/service/IntegralGiftService.java | 60 +++
.../impl/IntegralGiftCategoryServiceImpl.java | 89 ++++
.../service/impl/IntegralGiftServiceImpl.java | 89 ++++
.../business/integral/vo/IntegralGiftVO.java | 10 +
20 files changed, 2423 insertions(+)
create mode 100644 fuintAdmin/src/api/integral/category.js
create mode 100644 fuintAdmin/src/api/integral/gift.js
create mode 100644 fuintAdmin/src/api/integral/giftForm.js
create mode 100644 fuintAdmin/src/views/integral/gift/index.vue
create mode 100644 fuintAdmin/src/views/integral/giftCategory/index.vue
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftCategoryController.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftController.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGift.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGiftCategory.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftCategoryMapper.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftMapper.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftCategoryMapper.xml
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftCategoryService.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftService.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftCategoryServiceImpl.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftServiceImpl.java
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/vo/IntegralGiftVO.java
diff --git a/fuintAdmin/package.json b/fuintAdmin/package.json
index 701fbd092..fd692ebdc 100644
--- a/fuintAdmin/package.json
+++ b/fuintAdmin/package.json
@@ -43,6 +43,7 @@
"clipboard": "2.0.8",
"core-js": "3.25.3",
"echarts": "4.9.0",
+ "element-tiptap": "^1.27.1",
"element-ui": "2.15.12",
"file-saver": "2.0.5",
"fuse.js": "6.4.3",
diff --git a/fuintAdmin/src/api/integral/category.js b/fuintAdmin/src/api/integral/category.js
new file mode 100644
index 000000000..14c469ec3
--- /dev/null
+++ b/fuintAdmin/src/api/integral/category.js
@@ -0,0 +1,28 @@
+import request from "@/utils/request";
+
+// 查询油罐列表
+export function getGiftCategoryApi(data) {
+ return request({
+ url: 'business/integral/integralGiftCategory/queryByPage',
+ method: 'get',
+ params: data
+ })
+ }
+ // 新增有关信息
+ export function insertGiftCategoryApi(data) {
+ return request({
+ url: 'business/integral/integralGiftCategory',
+ method: 'post',
+ data: data
+ })
+ }
+ // 修改有关信息
+ export function updateGiftCategoryApi(data) {
+ return request({
+ url: 'business/integral/integralGiftCategory',
+ method: 'put',
+ data: data
+ })
+ }
+
+
\ No newline at end of file
diff --git a/fuintAdmin/src/api/integral/gift.js b/fuintAdmin/src/api/integral/gift.js
new file mode 100644
index 000000000..14c469ec3
--- /dev/null
+++ b/fuintAdmin/src/api/integral/gift.js
@@ -0,0 +1,28 @@
+import request from "@/utils/request";
+
+// 查询油罐列表
+export function getGiftCategoryApi(data) {
+ return request({
+ url: 'business/integral/integralGiftCategory/queryByPage',
+ method: 'get',
+ params: data
+ })
+ }
+ // 新增有关信息
+ export function insertGiftCategoryApi(data) {
+ return request({
+ url: 'business/integral/integralGiftCategory',
+ method: 'post',
+ data: data
+ })
+ }
+ // 修改有关信息
+ export function updateGiftCategoryApi(data) {
+ return request({
+ url: 'business/integral/integralGiftCategory',
+ method: 'put',
+ data: data
+ })
+ }
+
+
\ No newline at end of file
diff --git a/fuintAdmin/src/api/integral/giftForm.js b/fuintAdmin/src/api/integral/giftForm.js
new file mode 100644
index 000000000..7715ab3d0
--- /dev/null
+++ b/fuintAdmin/src/api/integral/giftForm.js
@@ -0,0 +1,8 @@
+Vue.component('button-counter', {
+ data: function () {
+ return {
+ count: 0
+ }
+ },
+ template: ''
+})
\ No newline at end of file
diff --git a/fuintAdmin/src/views/integral/gift/index.vue b/fuintAdmin/src/views/integral/gift/index.vue
new file mode 100644
index 000000000..ac9ba5793
--- /dev/null
+++ b/fuintAdmin/src/views/integral/gift/index.vue
@@ -0,0 +1,460 @@
+
+
+
+
+
+
+
+
+
+ 新增礼品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/fuintAdmin/src/views/integral/giftCategory/index.vue b/fuintAdmin/src/views/integral/giftCategory/index.vue
new file mode 100644
index 000000000..d07110bfd
--- /dev/null
+++ b/fuintAdmin/src/views/integral/giftCategory/index.vue
@@ -0,0 +1,245 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+ 新增分类
+
+
+
+
+
+
+
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/fuintAdmin/src/views/system/menu/index.vue b/fuintAdmin/src/views/system/menu/index.vue
index 950bd6084..531f33214 100644
--- a/fuintAdmin/src/views/system/menu/index.vue
+++ b/fuintAdmin/src/views/system/menu/index.vue
@@ -340,3 +340,11 @@ export default {
}
};
+
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftCategoryController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftCategoryController.java
new file mode 100644
index 000000000..31d76ec3a
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftCategoryController.java
@@ -0,0 +1,94 @@
+package com.fuint.business.integral.controller;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import com.fuint.business.integral.service.IntegralGiftCategoryService;
+import com.fuint.business.petrolStationManagement.entity.OilGun;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.data.domain.Page;
+import org.springframework.data.domain.PageRequest;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+/**
+ * 礼品分类表(IntegralGiftCategory)表控制层
+ *
+ * @author makejava
+ * @since 2023-11-02 09:46:46
+ */
+@RestController
+@RequestMapping("business/integral/integralGiftCategory")
+public class IntegralGiftCategoryController extends BaseController {
+ /**
+ * 服务对象
+ */
+ @Resource
+ private IntegralGiftCategoryService integralGiftCategoryService;
+
+ /**
+ * 分页查询
+ *
+ * @param integralGiftCategory 筛选条件
+ * @param pageRequest 分页对象
+ * @return 查询结果
+ */
+ @GetMapping("queryByPage")
+ public ResponseObject queryByPage(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
+ @Param("integralGiftCategory") IntegralGiftCategory integralGiftCategory) {
+ com.baomidou.mybatisplus.extension.plugins.pagination.Page page = new com.baomidou.mybatisplus.extension.plugins.pagination.Page(pageNo, pageSize);
+ IPage integralGiftCategoryIPage = this.integralGiftCategoryService.queryByPage(page, integralGiftCategory);
+ return getSuccessResult(integralGiftCategoryIPage);
+ }
+
+ /**
+ * 通过主键查询单条数据
+ *
+ * @param id 主键
+ * @return 单条数据
+ */
+ @GetMapping("{id}")
+ public ResponseObject queryById(@PathVariable("id") Integer id) {
+ return getSuccessResult(this.integralGiftCategoryService.queryById(id));
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param integralGiftCategory 实体
+ * @return 新增结果
+ */
+ @PostMapping
+ public ResponseObject add(@RequestBody IntegralGiftCategory integralGiftCategory) {
+ return getSuccessResult(this.integralGiftCategoryService.insert(integralGiftCategory));
+ }
+
+ /**
+ * 编辑数据
+ *
+ * @param integralGiftCategory 实体
+ * @return 编辑结果
+ */
+ @PutMapping
+ public ResponseObject edit(@RequestBody IntegralGiftCategory integralGiftCategory) {
+ return getSuccessResult(this.integralGiftCategoryService.update(integralGiftCategory));
+ }
+
+ /**
+ * 删除数据
+ *
+ * @param id 主键
+ * @return 删除是否成功
+ */
+ @DeleteMapping
+ public ResponseObject deleteById(Integer id) {
+ return getSuccessResult(this.integralGiftCategoryService.deleteById(id));
+ }
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftController.java
new file mode 100644
index 000000000..39935b43c
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralGiftController.java
@@ -0,0 +1,92 @@
+package com.fuint.business.integral.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.fuint.business.integral.entity.IntegralGift;
+import com.fuint.business.integral.service.IntegralGiftService;
+import com.fuint.business.integral.vo.IntegralGiftVO;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.apache.ibatis.annotations.Param;
+
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+/**
+ * (IntegralGift)表控制层
+ *
+ * @author makejava
+ * @since 2023-11-02 14:18:52
+ */
+@RestController
+@RequestMapping("integralGift")
+public class IntegralGiftController extends BaseController {
+ /**
+ * 服务对象
+ */
+ @Resource
+ private IntegralGiftService integralGiftService;
+
+ /**
+ * 分页查询
+ *
+ * @param integralGift 筛选条件
+ * @param pageNo 分页对象
+ * @return 查询结果
+ */
+ @GetMapping("queryByPage")
+ public ResponseObject queryByPage(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
+ @Param("integralGiftCategory") IntegralGift integralGift) {
+ com.baomidou.mybatisplus.extension.plugins.pagination.Page page = new com.baomidou.mybatisplus.extension.plugins.pagination.Page(pageNo, pageSize);
+ IPage integralGiftCategoryIPage = this.integralGiftService.queryByPage(page, integralGift);
+ return getSuccessResult(integralGiftCategoryIPage);
+ }
+
+
+ /**
+ * 通过主键查询单条数据
+ *
+ * @param id 主键
+ * @return 单条数据
+ */
+ @GetMapping("{id}")
+ public ResponseObject queryById(@PathVariable("id") Integer id) {
+ return getSuccessResult(this.integralGiftService.queryById(id));
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param integralGift 实体
+ * @return 新增结果
+ */
+ @PostMapping
+ public ResponseObject add(@RequestBody IntegralGift integralGift) {
+ return getSuccessResult(this.integralGiftService.insert(integralGift));
+ }
+
+ /**
+ * 编辑数据
+ *
+ * @param integralGift 实体
+ * @return 编辑结果
+ */
+ @PutMapping
+ public ResponseObject edit(@RequestBody IntegralGift integralGift) {
+ return getSuccessResult(this.integralGiftService.update(integralGift));
+ }
+
+ /**
+ * 删除数据
+ *
+ * @param id 主键
+ * @return 删除是否成功
+ */
+ @DeleteMapping
+ public ResponseObject deleteById(Integer id) {
+ return getSuccessResult(this.integralGiftService.deleteById(id));
+ }
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGift.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGift.java
new file mode 100644
index 000000000..462563354
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGift.java
@@ -0,0 +1,377 @@
+package com.fuint.business.integral.entity;
+
+import java.util.Date;
+import java.io.Serializable;
+
+/**
+ * (IntegralGift)实体类
+ *
+ * @author makejava
+ * @since 2023-11-02 14:18:52
+ */
+public class IntegralGift implements Serializable {
+ private static final long serialVersionUID = -94300211865653814L;
+ /**
+ * 礼品ID
+ */
+ private Integer id;
+ /**
+ * 礼品名称
+ */
+ private String giftName;
+ /**
+ * 分类ID
+ */
+ private Integer categoryId;
+ /**
+ * 封面图
+ */
+ private String coverImage;
+ /**
+ * 礼品图片
+ */
+ private String giftImages;
+ /**
+ * 礼品类型
+ */
+ private String giftType;
+ /**
+ * 优惠券ID
+ */
+ private Integer couponId;
+ /**
+ * 兑换券ID
+ */
+ private Integer voucherId;
+ /**
+ * 关联商品ID
+ */
+ private Integer goodsId;
+ /**
+ * 礼品数量
+ */
+ private Integer giftQuantity;
+ /**
+ * 礼品总库存
+ */
+ private Integer totalInventory;
+ /**
+ * 礼品剩余库存
+ */
+ private Integer remainingInventory;
+ /**
+ * 商家卡券
+ */
+ private Integer merchantCouponId;
+ /**
+ * 兑换方式
+ */
+ private String exchangeMethod;
+ /**
+ * 兑换积分
+ */
+ private Integer exchangePoints;
+ /**
+ * 加钱比例
+ */
+ private Double moneyRatio;
+ /**
+ * 兑换金额
+ */
+ private Double exchangeAmount;
+ /**
+ * 兑换加油金
+ */
+ private Double exchangeFuelAmount;
+ /**
+ * 配送方式
+ */
+ private String deliveryMethod;
+ /**
+ * 快递运费
+ */
+ private Double expressShippingFee;
+ /**
+ * 运费金额
+ */
+ private Double shippingFeeAmount;
+ /**
+ * 兑换次数
+ */
+ private Integer exchangeTimes;
+ /**
+ * 礼品排序
+ */
+ private Integer sort;
+ /**
+ * 礼品状态
+ */
+ private String status;
+ /**
+ * 图文详情
+ */
+ private String detailedDescription;
+ /**
+ * 店铺ID
+ */
+ private Integer storeId;
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+ /**
+ * 创建人
+ */
+ private Integer createBy;
+ /**
+ * 更新人
+ */
+ private Integer updateBy;
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getGiftName() {
+ return giftName;
+ }
+
+ public void setGiftName(String giftName) {
+ this.giftName = giftName;
+ }
+
+ public Integer getCategoryId() {
+ return categoryId;
+ }
+
+ public void setCategoryId(Integer categoryId) {
+ this.categoryId = categoryId;
+ }
+
+ public String getCoverImage() {
+ return coverImage;
+ }
+
+ public void setCoverImage(String coverImage) {
+ this.coverImage = coverImage;
+ }
+
+ public String getGiftImages() {
+ return giftImages;
+ }
+
+ public void setGiftImages(String giftImages) {
+ this.giftImages = giftImages;
+ }
+
+ public String getGiftType() {
+ return giftType;
+ }
+
+ public void setGiftType(String giftType) {
+ this.giftType = giftType;
+ }
+
+ public Integer getCouponId() {
+ return couponId;
+ }
+
+ public void setCouponId(Integer couponId) {
+ this.couponId = couponId;
+ }
+
+ public Integer getVoucherId() {
+ return voucherId;
+ }
+
+ public void setVoucherId(Integer voucherId) {
+ this.voucherId = voucherId;
+ }
+
+ public Integer getGoodsId() {
+ return goodsId;
+ }
+
+ public void setGoodsId(Integer goodsId) {
+ this.goodsId = goodsId;
+ }
+
+ public Integer getGiftQuantity() {
+ return giftQuantity;
+ }
+
+ public void setGiftQuantity(Integer giftQuantity) {
+ this.giftQuantity = giftQuantity;
+ }
+
+ public Integer getTotalInventory() {
+ return totalInventory;
+ }
+
+ public void setTotalInventory(Integer totalInventory) {
+ this.totalInventory = totalInventory;
+ }
+
+ public Integer getRemainingInventory() {
+ return remainingInventory;
+ }
+
+ public void setRemainingInventory(Integer remainingInventory) {
+ this.remainingInventory = remainingInventory;
+ }
+
+ public Integer getMerchantCouponId() {
+ return merchantCouponId;
+ }
+
+ public void setMerchantCouponId(Integer merchantCouponId) {
+ this.merchantCouponId = merchantCouponId;
+ }
+
+ public String getExchangeMethod() {
+ return exchangeMethod;
+ }
+
+ public void setExchangeMethod(String exchangeMethod) {
+ this.exchangeMethod = exchangeMethod;
+ }
+
+ public Integer getExchangePoints() {
+ return exchangePoints;
+ }
+
+ public void setExchangePoints(Integer exchangePoints) {
+ this.exchangePoints = exchangePoints;
+ }
+
+ public Double getMoneyRatio() {
+ return moneyRatio;
+ }
+
+ public void setMoneyRatio(Double moneyRatio) {
+ this.moneyRatio = moneyRatio;
+ }
+
+ public Double getExchangeAmount() {
+ return exchangeAmount;
+ }
+
+ public void setExchangeAmount(Double exchangeAmount) {
+ this.exchangeAmount = exchangeAmount;
+ }
+
+ public Double getExchangeFuelAmount() {
+ return exchangeFuelAmount;
+ }
+
+ public void setExchangeFuelAmount(Double exchangeFuelAmount) {
+ this.exchangeFuelAmount = exchangeFuelAmount;
+ }
+
+ public String getDeliveryMethod() {
+ return deliveryMethod;
+ }
+
+ public void setDeliveryMethod(String deliveryMethod) {
+ this.deliveryMethod = deliveryMethod;
+ }
+
+ public Double getExpressShippingFee() {
+ return expressShippingFee;
+ }
+
+ public void setExpressShippingFee(Double expressShippingFee) {
+ this.expressShippingFee = expressShippingFee;
+ }
+
+ public Double getShippingFeeAmount() {
+ return shippingFeeAmount;
+ }
+
+ public void setShippingFeeAmount(Double shippingFeeAmount) {
+ this.shippingFeeAmount = shippingFeeAmount;
+ }
+
+ public Integer getExchangeTimes() {
+ return exchangeTimes;
+ }
+
+ public void setExchangeTimes(Integer exchangeTimes) {
+ this.exchangeTimes = exchangeTimes;
+ }
+
+ public Integer getSort() {
+ return sort;
+ }
+
+ public void setSort(Integer sort) {
+ this.sort = sort;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getDetailedDescription() {
+ return detailedDescription;
+ }
+
+ public void setDetailedDescription(String detailedDescription) {
+ this.detailedDescription = detailedDescription;
+ }
+
+ public Integer getStoreId() {
+ return storeId;
+ }
+
+ public void setStoreId(Integer storeId) {
+ this.storeId = storeId;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public Integer getCreateBy() {
+ return createBy;
+ }
+
+ public void setCreateBy(Integer createBy) {
+ this.createBy = createBy;
+ }
+
+ public Integer getUpdateBy() {
+ return updateBy;
+ }
+
+ public void setUpdateBy(Integer updateBy) {
+ this.updateBy = updateBy;
+ }
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGiftCategory.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGiftCategory.java
new file mode 100644
index 000000000..1d03afa0d
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/entity/IntegralGiftCategory.java
@@ -0,0 +1,40 @@
+package com.fuint.business.integral.entity;
+
+import com.fuint.repository.model.base.BaseEntity;
+import lombok.Data;
+
+import java.util.Date;
+import java.io.Serializable;
+
+/**
+ * 礼品分类表(IntegralGiftCategory)实体类
+ *
+ * @author makejava
+ * @since 2023-11-02 09:46:56
+ */
+@Data
+public class IntegralGiftCategory extends BaseEntity {
+ private static final long serialVersionUID = 550461931964672244L;
+ /**
+ * 礼品分类id
+ */
+ private Integer id;
+ /**
+ * 分类名称
+ */
+ private String categoryName;
+ /**
+ * 排序
+ */
+ private Integer sort;
+ /**
+ * 状态
+ */
+ private String status;
+ /**
+ * 店铺ID
+ */
+ private Integer storeId;
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftCategoryMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftCategoryMapper.java
new file mode 100644
index 000000000..8231fe547
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftCategoryMapper.java
@@ -0,0 +1,85 @@
+package com.fuint.business.integral.mapper;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 礼品分类表(IntegralGiftCategory)表数据库访问层
+ *
+ * @author makejava
+ * @since 2023-11-02 09:46:54
+ */
+public interface IntegralGiftCategoryMapper {
+
+ /**
+ * 通过ID查询单条数据
+ *
+ * @param id 主键
+ * @return 实例对象
+ */
+ IntegralGiftCategory queryById(Integer id);
+
+ /**
+ * 查询指定行数据
+ *
+ * @param integralGiftCategory 查询条件
+ * @param 分页对象
+ * @return 对象列表
+ */
+ IPage queryAllByLimit(@Param("page") Page page, @Param("integralGiftCategory") IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 统计总行数
+ *
+ * @param integralGiftCategory 查询条件
+ * @return 总行数
+ */
+ long count(IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 新增数据
+ *
+ * @param integralGiftCategory 实例对象
+ * @return 影响行数
+ */
+ int insert(IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 批量新增数据(MyBatis原生foreach方法)
+ *
+ * @param entities List 实例对象列表
+ * @return 影响行数
+ */
+ int insertBatch(@Param("entities") List entities);
+
+ /**
+ * 批量新增或按主键更新数据(MyBatis原生foreach方法)
+ *
+ * @param entities List 实例对象列表
+ * @return 影响行数
+ * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
+ */
+ int insertOrUpdateBatch(@Param("entities") List entities);
+
+ /**
+ * 修改数据
+ *
+ * @param integralGiftCategory 实例对象
+ * @return 影响行数
+ */
+ int update(IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 通过主键删除数据
+ *
+ * @param id 主键
+ * @return 影响行数
+ */
+ int deleteById(Integer id);
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftMapper.java
new file mode 100644
index 000000000..36b0aaa52
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/IntegralGiftMapper.java
@@ -0,0 +1,87 @@
+package com.fuint.business.integral.mapper;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.integral.entity.IntegralGift;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import com.fuint.business.integral.vo.IntegralGiftVO;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.data.domain.Pageable;
+import java.util.List;
+
+/**
+ * (IntegralGift)表数据库访问层
+ *
+ * @author makejava
+ * @since 2023-11-02 14:18:52
+ */
+public interface IntegralGiftMapper {
+
+ /**
+ * 通过ID查询单条数据
+ *
+ * @param id 主键
+ * @return 实例对象
+ */
+ IntegralGift queryById(Integer id);
+
+ /**
+ * 查询指定行数据
+ *
+ * @param integralGift 查询条件
+ * @param page 分页对象
+ * @return 对象列表
+ */
+ IPage queryAllByLimit(@Param("page") Page page, @Param("integralGift") IntegralGift integralGift);
+
+ /**
+ * 统计总行数
+ *
+ * @param integralGift 查询条件
+ * @return 总行数
+ */
+ long count(IntegralGift integralGift);
+
+ /**
+ * 新增数据
+ *
+ * @param integralGift 实例对象
+ * @return 影响行数
+ */
+ int insert(IntegralGift integralGift);
+
+ /**
+ * 批量新增数据(MyBatis原生foreach方法)
+ *
+ * @param entities List 实例对象列表
+ * @return 影响行数
+ */
+ int insertBatch(@Param("entities") List entities);
+
+ /**
+ * 批量新增或按主键更新数据(MyBatis原生foreach方法)
+ *
+ * @param entities List 实例对象列表
+ * @return 影响行数
+ * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
+ */
+ int insertOrUpdateBatch(@Param("entities") List entities);
+
+ /**
+ * 修改数据
+ *
+ * @param integralGift 实例对象
+ * @return 影响行数
+ */
+ int update(IntegralGift integralGift);
+
+ /**
+ * 通过主键删除数据
+ *
+ * @param id 主键
+ * @return 影响行数
+ */
+ int deleteById(Integer id);
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftCategoryMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftCategoryMapper.xml
new file mode 100644
index 000000000..293b87861
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftCategoryMapper.xml
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ insert into integral_gift_category(category_name, sort, status, store_id, create_time, update_time, create_by, update_by)
+ values (#{categoryName}, #{sort}, #{status}, #{storeId}, #{createTime}, #{createTime}, #{createBy}, #{updateBy})
+
+
+
+ insert into integral_gift_category(category_name, sort, status, store_id, create_time, update_time, create_by, update_by)
+ values
+
+ (#{entity.categoryName}, #{entity.sort}, #{entity.status}, #{entity.storeId}, #{entity.createTime}, #{entity.updateTime}, #{entity.createBy}, #{entity.updateBy})
+
+
+
+
+ insert into integral_gift_category(category_name, sort, status, store_id, create_time, update_time, create_by, update_by)
+ values
+
+ (#{entity.categoryName}, #{entity.sort}, #{entity.status}, #{entity.storeId}, #{entity.createTime}, #{entity.updateTime}, #{entity.createBy}, #{entity.updateBy})
+
+ on duplicate key update
+ category_name = values(category_name),
+ sort = values(sort),
+ status = values(status),
+ store_id = values(store_id),
+ create_time = values(create_time),
+ update_time = values(update_time),
+ create_by = values(create_by),
+ update_by = values(update_by)
+
+
+
+
+ update integral_gift_category
+
+
+ category_name = #{categoryName},
+
+
+ sort = #{sort},
+
+
+ status = #{status},
+
+
+ store_id = #{storeId},
+
+
+ create_time = #{createTime},
+
+
+ update_time = #{updateTime},
+
+
+ create_by = #{createBy},
+
+
+ update_by = #{updateBy},
+
+
+ where id = #{id}
+
+
+
+
+ delete from integral_gift_category where id = #{id}
+
+
+
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml
new file mode 100644
index 000000000..7809df371
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml
@@ -0,0 +1,400 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ insert into integral_gift(gift_name, category_id, cover_image, gift_images, gift_type, coupon_id, voucher_id, goods_id, gift_quantity, total_inventory, remaining_inventory, merchant_coupon_id, exchange_method, exchange_points, money_ratio, exchange_amount, exchange_fuel_amount, delivery_method, express_shipping_fee, shipping_fee_amount, exchange_times, sort, status, detailed_description, store_id, create_time, update_time, create_by, update_by)
+ values (#{giftName}, #{categoryId}, #{coverImage}, #{giftImages}, #{giftType}, #{couponId}, #{voucherId}, #{goodsId}, #{giftQuantity}, #{totalInventory}, #{remainingInventory}, #{merchantCouponId}, #{exchangeMethod}, #{exchangePoints}, #{moneyRatio}, #{exchangeAmount}, #{exchangeFuelAmount}, #{deliveryMethod}, #{expressShippingFee}, #{shippingFeeAmount}, #{exchangeTimes}, #{sort}, #{status}, #{detailedDescription}, #{storeId}, #{createTime}, #{updateTime}, #{createBy}, #{updateBy})
+
+
+
+ insert into integral_gift(gift_name, category_id, cover_image, gift_images, gift_type, coupon_id, voucher_id, goods_id, gift_quantity, total_inventory, remaining_inventory, merchant_coupon_id, exchange_method, exchange_points, money_ratio, exchange_amount, exchange_fuel_amount, delivery_method, express_shipping_fee, shipping_fee_amount, exchange_times, sort, status, detailed_description, store_id, create_time, update_time, create_by, update_by)
+ values
+
+ (#{entity.giftName}, #{entity.categoryId}, #{entity.coverImage}, #{entity.giftImages}, #{entity.giftType}, #{entity.couponId}, #{entity.voucherId}, #{entity.goodsId}, #{entity.giftQuantity}, #{entity.totalInventory}, #{entity.remainingInventory}, #{entity.merchantCouponId}, #{entity.exchangeMethod}, #{entity.exchangePoints}, #{entity.moneyRatio}, #{entity.exchangeAmount}, #{entity.exchangeFuelAmount}, #{entity.deliveryMethod}, #{entity.expressShippingFee}, #{entity.shippingFeeAmount}, #{entity.exchangeTimes}, #{entity.sort}, #{entity.status}, #{entity.detailedDescription}, #{entity.storeId}, #{entity.createTime}, #{entity.updateTime}, #{entity.createBy}, #{entity.updateBy})
+
+
+
+
+ insert into integral_gift(gift_name, category_id, cover_image, gift_images, gift_type, coupon_id, voucher_id, goods_id, gift_quantity, total_inventory, remaining_inventory, merchant_coupon_id, exchange_method, exchange_points, money_ratio, exchange_amount, exchange_fuel_amount, delivery_method, express_shipping_fee, shipping_fee_amount, exchange_times, sort, status, detailed_description, store_id, create_time, update_time, create_by, update_by)
+ values
+
+ (#{entity.giftName}, #{entity.categoryId}, #{entity.coverImage}, #{entity.giftImages}, #{entity.giftType}, #{entity.couponId}, #{entity.voucherId}, #{entity.goodsId}, #{entity.giftQuantity}, #{entity.totalInventory}, #{entity.remainingInventory}, #{entity.merchantCouponId}, #{entity.exchangeMethod}, #{entity.exchangePoints}, #{entity.moneyRatio}, #{entity.exchangeAmount}, #{entity.exchangeFuelAmount}, #{entity.deliveryMethod}, #{entity.expressShippingFee}, #{entity.shippingFeeAmount}, #{entity.exchangeTimes}, #{entity.sort}, #{entity.status}, #{entity.detailedDescription}, #{entity.storeId}, #{entity.createTime}, #{entity.updateTime}, #{entity.createBy}, #{entity.updateBy})
+
+ on duplicate key update
+ gift_name = values(gift_name),
+ category_id = values(category_id),
+ cover_image = values(cover_image),
+ gift_images = values(gift_images),
+ gift_type = values(gift_type),
+ coupon_id = values(coupon_id),
+ voucher_id = values(voucher_id),
+ goods_id = values(goods_id),
+ gift_quantity = values(gift_quantity),
+ total_inventory = values(total_inventory),
+ remaining_inventory = values(remaining_inventory),
+ merchant_coupon_id = values(merchant_coupon_id),
+ exchange_method = values(exchange_method),
+ exchange_points = values(exchange_points),
+ money_ratio = values(money_ratio),
+ exchange_amount = values(exchange_amount),
+ exchange_fuel_amount = values(exchange_fuel_amount),
+ delivery_method = values(delivery_method),
+ express_shipping_fee = values(express_shipping_fee),
+ shipping_fee_amount = values(shipping_fee_amount),
+ exchange_times = values(exchange_times),
+ sort = values(sort),
+ status = values(status),
+ detailed_description = values(detailed_description),
+ store_id = values(store_id),
+ create_time = values(create_time),
+ update_time = values(update_time),
+ create_by = values(create_by),
+ update_by = values(update_by)
+
+
+
+
+ update integral_gift
+
+
+ gift_name = #{giftName},
+
+
+ category_id = #{categoryId},
+
+
+ cover_image = #{coverImage},
+
+
+ gift_images = #{giftImages},
+
+
+ gift_type = #{giftType},
+
+
+ coupon_id = #{couponId},
+
+
+ voucher_id = #{voucherId},
+
+
+ goods_id = #{goodsId},
+
+
+ gift_quantity = #{giftQuantity},
+
+
+ total_inventory = #{totalInventory},
+
+
+ remaining_inventory = #{remainingInventory},
+
+
+ merchant_coupon_id = #{merchantCouponId},
+
+
+ exchange_method = #{exchangeMethod},
+
+
+ exchange_points = #{exchangePoints},
+
+
+ money_ratio = #{moneyRatio},
+
+
+ exchange_amount = #{exchangeAmount},
+
+
+ exchange_fuel_amount = #{exchangeFuelAmount},
+
+
+ delivery_method = #{deliveryMethod},
+
+
+ express_shipping_fee = #{expressShippingFee},
+
+
+ shipping_fee_amount = #{shippingFeeAmount},
+
+
+ exchange_times = #{exchangeTimes},
+
+
+ sort = #{sort},
+
+
+ status = #{status},
+
+
+ detailed_description = #{detailedDescription},
+
+
+ store_id = #{storeId},
+
+
+ create_time = #{createTime},
+
+
+ update_time = #{updateTime},
+
+
+ create_by = #{createBy},
+
+
+ update_by = #{updateBy},
+
+
+ where id = #{id}
+
+
+
+
+ delete from integral_gift where id = #{id}
+
+
+
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftCategoryService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftCategoryService.java
new file mode 100644
index 000000000..bc91505ff
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftCategoryService.java
@@ -0,0 +1,57 @@
+package com.fuint.business.integral.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 礼品分类表(IntegralGiftCategory)表服务接口
+ *
+ * @author makejava
+ * @since 2023-11-02 09:46:57
+ */
+public interface IntegralGiftCategoryService {
+
+ /**
+ * 通过ID查询单条数据
+ *
+ * @param id 主键
+ * @return 实例对象
+ */
+ IntegralGiftCategory queryById(Integer id);
+
+ /**
+ * 分页查询
+ *
+ * @param integralGiftCategory 筛选条件
+ * @param page 分页对象
+ * @return 查询结果
+ */
+ IPage queryByPage(@Param("page") Page page, @Param("integralGiftCategory") IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 新增数据
+ *
+ * @param integralGiftCategory 实例对象
+ * @return 实例对象
+ */
+ IntegralGiftCategory insert(IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 修改数据
+ *
+ * @param integralGiftCategory 实例对象
+ * @return 实例对象
+ */
+ IntegralGiftCategory update(IntegralGiftCategory integralGiftCategory);
+
+ /**
+ * 通过主键删除数据
+ *
+ * @param id 主键
+ * @return 是否成功
+ */
+ boolean deleteById(Integer id);
+
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftService.java
new file mode 100644
index 000000000..e2206e8e7
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/IntegralGiftService.java
@@ -0,0 +1,60 @@
+package com.fuint.business.integral.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.fuint.business.integral.entity.IntegralGift;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import com.fuint.business.integral.vo.IntegralGiftVO;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.data.domain.Page;
+import org.springframework.data.domain.PageRequest;
+
+/**
+ * (IntegralGift)表服务接口
+ *
+ * @author makejava
+ * @since 2023-11-02 14:18:52
+ */
+public interface IntegralGiftService {
+
+ /**
+ * 通过ID查询单条数据
+ *
+ * @param id 主键
+ * @return 实例对象
+ */
+ IntegralGift queryById(Integer id);
+
+ /**
+ * 分页查询
+ *
+ * @param integralGift 筛选条件
+ * @param page 分页对象
+ * @return 查询结果
+ */
+ IPage queryByPage(@Param("page") com.baomidou.mybatisplus.extension.plugins.pagination.Page page, @Param("integralGift") IntegralGift integralGift);
+
+ /**
+ * 新增数据
+ *
+ * @param integralGift 实例对象
+ * @return 实例对象
+ */
+ IntegralGift insert(IntegralGift integralGift);
+
+ /**
+ * 修改数据
+ *
+ * @param integralGift 实例对象
+ * @return 实例对象
+ */
+ IntegralGift update(IntegralGift integralGift);
+
+ /**
+ * 通过主键删除数据
+ *
+ * @param id 主键
+ * @return 是否成功
+ */
+ boolean deleteById(Integer id);
+
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftCategoryServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftCategoryServiceImpl.java
new file mode 100644
index 000000000..52cdfd4f8
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftCategoryServiceImpl.java
@@ -0,0 +1,89 @@
+package com.fuint.business.integral.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import com.fuint.business.integral.mapper.IntegralGiftCategoryMapper;
+import com.fuint.business.integral.service.IntegralGiftCategoryService;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+
+/**
+ * 礼品分类表(IntegralGiftCategory)表服务实现类
+ *
+ * @author makejava
+ * @since 2023-11-02 09:46:58
+ */
+@Service("integralGiftCategoryService")
+public class IntegralGiftCategoryServiceImpl implements IntegralGiftCategoryService {
+ @Resource
+ private IntegralGiftCategoryMapper integralGiftCategoryDao;
+
+ /**
+ * 通过ID查询单条数据
+ *
+ * @param id 主键
+ * @return 实例对象
+ */
+ @Override
+ public IntegralGiftCategory queryById(Integer id) {
+ return this.integralGiftCategoryDao.queryById(id);
+ }
+
+ /**
+ * 分页查询
+ *
+ * @param integralGiftCategory 筛选条件
+ * @param pageRequest 分页对象
+ * @return 查询结果
+ */
+ @Override
+ public IPage queryByPage(@Param("page") Page page, @Param("integralGiftCategory") IntegralGiftCategory integralGiftCategory) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ integralGiftCategory.setStoreId(nowAccountInfo.getStoreId());
+ return integralGiftCategoryDao.queryAllByLimit(page, integralGiftCategory);
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param integralGiftCategory 实例对象
+ * @return 实例对象
+ */
+ @Override
+ public IntegralGiftCategory insert(IntegralGiftCategory integralGiftCategory) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ integralGiftCategory.setStoreId(nowAccountInfo.getStoreId());
+ integralGiftCategory.setCreateBy(nowAccountInfo.getStaffId().toString());
+
+ this.integralGiftCategoryDao.insert(integralGiftCategory);
+ return integralGiftCategory;
+ }
+
+ /**
+ * 修改数据
+ *
+ * @param integralGiftCategory 实例对象
+ * @return 实例对象
+ */
+ @Override
+ public IntegralGiftCategory update(IntegralGiftCategory integralGiftCategory) {
+ this.integralGiftCategoryDao.update(integralGiftCategory);
+ return this.queryById(integralGiftCategory.getId());
+ }
+
+ /**
+ * 通过主键删除数据
+ *
+ * @param id 主键
+ * @return 是否成功
+ */
+ @Override
+ public boolean deleteById(Integer id) {
+ return this.integralGiftCategoryDao.deleteById(id) > 0;
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftServiceImpl.java
new file mode 100644
index 000000000..a4d821bf0
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralGiftServiceImpl.java
@@ -0,0 +1,89 @@
+package com.fuint.business.integral.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.fuint.business.integral.entity.IntegralGift;
+import com.fuint.business.integral.entity.IntegralGiftCategory;
+import com.fuint.business.integral.mapper.IntegralGiftMapper;
+import com.fuint.business.integral.service.IntegralGiftService;
+import com.fuint.business.integral.vo.IntegralGiftVO;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Service;
+import org.springframework.data.domain.Page;
+import org.springframework.data.domain.PageImpl;
+import org.springframework.data.domain.PageRequest;
+
+import javax.annotation.Resource;
+
+/**
+ * (IntegralGift)表服务实现类
+ *
+ * @author makejava
+ * @since 2023-11-02 14:18:52
+ */
+@Service("integralGiftService")
+public class IntegralGiftServiceImpl implements IntegralGiftService {
+ @Resource
+ private IntegralGiftMapper integralGiftDao;
+
+ /**
+ * 通过ID查询单条数据
+ *
+ * @param id 主键
+ * @return 实例对象
+ */
+ @Override
+ public IntegralGift queryById(Integer id) {
+ return this.integralGiftDao.queryById(id);
+ }
+
+ /**
+ * 分页查询
+ *
+ * @param integralGift 筛选条件
+ * @param page 分页对象
+ * @return 查询结果
+ */
+ @Override
+ public IPage queryByPage(@Param("page") com.baomidou.mybatisplus.extension.plugins.pagination.Page page, @Param("integralGiftCategory") IntegralGift integralGift) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ integralGift.setStoreId(nowAccountInfo.getStoreId());
+ return integralGiftDao.queryAllByLimit(page, integralGift);
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param integralGift 实例对象
+ * @return 实例对象
+ */
+ @Override
+ public IntegralGift insert(IntegralGift integralGift) {
+ this.integralGiftDao.insert(integralGift);
+ return integralGift;
+ }
+
+ /**
+ * 修改数据
+ *
+ * @param integralGift 实例对象
+ * @return 实例对象
+ */
+ @Override
+ public IntegralGift update(IntegralGift integralGift) {
+ this.integralGiftDao.update(integralGift);
+ return this.queryById(integralGift.getId());
+ }
+
+ /**
+ * 通过主键删除数据
+ *
+ * @param id 主键
+ * @return 是否成功
+ */
+ @Override
+ public boolean deleteById(Integer id) {
+ return this.integralGiftDao.deleteById(id) > 0;
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/vo/IntegralGiftVO.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/vo/IntegralGiftVO.java
new file mode 100644
index 000000000..5126cdcc8
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/vo/IntegralGiftVO.java
@@ -0,0 +1,10 @@
+package com.fuint.business.integral.vo;
+
+import com.fuint.business.integral.entity.IntegralGift;
+import lombok.Data;
+
+@Data
+public class IntegralGiftVO extends IntegralGift {
+ // 商品
+ // 优惠卷
+}