parent
eb38377dfb
commit
05054cef87
@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponEntity" id="couponMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="couponType" column="coupon_type"/>
|
|
||||||
<result property="couponImg" column="coupon_img"/>
|
|
||||||
<result property="couponName" column="coupon_name"/>
|
|
||||||
<result property="num" column="num"/>
|
|
||||||
<result property="amount" column="amount"/>
|
|
||||||
<result property="perLimit" column="per_limit"/>
|
|
||||||
<result property="minPoint" column="min_point"/>
|
|
||||||
<result property="startTime" column="start_time"/>
|
|
||||||
<result property="endTime" column="end_time"/>
|
|
||||||
<result property="useType" column="use_type"/>
|
|
||||||
<result property="note" column="note"/>
|
|
||||||
<result property="publishCount" column="publish_count"/>
|
|
||||||
<result property="useCount" column="use_count"/>
|
|
||||||
<result property="receiveCount" column="receive_count"/>
|
|
||||||
<result property="enableStartTime" column="enable_start_time"/>
|
|
||||||
<result property="enableEndTime" column="enable_end_time"/>
|
|
||||||
<result property="code" column="code"/>
|
|
||||||
<result property="memberLevel" column="member_level"/>
|
|
||||||
<result property="publish" column="publish"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponHistoryDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponHistoryEntity" id="couponHistoryMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="couponId" column="coupon_id"/>
|
|
||||||
<result property="memberId" column="member_id"/>
|
|
||||||
<result property="memberNickName" column="member_nick_name"/>
|
|
||||||
<result property="getType" column="get_type"/>
|
|
||||||
<result property="createTime" column="create_time"/>
|
|
||||||
<result property="useType" column="use_type"/>
|
|
||||||
<result property="useTime" column="use_time"/>
|
|
||||||
<result property="orderId" column="order_id"/>
|
|
||||||
<result property="orderSn" column="order_sn"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponSpuCategoryRelationDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponSpuCategoryRelationEntity" id="couponSpuCategoryRelationMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="couponId" column="coupon_id"/>
|
|
||||||
<result property="categoryId" column="category_id"/>
|
|
||||||
<result property="categoryName" column="category_name"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.HomeAdvDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.HomeAdvEntity" id="homeAdvMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="name" column="name"/>
|
|
||||||
<result property="pic" column="pic"/>
|
|
||||||
<result property="startTime" column="start_time"/>
|
|
||||||
<result property="endTime" column="end_time"/>
|
|
||||||
<result property="status" column="status"/>
|
|
||||||
<result property="clickCount" column="click_count"/>
|
|
||||||
<result property="url" column="url"/>
|
|
||||||
<result property="note" column="note"/>
|
|
||||||
<result property="sort" column="sort"/>
|
|
||||||
<result property="publisherId" column="publisher_id"/>
|
|
||||||
<result property="authId" column="auth_id"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.HomeSubjectDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.HomeSubjectEntity" id="homeSubjectMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="name" column="name"/>
|
|
||||||
<result property="title" column="title"/>
|
|
||||||
<result property="subTitle" column="sub_title"/>
|
|
||||||
<result property="status" column="status"/>
|
|
||||||
<result property="url" column="url"/>
|
|
||||||
<result property="sort" column="sort"/>
|
|
||||||
<result property="img" column="img"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.HomeSubjectSpuDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.HomeSubjectSpuEntity" id="homeSubjectSpuMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="name" column="name"/>
|
|
||||||
<result property="subjectId" column="subject_id"/>
|
|
||||||
<result property="spuId" column="spu_id"/>
|
|
||||||
<result property="sort" column="sort"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.MemberPriceDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.MemberPriceEntity" id="memberPriceMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="skuId" column="sku_id"/>
|
|
||||||
<result property="memberLevelId" column="member_level_id"/>
|
|
||||||
<result property="memberLevelName" column="member_level_name"/>
|
|
||||||
<result property="memberPrice" column="member_price"/>
|
|
||||||
<result property="addOther" column="add_other"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillPromotionDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillPromotionEntity" id="seckillPromotionMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="title" column="title"/>
|
|
||||||
<result property="startTime" column="start_time"/>
|
|
||||||
<result property="endTime" column="end_time"/>
|
|
||||||
<result property="status" column="status"/>
|
|
||||||
<result property="createTime" column="create_time"/>
|
|
||||||
<result property="userId" column="user_id"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillSkuNoticeDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillSkuNoticeEntity" id="seckillSkuNoticeMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="memberId" column="member_id"/>
|
|
||||||
<result property="skuId" column="sku_id"/>
|
|
||||||
<result property="sessionId" column="session_id"/>
|
|
||||||
<result property="subcribeTime" column="subcribe_time"/>
|
|
||||||
<result property="sendTime" column="send_time"/>
|
|
||||||
<result property="noticeType" column="notice_type"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillSkuRelationDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillSkuRelationEntity" id="seckillSkuRelationMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="promotionId" column="promotion_id"/>
|
|
||||||
<result property="promotionSessionId" column="promotion_session_id"/>
|
|
||||||
<result property="skuId" column="sku_id"/>
|
|
||||||
<result property="seckillPrice" column="seckill_price"/>
|
|
||||||
<result property="seckillCount" column="seckill_count"/>
|
|
||||||
<result property="seckillLimit" column="seckill_limit"/>
|
|
||||||
<result property="seckillSort" column="seckill_sort"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.SkuFullReductionDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.SkuFullReductionEntity" id="skuFullReductionMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="skuId" column="sku_id"/>
|
|
||||||
<result property="fullPrice" column="full_price"/>
|
|
||||||
<result property="reducePrice" column="reduce_price"/>
|
|
||||||
<result property="addOther" column="add_other"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.SkuLadderDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.SkuLadderEntity" id="skuLadderMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="skuId" column="sku_id"/>
|
|
||||||
<result property="fullCount" column="full_count"/>
|
|
||||||
<result property="discount" column="discount"/>
|
|
||||||
<result property="price" column="price"/>
|
|
||||||
<result property="addOther" column="add_other"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.SpuBoundsDao">
|
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.SpuBoundsEntity" id="spuBoundsMap">
|
|
||||||
<result property="id" column="id"/>
|
|
||||||
<result property="spuId" column="spu_id"/>
|
|
||||||
<result property="growBounds" column="grow_bounds"/>
|
|
||||||
<result property="buyBounds" column="buy_bounds"/>
|
|
||||||
<result property="work" column="work"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -1,102 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="优惠券id" prop="couponId">
|
|
||||||
<el-input v-model="dataForm.couponId" placeholder="优惠券id"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="产品分类id" prop="categoryId">
|
|
||||||
<el-input v-model="dataForm.categoryId" placeholder="产品分类id"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="产品分类名称" prop="categoryName">
|
|
||||||
<el-input v-model="dataForm.categoryName" placeholder="产品分类名称"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
couponId: '',
|
|
||||||
categoryId: '',
|
|
||||||
categoryName: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
couponId: [
|
|
||||||
{ required: true, message: '优惠券id不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
categoryId: [
|
|
||||||
{ required: true, message: '产品分类id不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
categoryName: [
|
|
||||||
{ required: true, message: '产品分类名称不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/couponspucategoryrelation/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.couponId = data.couponSpuCategoryRelation.couponId
|
|
||||||
this.dataForm.categoryId = data.couponSpuCategoryRelation.categoryId
|
|
||||||
this.dataForm.categoryName = data.couponSpuCategoryRelation.categoryName
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/couponspucategoryrelation/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'couponId': this.dataForm.couponId,
|
|
||||||
'categoryId': this.dataForm.categoryId,
|
|
||||||
'categoryName': this.dataForm.categoryName
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,175 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="mod-config">
|
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
|
||||||
<el-form-item>
|
|
||||||
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button @click="getDataList()">查询</el-button>
|
|
||||||
<el-button v-if="isAuth('coupon:couponspucategoryrelation:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
|
||||||
<el-button v-if="isAuth('coupon:couponspucategoryrelation:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<el-table
|
|
||||||
:data="dataList"
|
|
||||||
border
|
|
||||||
v-loading="dataListLoading"
|
|
||||||
@selection-change="selectionChangeHandle"
|
|
||||||
style="width: 100%;">
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="50">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="id"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="couponId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="优惠券id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="categoryId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="产品分类id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="categoryName"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="产品分类名称">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
fixed="right"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="150"
|
|
||||||
label="操作">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
|
||||||
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
@size-change="sizeChangeHandle"
|
|
||||||
@current-change="currentChangeHandle"
|
|
||||||
:current-page="pageIndex"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="pageSize"
|
|
||||||
:total="totalPage"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
|
||||||
</el-pagination>
|
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
|
||||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import AddOrUpdate from './couponspucategoryrelation-add-or-update'
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
dataForm: {
|
|
||||||
key: ''
|
|
||||||
},
|
|
||||||
dataList: [],
|
|
||||||
pageIndex: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
totalPage: 0,
|
|
||||||
dataListLoading: false,
|
|
||||||
dataListSelections: [],
|
|
||||||
addOrUpdateVisible: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
AddOrUpdate
|
|
||||||
},
|
|
||||||
activated () {
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 获取数据列表
|
|
||||||
getDataList () {
|
|
||||||
this.dataListLoading = true
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl('/coupon/couponspucategoryrelation/list'),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams({
|
|
||||||
'page': this.pageIndex,
|
|
||||||
'limit': this.pageSize,
|
|
||||||
'key': this.dataForm.key
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataList = data.page.list
|
|
||||||
this.totalPage = data.page.totalCount
|
|
||||||
} else {
|
|
||||||
this.dataList = []
|
|
||||||
this.totalPage = 0
|
|
||||||
}
|
|
||||||
this.dataListLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 每页数
|
|
||||||
sizeChangeHandle (val) {
|
|
||||||
this.pageSize = val
|
|
||||||
this.pageIndex = 1
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 当前页
|
|
||||||
currentChangeHandle (val) {
|
|
||||||
this.pageIndex = val
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 多选
|
|
||||||
selectionChangeHandle (val) {
|
|
||||||
this.dataListSelections = val
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addOrUpdateHandle (id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
deleteHandle (id) {
|
|
||||||
var ids = id ? [id] : this.dataListSelections.map(item => {
|
|
||||||
return item.id
|
|
||||||
})
|
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl('/coupon/couponspucategoryrelation/delete'),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData(ids, false)
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getDataList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,174 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="名字" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" placeholder="名字"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="图片地址" prop="pic">
|
|
||||||
<el-input v-model="dataForm.pic" placeholder="图片地址"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="开始时间" prop="startTime">
|
|
||||||
<el-input v-model="dataForm.startTime" placeholder="开始时间"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="结束时间" prop="endTime">
|
|
||||||
<el-input v-model="dataForm.endTime" placeholder="结束时间"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="状态" prop="status">
|
|
||||||
<el-input v-model="dataForm.status" placeholder="状态"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="点击数" prop="clickCount">
|
|
||||||
<el-input v-model="dataForm.clickCount" placeholder="点击数"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="广告详情连接地址" prop="url">
|
|
||||||
<el-input v-model="dataForm.url" placeholder="广告详情连接地址"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="备注" prop="note">
|
|
||||||
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="排序" prop="sort">
|
|
||||||
<el-input v-model="dataForm.sort" placeholder="排序"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="发布者" prop="publisherId">
|
|
||||||
<el-input v-model="dataForm.publisherId" placeholder="发布者"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="审核者" prop="authId">
|
|
||||||
<el-input v-model="dataForm.authId" placeholder="审核者"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
name: '',
|
|
||||||
pic: '',
|
|
||||||
startTime: '',
|
|
||||||
endTime: '',
|
|
||||||
status: '',
|
|
||||||
clickCount: '',
|
|
||||||
url: '',
|
|
||||||
note: '',
|
|
||||||
sort: '',
|
|
||||||
publisherId: '',
|
|
||||||
authId: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
name: [
|
|
||||||
{ required: true, message: '名字不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
pic: [
|
|
||||||
{ required: true, message: '图片地址不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
startTime: [
|
|
||||||
{ required: true, message: '开始时间不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
endTime: [
|
|
||||||
{ required: true, message: '结束时间不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
status: [
|
|
||||||
{ required: true, message: '状态不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
clickCount: [
|
|
||||||
{ required: true, message: '点击数不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
url: [
|
|
||||||
{ required: true, message: '广告详情连接地址不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
note: [
|
|
||||||
{ required: true, message: '备注不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
sort: [
|
|
||||||
{ required: true, message: '排序不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
publisherId: [
|
|
||||||
{ required: true, message: '发布者不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
authId: [
|
|
||||||
{ required: true, message: '审核者不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/homeadv/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.name = data.homeAdv.name
|
|
||||||
this.dataForm.pic = data.homeAdv.pic
|
|
||||||
this.dataForm.startTime = data.homeAdv.startTime
|
|
||||||
this.dataForm.endTime = data.homeAdv.endTime
|
|
||||||
this.dataForm.status = data.homeAdv.status
|
|
||||||
this.dataForm.clickCount = data.homeAdv.clickCount
|
|
||||||
this.dataForm.url = data.homeAdv.url
|
|
||||||
this.dataForm.note = data.homeAdv.note
|
|
||||||
this.dataForm.sort = data.homeAdv.sort
|
|
||||||
this.dataForm.publisherId = data.homeAdv.publisherId
|
|
||||||
this.dataForm.authId = data.homeAdv.authId
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/homeadv/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'name': this.dataForm.name,
|
|
||||||
'pic': this.dataForm.pic,
|
|
||||||
'startTime': this.dataForm.startTime,
|
|
||||||
'endTime': this.dataForm.endTime,
|
|
||||||
'status': this.dataForm.status,
|
|
||||||
'clickCount': this.dataForm.clickCount,
|
|
||||||
'url': this.dataForm.url,
|
|
||||||
'note': this.dataForm.note,
|
|
||||||
'sort': this.dataForm.sort,
|
|
||||||
'publisherId': this.dataForm.publisherId,
|
|
||||||
'authId': this.dataForm.authId
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,138 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="专题名字" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" placeholder="专题名字"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="专题标题" prop="title">
|
|
||||||
<el-input v-model="dataForm.title" placeholder="专题标题"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="专题副标题" prop="subTitle">
|
|
||||||
<el-input v-model="dataForm.subTitle" placeholder="专题副标题"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="显示状态" prop="status">
|
|
||||||
<el-input v-model="dataForm.status" placeholder="显示状态"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="详情连接" prop="url">
|
|
||||||
<el-input v-model="dataForm.url" placeholder="详情连接"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="排序" prop="sort">
|
|
||||||
<el-input v-model="dataForm.sort" placeholder="排序"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="专题图片地址" prop="img">
|
|
||||||
<el-input v-model="dataForm.img" placeholder="专题图片地址"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
name: '',
|
|
||||||
title: '',
|
|
||||||
subTitle: '',
|
|
||||||
status: '',
|
|
||||||
url: '',
|
|
||||||
sort: '',
|
|
||||||
img: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
name: [
|
|
||||||
{ required: true, message: '专题名字不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
title: [
|
|
||||||
{ required: true, message: '专题标题不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
subTitle: [
|
|
||||||
{ required: true, message: '专题副标题不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
status: [
|
|
||||||
{ required: true, message: '显示状态不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
url: [
|
|
||||||
{ required: true, message: '详情连接不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
sort: [
|
|
||||||
{ required: true, message: '排序不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
img: [
|
|
||||||
{ required: true, message: '专题图片地址不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/homesubject/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.name = data.homeSubject.name
|
|
||||||
this.dataForm.title = data.homeSubject.title
|
|
||||||
this.dataForm.subTitle = data.homeSubject.subTitle
|
|
||||||
this.dataForm.status = data.homeSubject.status
|
|
||||||
this.dataForm.url = data.homeSubject.url
|
|
||||||
this.dataForm.sort = data.homeSubject.sort
|
|
||||||
this.dataForm.img = data.homeSubject.img
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/homesubject/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'name': this.dataForm.name,
|
|
||||||
'title': this.dataForm.title,
|
|
||||||
'subTitle': this.dataForm.subTitle,
|
|
||||||
'status': this.dataForm.status,
|
|
||||||
'url': this.dataForm.url,
|
|
||||||
'sort': this.dataForm.sort,
|
|
||||||
'img': this.dataForm.img
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,181 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="mod-config">
|
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
|
||||||
<el-form-item>
|
|
||||||
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button @click="getDataList()">查询</el-button>
|
|
||||||
<el-button v-if="isAuth('coupon:homesubjectspu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
|
||||||
<el-button v-if="isAuth('coupon:homesubjectspu:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<el-table
|
|
||||||
:data="dataList"
|
|
||||||
border
|
|
||||||
v-loading="dataListLoading"
|
|
||||||
@selection-change="selectionChangeHandle"
|
|
||||||
style="width: 100%;">
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="50">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="id"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="name"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="专题名字">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="subjectId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="专题id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="spuId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="spu_id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="sort"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="排序">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
fixed="right"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="150"
|
|
||||||
label="操作">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
|
||||||
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
@size-change="sizeChangeHandle"
|
|
||||||
@current-change="currentChangeHandle"
|
|
||||||
:current-page="pageIndex"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="pageSize"
|
|
||||||
:total="totalPage"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
|
||||||
</el-pagination>
|
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
|
||||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import AddOrUpdate from './homesubjectspu-add-or-update'
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
dataForm: {
|
|
||||||
key: ''
|
|
||||||
},
|
|
||||||
dataList: [],
|
|
||||||
pageIndex: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
totalPage: 0,
|
|
||||||
dataListLoading: false,
|
|
||||||
dataListSelections: [],
|
|
||||||
addOrUpdateVisible: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
AddOrUpdate
|
|
||||||
},
|
|
||||||
activated () {
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 获取数据列表
|
|
||||||
getDataList () {
|
|
||||||
this.dataListLoading = true
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl('/coupon/homesubjectspu/list'),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams({
|
|
||||||
'page': this.pageIndex,
|
|
||||||
'limit': this.pageSize,
|
|
||||||
'key': this.dataForm.key
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataList = data.page.list
|
|
||||||
this.totalPage = data.page.totalCount
|
|
||||||
} else {
|
|
||||||
this.dataList = []
|
|
||||||
this.totalPage = 0
|
|
||||||
}
|
|
||||||
this.dataListLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 每页数
|
|
||||||
sizeChangeHandle (val) {
|
|
||||||
this.pageSize = val
|
|
||||||
this.pageIndex = 1
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 当前页
|
|
||||||
currentChangeHandle (val) {
|
|
||||||
this.pageIndex = val
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 多选
|
|
||||||
selectionChangeHandle (val) {
|
|
||||||
this.dataListSelections = val
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addOrUpdateHandle (id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
deleteHandle (id) {
|
|
||||||
var ids = id ? [id] : this.dataListSelections.map(item => {
|
|
||||||
return item.id
|
|
||||||
})
|
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl('/coupon/homesubjectspu/delete'),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData(ids, false)
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getDataList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,129 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="活动标题" prop="title">
|
|
||||||
<el-input v-model="dataForm.title" placeholder="活动标题"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="开始日期" prop="startTime">
|
|
||||||
<el-input v-model="dataForm.startTime" placeholder="开始日期"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="结束日期" prop="endTime">
|
|
||||||
<el-input v-model="dataForm.endTime" placeholder="结束日期"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="上下线状态" prop="status">
|
|
||||||
<el-input v-model="dataForm.status" placeholder="上下线状态"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="创建时间" prop="createTime">
|
|
||||||
<el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="创建人" prop="userId">
|
|
||||||
<el-input v-model="dataForm.userId" placeholder="创建人"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
title: '',
|
|
||||||
startTime: '',
|
|
||||||
endTime: '',
|
|
||||||
status: '',
|
|
||||||
createTime: '',
|
|
||||||
userId: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
title: [
|
|
||||||
{ required: true, message: '活动标题不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
startTime: [
|
|
||||||
{ required: true, message: '开始日期不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
endTime: [
|
|
||||||
{ required: true, message: '结束日期不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
status: [
|
|
||||||
{ required: true, message: '上下线状态不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
createTime: [
|
|
||||||
{ required: true, message: '创建时间不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
userId: [
|
|
||||||
{ required: true, message: '创建人不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/seckillpromotion/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.title = data.seckillPromotion.title
|
|
||||||
this.dataForm.startTime = data.seckillPromotion.startTime
|
|
||||||
this.dataForm.endTime = data.seckillPromotion.endTime
|
|
||||||
this.dataForm.status = data.seckillPromotion.status
|
|
||||||
this.dataForm.createTime = data.seckillPromotion.createTime
|
|
||||||
this.dataForm.userId = data.seckillPromotion.userId
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/seckillpromotion/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'title': this.dataForm.title,
|
|
||||||
'startTime': this.dataForm.startTime,
|
|
||||||
'endTime': this.dataForm.endTime,
|
|
||||||
'status': this.dataForm.status,
|
|
||||||
'createTime': this.dataForm.createTime,
|
|
||||||
'userId': this.dataForm.userId
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,120 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="场次名称" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" placeholder="场次名称"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="每日开始时间" prop="startTime">
|
|
||||||
<el-input v-model="dataForm.startTime" placeholder="每日开始时间"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="每日结束时间" prop="endTime">
|
|
||||||
<el-input v-model="dataForm.endTime" placeholder="每日结束时间"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="启用状态" prop="status">
|
|
||||||
<el-input v-model="dataForm.status" placeholder="启用状态"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="创建时间" prop="createTime">
|
|
||||||
<el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
name: '',
|
|
||||||
startTime: '',
|
|
||||||
endTime: '',
|
|
||||||
status: '',
|
|
||||||
createTime: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
name: [
|
|
||||||
{ required: true, message: '场次名称不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
startTime: [
|
|
||||||
{ required: true, message: '每日开始时间不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
endTime: [
|
|
||||||
{ required: true, message: '每日结束时间不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
status: [
|
|
||||||
{ required: true, message: '启用状态不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
createTime: [
|
|
||||||
{ required: true, message: '创建时间不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/seckillsession/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.name = data.seckillSession.name
|
|
||||||
this.dataForm.startTime = data.seckillSession.startTime
|
|
||||||
this.dataForm.endTime = data.seckillSession.endTime
|
|
||||||
this.dataForm.status = data.seckillSession.status
|
|
||||||
this.dataForm.createTime = data.seckillSession.createTime
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/seckillsession/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'name': this.dataForm.name,
|
|
||||||
'startTime': this.dataForm.startTime,
|
|
||||||
'endTime': this.dataForm.endTime,
|
|
||||||
'status': this.dataForm.status,
|
|
||||||
'createTime': this.dataForm.createTime
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,138 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="活动id" prop="promotionId">
|
|
||||||
<el-input v-model="dataForm.promotionId" placeholder="活动id"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="活动场次id" prop="promotionSessionId">
|
|
||||||
<el-input v-model="dataForm.promotionSessionId" placeholder="活动场次id"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="商品id" prop="skuId">
|
|
||||||
<el-input v-model="dataForm.skuId" placeholder="商品id"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="秒杀价格" prop="seckillPrice">
|
|
||||||
<el-input v-model="dataForm.seckillPrice" placeholder="秒杀价格"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="秒杀总量" prop="seckillCount">
|
|
||||||
<el-input v-model="dataForm.seckillCount" placeholder="秒杀总量"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="每人限购数量" prop="seckillLimit">
|
|
||||||
<el-input v-model="dataForm.seckillLimit" placeholder="每人限购数量"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="排序" prop="seckillSort">
|
|
||||||
<el-input v-model="dataForm.seckillSort" placeholder="排序"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
promotionId: '',
|
|
||||||
promotionSessionId: '',
|
|
||||||
skuId: '',
|
|
||||||
seckillPrice: '',
|
|
||||||
seckillCount: '',
|
|
||||||
seckillLimit: '',
|
|
||||||
seckillSort: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
promotionId: [
|
|
||||||
{ required: true, message: '活动id不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
promotionSessionId: [
|
|
||||||
{ required: true, message: '活动场次id不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
skuId: [
|
|
||||||
{ required: true, message: '商品id不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
seckillPrice: [
|
|
||||||
{ required: true, message: '秒杀价格不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
seckillCount: [
|
|
||||||
{ required: true, message: '秒杀总量不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
seckillLimit: [
|
|
||||||
{ required: true, message: '每人限购数量不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
seckillSort: [
|
|
||||||
{ required: true, message: '排序不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/seckillskurelation/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.promotionId = data.seckillSkuRelation.promotionId
|
|
||||||
this.dataForm.promotionSessionId = data.seckillSkuRelation.promotionSessionId
|
|
||||||
this.dataForm.skuId = data.seckillSkuRelation.skuId
|
|
||||||
this.dataForm.seckillPrice = data.seckillSkuRelation.seckillPrice
|
|
||||||
this.dataForm.seckillCount = data.seckillSkuRelation.seckillCount
|
|
||||||
this.dataForm.seckillLimit = data.seckillSkuRelation.seckillLimit
|
|
||||||
this.dataForm.seckillSort = data.seckillSkuRelation.seckillSort
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/seckillskurelation/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'promotionId': this.dataForm.promotionId,
|
|
||||||
'promotionSessionId': this.dataForm.promotionSessionId,
|
|
||||||
'skuId': this.dataForm.skuId,
|
|
||||||
'seckillPrice': this.dataForm.seckillPrice,
|
|
||||||
'seckillCount': this.dataForm.seckillCount,
|
|
||||||
'seckillLimit': this.dataForm.seckillLimit,
|
|
||||||
'seckillSort': this.dataForm.seckillSort
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,199 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="mod-config">
|
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
|
||||||
<el-form-item>
|
|
||||||
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button @click="getDataList()">查询</el-button>
|
|
||||||
<el-button v-if="isAuth('coupon:seckillskurelation:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
|
||||||
<el-button v-if="isAuth('coupon:seckillskurelation:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<el-table
|
|
||||||
:data="dataList"
|
|
||||||
border
|
|
||||||
v-loading="dataListLoading"
|
|
||||||
@selection-change="selectionChangeHandle"
|
|
||||||
style="width: 100%;">
|
|
||||||
<el-table-column
|
|
||||||
type="selection"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="50">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="id"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="promotionId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="活动id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="promotionSessionId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="活动场次id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="skuId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="商品id">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="seckillPrice"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="秒杀价格">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="seckillCount"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="秒杀总量">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="seckillLimit"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="每人限购数量">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="seckillSort"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="排序">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
fixed="right"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="150"
|
|
||||||
label="操作">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
|
||||||
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
@size-change="sizeChangeHandle"
|
|
||||||
@current-change="currentChangeHandle"
|
|
||||||
:current-page="pageIndex"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="pageSize"
|
|
||||||
:total="totalPage"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
|
||||||
</el-pagination>
|
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
|
||||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import AddOrUpdate from './seckillskurelation-add-or-update'
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
dataForm: {
|
|
||||||
key: ''
|
|
||||||
},
|
|
||||||
dataList: [],
|
|
||||||
pageIndex: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
totalPage: 0,
|
|
||||||
dataListLoading: false,
|
|
||||||
dataListSelections: [],
|
|
||||||
addOrUpdateVisible: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
AddOrUpdate
|
|
||||||
},
|
|
||||||
activated () {
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 获取数据列表
|
|
||||||
getDataList () {
|
|
||||||
this.dataListLoading = true
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl('/coupon/seckillskurelation/list'),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams({
|
|
||||||
'page': this.pageIndex,
|
|
||||||
'limit': this.pageSize,
|
|
||||||
'key': this.dataForm.key
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataList = data.page.list
|
|
||||||
this.totalPage = data.page.totalCount
|
|
||||||
} else {
|
|
||||||
this.dataList = []
|
|
||||||
this.totalPage = 0
|
|
||||||
}
|
|
||||||
this.dataListLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 每页数
|
|
||||||
sizeChangeHandle (val) {
|
|
||||||
this.pageSize = val
|
|
||||||
this.pageIndex = 1
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 当前页
|
|
||||||
currentChangeHandle (val) {
|
|
||||||
this.pageIndex = val
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 多选
|
|
||||||
selectionChangeHandle (val) {
|
|
||||||
this.dataListSelections = val
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addOrUpdateHandle (id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
deleteHandle (id) {
|
|
||||||
var ids = id ? [id] : this.dataListSelections.map(item => {
|
|
||||||
return item.id
|
|
||||||
})
|
|
||||||
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl('/coupon/seckillskurelation/delete'),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData(ids, false)
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getDataList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,111 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
|
||||||
<el-form-item label="spu_id" prop="skuId">
|
|
||||||
<el-input v-model="dataForm.skuId" placeholder="spu_id"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="满多少" prop="fullPrice">
|
|
||||||
<el-input v-model="dataForm.fullPrice" placeholder="满多少"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="减多少" prop="reducePrice">
|
|
||||||
<el-input v-model="dataForm.reducePrice" placeholder="减多少"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="是否参与其他优惠" prop="addOther">
|
|
||||||
<el-input v-model="dataForm.addOther" placeholder="是否参与其他优惠"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
skuId: '',
|
|
||||||
fullPrice: '',
|
|
||||||
reducePrice: '',
|
|
||||||
addOther: ''
|
|
||||||
},
|
|
||||||
dataRule: {
|
|
||||||
skuId: [
|
|
||||||
{ required: true, message: 'spu_id不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
fullPrice: [
|
|
||||||
{ required: true, message: '满多少不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
reducePrice: [
|
|
||||||
{ required: true, message: '减多少不能为空', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
addOther: [
|
|
||||||
{ required: true, message: '是否参与其他优惠不能为空', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init (id) {
|
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/skufullreduction/info/${this.dataForm.id}`),
|
|
||||||
method: 'get',
|
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.skuId = data.skuFullReduction.skuId
|
|
||||||
this.dataForm.fullPrice = data.skuFullReduction.fullPrice
|
|
||||||
this.dataForm.reducePrice = data.skuFullReduction.reducePrice
|
|
||||||
this.dataForm.addOther = data.skuFullReduction.addOther
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit () {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http({
|
|
||||||
url: this.$http.adornUrl(`/coupon/skufullreduction/${!this.dataForm.id ? 'save' : 'update'}`),
|
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData({
|
|
||||||
'id': this.dataForm.id || undefined,
|
|
||||||
'skuId': this.dataForm.skuId,
|
|
||||||
'fullPrice': this.dataForm.fullPrice,
|
|
||||||
'reducePrice': this.dataForm.reducePrice,
|
|
||||||
'addOther': this.dataForm.addOther
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,13 +1,13 @@
|
|||||||
package com.bookstore.bookmall.bookmember;
|
package com.bookstore.bookmall.member;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class BookMemberApplication {
|
public class BookMemberApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(BookMemberApplication.class, args);
|
SpringApplication.run(BookMemberApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.GrowthChangeHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.GrowthChangeHistoryService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成长值变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/growthchangehistory")
|
||||||
|
public class GrowthChangeHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private GrowthChangeHistoryService growthChangeHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = growthChangeHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
GrowthChangeHistoryEntity growthChangeHistory = growthChangeHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("growthChangeHistory", growthChangeHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:save")
|
||||||
|
public R save(@RequestBody GrowthChangeHistoryEntity growthChangeHistory){
|
||||||
|
growthChangeHistoryService.save(growthChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:update")
|
||||||
|
public R update(@RequestBody GrowthChangeHistoryEntity growthChangeHistory){
|
||||||
|
growthChangeHistoryService.updateById(growthChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
growthChangeHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.IntegrationChangeHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.IntegrationChangeHistoryService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 积分变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/integrationchangehistory")
|
||||||
|
public class IntegrationChangeHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private IntegrationChangeHistoryService integrationChangeHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = integrationChangeHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
IntegrationChangeHistoryEntity integrationChangeHistory = integrationChangeHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("integrationChangeHistory", integrationChangeHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:save")
|
||||||
|
public R save(@RequestBody IntegrationChangeHistoryEntity integrationChangeHistory){
|
||||||
|
integrationChangeHistoryService.save(integrationChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:update")
|
||||||
|
public R update(@RequestBody IntegrationChangeHistoryEntity integrationChangeHistory){
|
||||||
|
integrationChangeHistoryService.updateById(integrationChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
integrationChangeHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSpuEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberCollectSpuService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/membercollectspu")
|
||||||
|
public class MemberCollectSpuController {
|
||||||
|
@Autowired
|
||||||
|
private MemberCollectSpuService memberCollectSpuService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberCollectSpuService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberCollectSpuEntity memberCollectSpu = memberCollectSpuService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberCollectSpu", memberCollectSpu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:save")
|
||||||
|
public R save(@RequestBody MemberCollectSpuEntity memberCollectSpu){
|
||||||
|
memberCollectSpuService.save(memberCollectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:update")
|
||||||
|
public R update(@RequestBody MemberCollectSpuEntity memberCollectSpu){
|
||||||
|
memberCollectSpuService.updateById(memberCollectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberCollectSpuService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSubjectEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberCollectSubjectService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的专题活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/membercollectsubject")
|
||||||
|
public class MemberCollectSubjectController {
|
||||||
|
@Autowired
|
||||||
|
private MemberCollectSubjectService memberCollectSubjectService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberCollectSubjectService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberCollectSubjectEntity memberCollectSubject = memberCollectSubjectService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberCollectSubject", memberCollectSubject);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:save")
|
||||||
|
public R save(@RequestBody MemberCollectSubjectEntity memberCollectSubject){
|
||||||
|
memberCollectSubjectService.save(memberCollectSubject);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:update")
|
||||||
|
public R update(@RequestBody MemberCollectSubjectEntity memberCollectSubject){
|
||||||
|
memberCollectSubjectService.updateById(memberCollectSubject);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberCollectSubjectService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/member")
|
||||||
|
public class MemberController {
|
||||||
|
@Autowired
|
||||||
|
private MemberService memberService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:member:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:member:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberEntity member = memberService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("member", member);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:member:save")
|
||||||
|
public R save(@RequestBody MemberEntity member){
|
||||||
|
memberService.save(member);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:member:update")
|
||||||
|
public R update(@RequestBody MemberEntity member){
|
||||||
|
memberService.updateById(member);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:member:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLevelEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberLevelService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员等级
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberlevel")
|
||||||
|
public class MemberLevelController {
|
||||||
|
@Autowired
|
||||||
|
private MemberLevelService memberLevelService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberlevel:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberLevelService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberlevel:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberLevelEntity memberLevel = memberLevelService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberLevel", memberLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberlevel:save")
|
||||||
|
public R save(@RequestBody MemberLevelEntity memberLevel){
|
||||||
|
memberLevelService.save(memberLevel);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberlevel:update")
|
||||||
|
public R update(@RequestBody MemberLevelEntity memberLevel){
|
||||||
|
memberLevelService.updateById(memberLevel);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberlevel:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberLevelService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLoginLogEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberLoginLogService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员登录记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberloginlog")
|
||||||
|
public class MemberLoginLogController {
|
||||||
|
@Autowired
|
||||||
|
private MemberLoginLogService memberLoginLogService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberLoginLogService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberLoginLogEntity memberLoginLog = memberLoginLogService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberLoginLog", memberLoginLog);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:save")
|
||||||
|
public R save(@RequestBody MemberLoginLogEntity memberLoginLog){
|
||||||
|
memberLoginLogService.save(memberLoginLog);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:update")
|
||||||
|
public R update(@RequestBody MemberLoginLogEntity memberLoginLog){
|
||||||
|
memberLoginLogService.updateById(memberLoginLog);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberLoginLogService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberReceiveAddressEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberReceiveAddressService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收货地址
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberreceiveaddress")
|
||||||
|
public class MemberReceiveAddressController {
|
||||||
|
@Autowired
|
||||||
|
private MemberReceiveAddressService memberReceiveAddressService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberReceiveAddressService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberReceiveAddressEntity memberReceiveAddress = memberReceiveAddressService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberReceiveAddress", memberReceiveAddress);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:save")
|
||||||
|
public R save(@RequestBody MemberReceiveAddressEntity memberReceiveAddress){
|
||||||
|
memberReceiveAddressService.save(memberReceiveAddress);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:update")
|
||||||
|
public R update(@RequestBody MemberReceiveAddressEntity memberReceiveAddress){
|
||||||
|
memberReceiveAddressService.updateById(memberReceiveAddress);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberReceiveAddressService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberStatisticsInfoEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberStatisticsInfoService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员统计信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberstatisticsinfo")
|
||||||
|
public class MemberStatisticsInfoController {
|
||||||
|
@Autowired
|
||||||
|
private MemberStatisticsInfoService memberStatisticsInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberStatisticsInfoService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberStatisticsInfoEntity memberStatisticsInfo = memberStatisticsInfoService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberStatisticsInfo", memberStatisticsInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:save")
|
||||||
|
public R save(@RequestBody MemberStatisticsInfoEntity memberStatisticsInfo){
|
||||||
|
memberStatisticsInfoService.save(memberStatisticsInfo);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:update")
|
||||||
|
public R update(@RequestBody MemberStatisticsInfoEntity memberStatisticsInfo){
|
||||||
|
memberStatisticsInfoService.updateById(memberStatisticsInfo);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberStatisticsInfoService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.GrowthChangeHistoryEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成长值变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface GrowthChangeHistoryDao extends BaseMapper<GrowthChangeHistoryEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.IntegrationChangeHistoryEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 积分变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface IntegrationChangeHistoryDao extends BaseMapper<IntegrationChangeHistoryEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSpuEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberCollectSpuDao extends BaseMapper<MemberCollectSpuEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的专题活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberCollectSubjectDao extends BaseMapper<MemberCollectSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberDao extends BaseMapper<MemberEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLevelEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员等级
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberLevelDao extends BaseMapper<MemberLevelEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLoginLogEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员登录记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberLoginLogDao extends BaseMapper<MemberLoginLogEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberReceiveAddressEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收货地址
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberReceiveAddressDao extends BaseMapper<MemberReceiveAddressEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberStatisticsInfoEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员统计信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberStatisticsInfoDao extends BaseMapper<MemberStatisticsInfoEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.bookstore.bookmall.member.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("ums_member_collect_spu")
|
||||||
|
public class MemberCollectSpuEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 会员id
|
||||||
|
*/
|
||||||
|
private Long memberId;
|
||||||
|
/**
|
||||||
|
* spu_id
|
||||||
|
*/
|
||||||
|
private Long spuId;
|
||||||
|
/**
|
||||||
|
* spu_name
|
||||||
|
*/
|
||||||
|
private String spuName;
|
||||||
|
/**
|
||||||
|
* spu_img
|
||||||
|
*/
|
||||||
|
private String spuImg;
|
||||||
|
/**
|
||||||
|
* create_time
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.bookstore.bookmall.member.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的专题活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("ums_member_collect_subject")
|
||||||
|
public class MemberCollectSubjectEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* subject_id
|
||||||
|
*/
|
||||||
|
private Long subjectId;
|
||||||
|
/**
|
||||||
|
* subject_name
|
||||||
|
*/
|
||||||
|
private String subjectName;
|
||||||
|
/**
|
||||||
|
* subject_img
|
||||||
|
*/
|
||||||
|
private String subjectImg;
|
||||||
|
/**
|
||||||
|
* 活动url
|
||||||
|
*/
|
||||||
|
private String subjectUrll;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.bookstore.bookmall.member.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("ums_member")
|
||||||
|
public class MemberEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 会员等级id
|
||||||
|
*/
|
||||||
|
private Long levelId;
|
||||||
|
/**
|
||||||
|
* 用户名
|
||||||
|
*/
|
||||||
|
private String username;
|
||||||
|
/**
|
||||||
|
* 密码
|
||||||
|
*/
|
||||||
|
private String password;
|
||||||
|
/**
|
||||||
|
* 昵称
|
||||||
|
*/
|
||||||
|
private String nickname;
|
||||||
|
/**
|
||||||
|
* 手机号码
|
||||||
|
*/
|
||||||
|
private String mobile;
|
||||||
|
/**
|
||||||
|
* 邮箱
|
||||||
|
*/
|
||||||
|
private String email;
|
||||||
|
/**
|
||||||
|
* 头像
|
||||||
|
*/
|
||||||
|
private String header;
|
||||||
|
/**
|
||||||
|
* 性别
|
||||||
|
*/
|
||||||
|
private Integer gender;
|
||||||
|
/**
|
||||||
|
* 生日
|
||||||
|
*/
|
||||||
|
private Date birth;
|
||||||
|
/**
|
||||||
|
* 所在城市
|
||||||
|
*/
|
||||||
|
private String city;
|
||||||
|
/**
|
||||||
|
* 职业
|
||||||
|
*/
|
||||||
|
private String job;
|
||||||
|
/**
|
||||||
|
* 个性签名
|
||||||
|
*/
|
||||||
|
private String sign;
|
||||||
|
/**
|
||||||
|
* 用户来源
|
||||||
|
*/
|
||||||
|
private Integer sourceType;
|
||||||
|
/**
|
||||||
|
* 积分
|
||||||
|
*/
|
||||||
|
private Integer integration;
|
||||||
|
/**
|
||||||
|
* 成长值
|
||||||
|
*/
|
||||||
|
private Integer growth;
|
||||||
|
/**
|
||||||
|
* 启用状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
/**
|
||||||
|
* 注册时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
package com.bookstore.bookmall.member.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收货地址
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("ums_member_receive_address")
|
||||||
|
public class MemberReceiveAddressEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* member_id
|
||||||
|
*/
|
||||||
|
private Long memberId;
|
||||||
|
/**
|
||||||
|
* 收货人姓名
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 电话
|
||||||
|
*/
|
||||||
|
private String phone;
|
||||||
|
/**
|
||||||
|
* 邮政编码
|
||||||
|
*/
|
||||||
|
private String postCode;
|
||||||
|
/**
|
||||||
|
* 省份/直辖市
|
||||||
|
*/
|
||||||
|
private String province;
|
||||||
|
/**
|
||||||
|
* 城市
|
||||||
|
*/
|
||||||
|
private String city;
|
||||||
|
/**
|
||||||
|
* 区
|
||||||
|
*/
|
||||||
|
private String region;
|
||||||
|
/**
|
||||||
|
* 详细地址(街道)
|
||||||
|
*/
|
||||||
|
private String detailAddress;
|
||||||
|
/**
|
||||||
|
* 省市区代码
|
||||||
|
*/
|
||||||
|
private String areacode;
|
||||||
|
/**
|
||||||
|
* 是否默认
|
||||||
|
*/
|
||||||
|
private Integer defaultStatus;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,85 @@
|
|||||||
|
package com.bookstore.bookmall.member.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员统计信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("ums_member_statistics_info")
|
||||||
|
public class MemberStatisticsInfoEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 会员id
|
||||||
|
*/
|
||||||
|
private Long memberId;
|
||||||
|
/**
|
||||||
|
* 累计消费金额
|
||||||
|
*/
|
||||||
|
private BigDecimal consumeAmount;
|
||||||
|
/**
|
||||||
|
* 累计优惠金额
|
||||||
|
*/
|
||||||
|
private BigDecimal couponAmount;
|
||||||
|
/**
|
||||||
|
* 订单数量
|
||||||
|
*/
|
||||||
|
private Integer orderCount;
|
||||||
|
/**
|
||||||
|
* 优惠券数量
|
||||||
|
*/
|
||||||
|
private Integer couponCount;
|
||||||
|
/**
|
||||||
|
* 评价数
|
||||||
|
*/
|
||||||
|
private Integer commentCount;
|
||||||
|
/**
|
||||||
|
* 退货数量
|
||||||
|
*/
|
||||||
|
private Integer returnOrderCount;
|
||||||
|
/**
|
||||||
|
* 登录次数
|
||||||
|
*/
|
||||||
|
private Integer loginCount;
|
||||||
|
/**
|
||||||
|
* 关注数量
|
||||||
|
*/
|
||||||
|
private Integer attendCount;
|
||||||
|
/**
|
||||||
|
* 粉丝数量
|
||||||
|
*/
|
||||||
|
private Integer fansCount;
|
||||||
|
/**
|
||||||
|
* 收藏的商品数量
|
||||||
|
*/
|
||||||
|
private Integer collectProductCount;
|
||||||
|
/**
|
||||||
|
* 收藏的专题活动数量
|
||||||
|
*/
|
||||||
|
private Integer collectSubjectCount;
|
||||||
|
/**
|
||||||
|
* 收藏的评论数量
|
||||||
|
*/
|
||||||
|
private Integer collectCommentCount;
|
||||||
|
/**
|
||||||
|
* 邀请的朋友数量
|
||||||
|
*/
|
||||||
|
private Integer inviteFriendCount;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.GrowthChangeHistoryEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成长值变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface GrowthChangeHistoryService extends IService<GrowthChangeHistoryEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.IntegrationChangeHistoryEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 积分变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface IntegrationChangeHistoryService extends IService<IntegrationChangeHistoryEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSpuEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberCollectSpuService extends IService<MemberCollectSpuEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSubjectEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的专题活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberCollectSubjectService extends IService<MemberCollectSubjectEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLevelEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员等级
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberLevelService extends IService<MemberLevelEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLoginLogEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员登录记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberLoginLogService extends IService<MemberLoginLogEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberReceiveAddressEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收货地址
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberReceiveAddressService extends IService<MemberReceiveAddressEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberService extends IService<MemberEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.member.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberStatisticsInfoEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员统计信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
public interface MemberStatisticsInfoService extends IService<MemberStatisticsInfoEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.GrowthChangeHistoryDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.GrowthChangeHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.GrowthChangeHistoryService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("growthChangeHistoryService")
|
||||||
|
public class GrowthChangeHistoryServiceImpl extends ServiceImpl<GrowthChangeHistoryDao, GrowthChangeHistoryEntity> implements GrowthChangeHistoryService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<GrowthChangeHistoryEntity> page = this.page(
|
||||||
|
new Query<GrowthChangeHistoryEntity>().getPage(params),
|
||||||
|
new QueryWrapper<GrowthChangeHistoryEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.IntegrationChangeHistoryDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.IntegrationChangeHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.IntegrationChangeHistoryService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("integrationChangeHistoryService")
|
||||||
|
public class IntegrationChangeHistoryServiceImpl extends ServiceImpl<IntegrationChangeHistoryDao, IntegrationChangeHistoryEntity> implements IntegrationChangeHistoryService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<IntegrationChangeHistoryEntity> page = this.page(
|
||||||
|
new Query<IntegrationChangeHistoryEntity>().getPage(params),
|
||||||
|
new QueryWrapper<IntegrationChangeHistoryEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberCollectSpuDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSpuEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberCollectSpuService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberCollectSpuService")
|
||||||
|
public class MemberCollectSpuServiceImpl extends ServiceImpl<MemberCollectSpuDao, MemberCollectSpuEntity> implements MemberCollectSpuService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberCollectSpuEntity> page = this.page(
|
||||||
|
new Query<MemberCollectSpuEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberCollectSpuEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberCollectSubjectDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSubjectEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberCollectSubjectService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberCollectSubjectService")
|
||||||
|
public class MemberCollectSubjectServiceImpl extends ServiceImpl<MemberCollectSubjectDao, MemberCollectSubjectEntity> implements MemberCollectSubjectService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberCollectSubjectEntity> page = this.page(
|
||||||
|
new Query<MemberCollectSubjectEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberCollectSubjectEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberLevelDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLevelEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberLevelService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberLevelService")
|
||||||
|
public class MemberLevelServiceImpl extends ServiceImpl<MemberLevelDao, MemberLevelEntity> implements MemberLevelService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberLevelEntity> page = this.page(
|
||||||
|
new Query<MemberLevelEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberLevelEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberLoginLogDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberLoginLogEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberLoginLogService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberLoginLogService")
|
||||||
|
public class MemberLoginLogServiceImpl extends ServiceImpl<MemberLoginLogDao, MemberLoginLogEntity> implements MemberLoginLogService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberLoginLogEntity> page = this.page(
|
||||||
|
new Query<MemberLoginLogEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberLoginLogEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberReceiveAddressDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberReceiveAddressEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberReceiveAddressService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberReceiveAddressService")
|
||||||
|
public class MemberReceiveAddressServiceImpl extends ServiceImpl<MemberReceiveAddressDao, MemberReceiveAddressEntity> implements MemberReceiveAddressService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberReceiveAddressEntity> page = this.page(
|
||||||
|
new Query<MemberReceiveAddressEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberReceiveAddressEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberService")
|
||||||
|
public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> implements MemberService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberEntity> page = this.page(
|
||||||
|
new Query<MemberEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.member.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.dao.MemberStatisticsInfoDao;
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberStatisticsInfoEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberStatisticsInfoService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberStatisticsInfoService")
|
||||||
|
public class MemberStatisticsInfoServiceImpl extends ServiceImpl<MemberStatisticsInfoDao, MemberStatisticsInfoEntity> implements MemberStatisticsInfoService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberStatisticsInfoEntity> page = this.page(
|
||||||
|
new Query<MemberStatisticsInfoEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberStatisticsInfoEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.GrowthChangeHistoryDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.GrowthChangeHistoryEntity" id="growthChangeHistoryMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="changeCount" column="change_count"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
<result property="sourceType" column="source_type"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.IntegrationChangeHistoryDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.IntegrationChangeHistoryEntity" id="integrationChangeHistoryMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="changeCount" column="change_count"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
<result property="sourceTyoe" column="source_tyoe"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -1,14 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponSpuRelationDao">
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberCollectSpuDao">
|
||||||
|
|
||||||
<!-- 可根据自己的需求,是否要使用 -->
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponSpuRelationEntity" id="couponSpuRelationMap">
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberCollectSpuEntity" id="memberCollectSpuMap">
|
||||||
<result property="id" column="id"/>
|
<result property="id" column="id"/>
|
||||||
<result property="couponId" column="coupon_id"/>
|
<result property="memberId" column="member_id"/>
|
||||||
<result property="spuId" column="spu_id"/>
|
<result property="spuId" column="spu_id"/>
|
||||||
<result property="spuName" column="spu_name"/>
|
<result property="spuName" column="spu_name"/>
|
||||||
|
<result property="spuImg" column="spu_img"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberCollectSubjectDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberCollectSubjectEntity" id="memberCollectSubjectMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="subjectId" column="subject_id"/>
|
||||||
|
<result property="subjectName" column="subject_name"/>
|
||||||
|
<result property="subjectImg" column="subject_img"/>
|
||||||
|
<result property="subjectUrll" column="subject_urll"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberEntity" id="memberMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="levelId" column="level_id"/>
|
||||||
|
<result property="username" column="username"/>
|
||||||
|
<result property="password" column="password"/>
|
||||||
|
<result property="nickname" column="nickname"/>
|
||||||
|
<result property="mobile" column="mobile"/>
|
||||||
|
<result property="email" column="email"/>
|
||||||
|
<result property="header" column="header"/>
|
||||||
|
<result property="gender" column="gender"/>
|
||||||
|
<result property="birth" column="birth"/>
|
||||||
|
<result property="city" column="city"/>
|
||||||
|
<result property="job" column="job"/>
|
||||||
|
<result property="sign" column="sign"/>
|
||||||
|
<result property="sourceType" column="source_type"/>
|
||||||
|
<result property="integration" column="integration"/>
|
||||||
|
<result property="growth" column="growth"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberLevelDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberLevelEntity" id="memberLevelMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="growthPoint" column="growth_point"/>
|
||||||
|
<result property="defaultStatus" column="default_status"/>
|
||||||
|
<result property="freeFreightPoint" column="free_freight_point"/>
|
||||||
|
<result property="commentGrowthPoint" column="comment_growth_point"/>
|
||||||
|
<result property="priviledgeFreeFreight" column="priviledge_free_freight"/>
|
||||||
|
<result property="priviledgeMemberPrice" column="priviledge_member_price"/>
|
||||||
|
<result property="priviledgeBirthday" column="priviledge_birthday"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberLoginLogDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberLoginLogEntity" id="memberLoginLogMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="ip" column="ip"/>
|
||||||
|
<result property="city" column="city"/>
|
||||||
|
<result property="loginType" column="login_type"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberReceiveAddressDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberReceiveAddressEntity" id="memberReceiveAddressMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="phone" column="phone"/>
|
||||||
|
<result property="postCode" column="post_code"/>
|
||||||
|
<result property="province" column="province"/>
|
||||||
|
<result property="city" column="city"/>
|
||||||
|
<result property="region" column="region"/>
|
||||||
|
<result property="detailAddress" column="detail_address"/>
|
||||||
|
<result property="areacode" column="areacode"/>
|
||||||
|
<result property="defaultStatus" column="default_status"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.member.dao.MemberStatisticsInfoDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.member.entity.MemberStatisticsInfoEntity" id="memberStatisticsInfoMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="consumeAmount" column="consume_amount"/>
|
||||||
|
<result property="couponAmount" column="coupon_amount"/>
|
||||||
|
<result property="orderCount" column="order_count"/>
|
||||||
|
<result property="couponCount" column="coupon_count"/>
|
||||||
|
<result property="commentCount" column="comment_count"/>
|
||||||
|
<result property="returnOrderCount" column="return_order_count"/>
|
||||||
|
<result property="loginCount" column="login_count"/>
|
||||||
|
<result property="attendCount" column="attend_count"/>
|
||||||
|
<result property="fansCount" column="fans_count"/>
|
||||||
|
<result property="collectProductCount" column="collect_product_count"/>
|
||||||
|
<result property="collectSubjectCount" column="collect_subject_count"/>
|
||||||
|
<result property="collectCommentCount" column="collect_comment_count"/>
|
||||||
|
<result property="inviteFriendCount" column="invite_friend_count"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -1,4 +1,4 @@
|
|||||||
package com.bookstore.bookmall.bookmember;
|
package com.bookstore.bookmall.member;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
@ -1,4 +1,4 @@
|
|||||||
package com.bookstore.bookmall.bookorder;
|
package com.bookstore.bookmall.order;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.OrderEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.OrderService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/order")
|
||||||
|
public class OrderController {
|
||||||
|
@Autowired
|
||||||
|
private OrderService orderService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:order:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = orderService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:order:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
OrderEntity order = orderService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("order", order);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:order:save")
|
||||||
|
public R save(@RequestBody OrderEntity order){
|
||||||
|
orderService.save(order);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:order:update")
|
||||||
|
public R update(@RequestBody OrderEntity order){
|
||||||
|
orderService.updateById(order);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:order:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
orderService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.OrderItemEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.OrderItemService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单项信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/orderitem")
|
||||||
|
public class OrderItemController {
|
||||||
|
@Autowired
|
||||||
|
private OrderItemService orderItemService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:orderitem:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = orderItemService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:orderitem:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
OrderItemEntity orderItem = orderItemService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("orderItem", orderItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:orderitem:save")
|
||||||
|
public R save(@RequestBody OrderItemEntity orderItem){
|
||||||
|
orderItemService.save(orderItem);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:orderitem:update")
|
||||||
|
public R update(@RequestBody OrderItemEntity orderItem){
|
||||||
|
orderItemService.updateById(orderItem);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:orderitem:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
orderItemService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.OrderOperateHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.OrderOperateHistoryService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单操作历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/orderoperatehistory")
|
||||||
|
public class OrderOperateHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private OrderOperateHistoryService orderOperateHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:orderoperatehistory:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = orderOperateHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:orderoperatehistory:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
OrderOperateHistoryEntity orderOperateHistory = orderOperateHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("orderOperateHistory", orderOperateHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:orderoperatehistory:save")
|
||||||
|
public R save(@RequestBody OrderOperateHistoryEntity orderOperateHistory){
|
||||||
|
orderOperateHistoryService.save(orderOperateHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:orderoperatehistory:update")
|
||||||
|
public R update(@RequestBody OrderOperateHistoryEntity orderOperateHistory){
|
||||||
|
orderOperateHistoryService.updateById(orderOperateHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:orderoperatehistory:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
orderOperateHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.OrderReturnApplyEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.OrderReturnApplyService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单退货申请
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/orderreturnapply")
|
||||||
|
public class OrderReturnApplyController {
|
||||||
|
@Autowired
|
||||||
|
private OrderReturnApplyService orderReturnApplyService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:orderreturnapply:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = orderReturnApplyService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:orderreturnapply:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
OrderReturnApplyEntity orderReturnApply = orderReturnApplyService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("orderReturnApply", orderReturnApply);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:orderreturnapply:save")
|
||||||
|
public R save(@RequestBody OrderReturnApplyEntity orderReturnApply){
|
||||||
|
orderReturnApplyService.save(orderReturnApply);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:orderreturnapply:update")
|
||||||
|
public R update(@RequestBody OrderReturnApplyEntity orderReturnApply){
|
||||||
|
orderReturnApplyService.updateById(orderReturnApply);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:orderreturnapply:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
orderReturnApplyService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.OrderReturnReasonEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.OrderReturnReasonService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退货原因
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/orderreturnreason")
|
||||||
|
public class OrderReturnReasonController {
|
||||||
|
@Autowired
|
||||||
|
private OrderReturnReasonService orderReturnReasonService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:orderreturnreason:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = orderReturnReasonService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:orderreturnreason:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
OrderReturnReasonEntity orderReturnReason = orderReturnReasonService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("orderReturnReason", orderReturnReason);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:orderreturnreason:save")
|
||||||
|
public R save(@RequestBody OrderReturnReasonEntity orderReturnReason){
|
||||||
|
orderReturnReasonService.save(orderReturnReason);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:orderreturnreason:update")
|
||||||
|
public R update(@RequestBody OrderReturnReasonEntity orderReturnReason){
|
||||||
|
orderReturnReasonService.updateById(orderReturnReason);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:orderreturnreason:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
orderReturnReasonService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.OrderSettingEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.OrderSettingService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单配置信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/ordersetting")
|
||||||
|
public class OrderSettingController {
|
||||||
|
@Autowired
|
||||||
|
private OrderSettingService orderSettingService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:ordersetting:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = orderSettingService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:ordersetting:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
OrderSettingEntity orderSetting = orderSettingService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("orderSetting", orderSetting);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:ordersetting:save")
|
||||||
|
public R save(@RequestBody OrderSettingEntity orderSetting){
|
||||||
|
orderSettingService.save(orderSetting);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:ordersetting:update")
|
||||||
|
public R update(@RequestBody OrderSettingEntity orderSetting){
|
||||||
|
orderSettingService.updateById(orderSetting);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:ordersetting:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
orderSettingService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.order.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.order.entity.PaymentInfoEntity;
|
||||||
|
import com.bookstore.bookmall.order.service.PaymentInfoService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付信息表
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:56:47
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("order/paymentinfo")
|
||||||
|
public class PaymentInfoController {
|
||||||
|
@Autowired
|
||||||
|
private PaymentInfoService paymentInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("order:paymentinfo:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = paymentInfoService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("order:paymentinfo:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
PaymentInfoEntity paymentInfo = paymentInfoService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("paymentInfo", paymentInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("order:paymentinfo:save")
|
||||||
|
public R save(@RequestBody PaymentInfoEntity paymentInfo){
|
||||||
|
paymentInfoService.save(paymentInfo);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("order:paymentinfo:update")
|
||||||
|
public R update(@RequestBody PaymentInfoEntity paymentInfo){
|
||||||
|
paymentInfoService.updateById(paymentInfo);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("order:paymentinfo:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
paymentInfoService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue