diff --git a/fuintAdmin/src/api/EventMarketing/activeBirthday.js b/fuintAdmin/src/api/EventMarketing/activeBirthday.js index 961a96a45..e4b10091a 100644 --- a/fuintAdmin/src/api/EventMarketing/activeBirthday.js +++ b/fuintAdmin/src/api/EventMarketing/activeBirthday.js @@ -1,8 +1,8 @@ import request from '@/utils/request' -export function getActiveBirthday() { +export function getActiveBirthday(id) { return request({ - url: 'activeBirthday/getInfo', + url: 'activeBirthday/getInfoById/'+id, method: 'get', }) } diff --git a/fuintAdmin/src/api/EventMarketing/activeConsumption.js b/fuintAdmin/src/api/EventMarketing/activeConsumption.js index f7fa966e8..b17e024f2 100644 --- a/fuintAdmin/src/api/EventMarketing/activeConsumption.js +++ b/fuintAdmin/src/api/EventMarketing/activeConsumption.js @@ -107,9 +107,9 @@ export function looklooklook(id) { }) } -export function getInfoActivity() { +export function getInfoActivity(id) { return request({ - url: 'business/marketingActivity/activeConsumption/getInfo', + url: 'business/marketingActivity/activeConsumption/selectById/'+id, method: 'get', }) diff --git a/fuintAdmin/src/api/EventMarketing/activeNewlyweds.js b/fuintAdmin/src/api/EventMarketing/activeNewlyweds.js index a9541573b..a3749e597 100644 --- a/fuintAdmin/src/api/EventMarketing/activeNewlyweds.js +++ b/fuintAdmin/src/api/EventMarketing/activeNewlyweds.js @@ -69,15 +69,15 @@ export function delActiveNewlyweds(id) { }) } -// 删除新人有礼活动 -export function getInfoActiveNewlyweds() { +// 根据id查询开卡有礼信息 +export function getInfoActiveNewlyweds(id) { return request({ - url: '/business/marketingActivity/activeNewlyweds/getInfo', + url: '/business/marketingActivity/activeNewlyweds/getInfoById/'+id, method: 'get' }) } -// 删除新人有礼活动 +// 添加开卡有礼信息 export function insertActiveNewlyweds(data) { return request({ url: '/business/marketingActivity/activeNewlyweds/add', @@ -85,7 +85,7 @@ export function insertActiveNewlyweds(data) { data:data }) } -// 删除新人有礼活动 +// 修改开卡有礼信息 export function editActiveNewlyweds1(data) { return request({ url: '/business/marketingActivity/activeNewlyweds/update', diff --git a/fuintAdmin/src/api/EventMarketing/activePopUp.js b/fuintAdmin/src/api/EventMarketing/activePopUp.js index 35e5fdbc5..fc83cec77 100644 --- a/fuintAdmin/src/api/EventMarketing/activePopUp.js +++ b/fuintAdmin/src/api/EventMarketing/activePopUp.js @@ -1,8 +1,8 @@ import request from '@/utils/request' -export function getActivePopUp() { +export function getActivePopUp(id) { return request({ - url: 'activePopUp/getInfo', + url: 'activePopUp/'+id, method: 'get', }) } diff --git a/fuintAdmin/src/api/EventMarketing/activeRecommend.js b/fuintAdmin/src/api/EventMarketing/activeRecommend.js index 4b2e40fda..48ccaf13b 100644 --- a/fuintAdmin/src/api/EventMarketing/activeRecommend.js +++ b/fuintAdmin/src/api/EventMarketing/activeRecommend.js @@ -75,9 +75,9 @@ export function delActiveRecommend(id) { } // -export function getActiveRecommendInfo() { +export function getActiveRecommendInfo(id) { return request({ - url: '/business/marketingActivity/activeRecommend/getInfo' , + url: '/business/marketingActivity/activeRecommend/getInfoById/'+id , method: 'get' }) } diff --git a/fuintAdmin/src/api/EventMarketing/activeSubPrice.js b/fuintAdmin/src/api/EventMarketing/activeSubPrice.js index 79bcc6594..19ae9c6cd 100644 --- a/fuintAdmin/src/api/EventMarketing/activeSubPrice.js +++ b/fuintAdmin/src/api/EventMarketing/activeSubPrice.js @@ -1,8 +1,8 @@ import request from '@/utils/request' -export function getActiveSubPrice() { +export function getActiveSubPrice(id) { return request({ - url: 'business/activeSubPrice/getInfo', + url: 'business/activeSubPrice/'+id, method: 'get', }) } diff --git a/fuintAdmin/src/api/EventMarketing/activeUserConsume.js b/fuintAdmin/src/api/EventMarketing/activeUserConsume.js index 9e653eff9..a50d08b8b 100644 --- a/fuintAdmin/src/api/EventMarketing/activeUserConsume.js +++ b/fuintAdmin/src/api/EventMarketing/activeUserConsume.js @@ -1,8 +1,8 @@ import request from '@/utils/request' -export function getActiveUserConsume() { +export function getActiveUserConsume(id) { return request({ - url: 'activeUserConsume/getInfo', + url: 'activeUserConsume/'+id, method: 'get', }) } diff --git a/fuintAdmin/src/api/EventMarketing/activeUserRecharge.js b/fuintAdmin/src/api/EventMarketing/activeUserRecharge.js index f29cc0d78..5728da863 100644 --- a/fuintAdmin/src/api/EventMarketing/activeUserRecharge.js +++ b/fuintAdmin/src/api/EventMarketing/activeUserRecharge.js @@ -1,8 +1,8 @@ import request from '@/utils/request' -export function getActiveUserRecharge() { +export function getActiveUserRecharge(id) { return request({ - url: 'activeUserRecharge/getInfo', + url: 'activeUserRecharge/'+id, method: 'get', }) } diff --git a/fuintAdmin/src/api/active/active.js b/fuintAdmin/src/api/active/active.js index 3a3c78df5..579fbb1f6 100644 --- a/fuintAdmin/src/api/active/active.js +++ b/fuintAdmin/src/api/active/active.js @@ -8,3 +8,19 @@ export function pageActive(data) { params: data }) } + +// 删除活动信息 +export function deleteActive(id) { + return request({ + url: 'business/marketingActivity/activeApplet/delete/'+id, + method: 'delete', + }) + } + +// 修改活动状态 +export function editActiveStatus(id) { + return request({ + url: 'business/marketingActivity/activeApplet/editStatus/'+id, + method: 'get', + }) + } diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 4434cac3d..0d8cbc100 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -127,9 +127,9 @@ - +
- +
@@ -156,7 +156,7 @@
- +
@@ -255,10 +255,11 @@ import {listUserLabel} from "@/api/staff/user/userlabel"; export default { name: "ActiveConsumption", dicts: ['payment_type'], + props: ['activeId'], data() { return { - checkedCities:[], - cityOptions:['上海', '北京', '广州', '深圳'], + checkedCities: [], + cityOptions: ['上海', '北京', '广州', '深圳'], opendetails: false, looklist: [], statisticsyou: {}, @@ -268,7 +269,7 @@ export default { ], labelPosition: 'left', userGradeList: [], - userLabelList:[], + userLabelList: [], // 油号列表 oilNameList: [], pdidlist: [],//判断优惠券id @@ -370,10 +371,10 @@ export default { ruleForm: { - paymentType:[], - activeGift:[], - activityTimeType:0, - suitTimeSlotType:0, + paymentType: [], + activeGift: [], + activityTimeType: 0, + suitTimeSlotType: 0, }, ifWrite: true, tindex1: 0, @@ -429,63 +430,60 @@ export default { }; }, created() { - // this.getList(); - // this.getoiltypeliet() - // this.getoilName() - this.listUserGrade() + if (this.activeId) { + this.getInfo() + } - // this.getInfo() + this.listUserGrade() this.getCardCoupon() this.getUserLabelList() }, methods: { - handleCheckedCitiesChange(e){ - console.log(e,this.checkedCities) + handleCheckedCitiesChange(e) { + console.log(e, this.checkedCities) }, - changes(e){ - console.log('1098',e) + changes(e) { + console.log('1098', e) }, - getUserLabelList(){ - listUserLabel({page:1,pageSize:10000}).then(res => { + getUserLabelList() { + listUserLabel({page: 1, pageSize: 10000}).then(res => { this.userLabelList = res.data.records }) }, - getInfo(){ - getInfoActivity().then(res => { + getInfo() { + getInfoActivity(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data - console.log(res.data,'1109') if (res.data.activityTimeType) this.tindex1 = res.data.activityTimeType if (res.data.suitTimeSlotType) this.tindex3 = res.data.suitTimeSlotType if (res.data.paymentType) this.ruleForm.paymentType = res.data.paymentType.split(",") if (res.data.dieselUserLevel) this.ruleForm.dieselUserLevel = res.data.dieselUserLevel.split(",") if (res.data.userLabelIds) this.ruleForm.userLabelIds = res.data.userLabelIds.split(",") - if( res.data.activeGift){ - console.log( '198', this.ruleForm.activeGift) + if (res.data.activeGift) { this.ruleForm.activeGift = res.data.activeGift.split(",") for (let i = 0; i < this.ruleForm.activeGift.length; i++) { - if(this.ruleForm.activeGift[i] == '0'){ + if (this.ruleForm.activeGift[i] == '0') { this.ruleForm.activeGift[i] = '选项一' } - if(this.ruleForm.activeGift[i] == '3' ){ + if (this.ruleForm.activeGift[i] == '3') { this.ruleForm.activeGift[i] = '选项二' } - if(this.ruleForm.activeGift[i] == '1'){ + if (this.ruleForm.activeGift[i] == '1') { this.ruleForm.activeGift[i] = '选项三' } } - }else { + } else { this.ruleForm.activeGift = [] } - if (res.data.suitDate){ - if (res.data.suitTimeSlotType == 0){ + if (res.data.suitDate) { + if (res.data.suitTimeSlotType == 0) { this.weekDay = res.data.suitDate.split(",") - }else { + } else { this.monthDay = res.data.suitDate.split(",") } - }else { + } else { this.weekDay = [] this.monthDay = [] } @@ -501,12 +499,12 @@ export default { this.couponList = res.data.couponList this.couponOrderType = res.data.couponList[0].orderType } - }else { + } else { this.ruleForm = { - paymentType:[], - activeGift:[], - activityTimeType:0, - suitTimeSlotType:0, + paymentType: [], + activeGift: [], + activityTimeType: 0, + suitTimeSlotType: 0, } this.tindex1 = 0 this.tindex3 = 0 @@ -517,7 +515,7 @@ export default { this.growthValueOrderType = '' this.couponOrderType = '' } - console.log( '1147', this.ruleForm.activeGift) + console.log('1147', this.ruleForm.activeGift) }) }, @@ -572,18 +570,18 @@ export default { }, submitRuleForm(formName) { for (let i = 0; i < this.ruleForm.activeGift.length; i++) { - if(this.ruleForm.activeGift[i] == '选项一'){ + if (this.ruleForm.activeGift[i] == '选项一') { this.ruleForm.activeGift[i] = 0 } - if(this.ruleForm.activeGift[i] == '选项二'){ + if (this.ruleForm.activeGift[i] == '选项二') { this.ruleForm.activeGift[i] = 3 } - if(this.ruleForm.activeGift[i] == '选项三'){ + if (this.ruleForm.activeGift[i] == '选项三') { this.ruleForm.activeGift[i] = 1 } } - if (this.tindex1 == 1){ - if (!this.ruleForm.activeStartTime || !this.ruleForm.activeEndTime){ + if (this.tindex1 == 1) { + if (!this.ruleForm.activeStartTime || !this.ruleForm.activeEndTime) { this.$message.error("请选择活动开始时间") return } @@ -591,9 +589,9 @@ export default { this.$refs[formName].validate((valid) => { if (valid) { // 使用时间段 - if (this.ruleForm.suitTimeSlotType==0){ + if (this.ruleForm.suitTimeSlotType == 0) { this.ruleForm.suitDate = this.weekDay.toString() - }else if (this.ruleForm.suitTimeSlotType==1){ + } else if (this.ruleForm.suitTimeSlotType == 1) { this.ruleForm.suitDate = this.monthDay.toString() } // 会员等级 @@ -618,13 +616,13 @@ export default { editActivity(this.ruleForm).then(response => { this.$modal.msgSuccess("修改成功"); // this.getInfo(); - this.$router.push({path:"/EventMarketing/center/index",query:{id:'5'}}) + this.$router.push({path: "/EventMarketing/center/index", query: {id: '5'}}) }); } else { addActivity(this.ruleForm).then(response => { this.$modal.msgSuccess("新增成功"); // this.getInfo(); - this.$router.push({path:"/EventMarketing/center/index",query:{id:'5'}}) + this.$router.push({path: "/EventMarketing/center/index", query: {id: '5'}}) }); } } @@ -633,7 +631,7 @@ export default { resetForm(formName) { this.$refs[formName].resetFields(); // this.getInfo() - this.$router.push({path:"/EventMarketing/center/index"}) + this.$router.push({path: "/EventMarketing/center/index"}) }, indexMethod(index) { return index * 2; @@ -671,7 +669,7 @@ export default { }) }, listUserGrade() { - listUserGrade({page:1,pageSize:1000}).then(res => { + listUserGrade({page: 1, pageSize: 1000}).then(res => { if (res.code == 200) { this.userGradeList = res.data.records } diff --git a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue index a47051d59..ecd57c993 100644 --- a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue @@ -58,7 +58,7 @@
-
+
赠送
-
- 赠送 - +
+
赠送
+ - + { + getCardCoupon() { + listCardCoupon({status: 1, putType: 1}).then(res => { this.cardCouponList = res.data.records }) }, - getInfo(){ - getInfoActiveNewlyweds().then(res => { + getInfo() { + getInfoActiveNewlyweds(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.courtesyReward) this.ruleForm.courtesyReward = res.data.courtesyReward.split(",") if (res.data.activeTimeType) this.tindex1 = res.data.activeTimeType if (res.data.couponList) this.couponList = res.data.couponList - }else { + } else { this.ruleForm = { - activeTimeType:0, - courtesyReward:[] + activeTimeType: 0, + courtesyReward: [] } this.tindex1 = 0 } @@ -273,8 +276,8 @@ export default { this.ruleForm.activeTimeType = index }, submitRuleForm(formName) { - if (this.tindex1 == 1){ - if (!this.ruleForm.activeStartTime || !this.ruleForm.activeEndTime){ + if (this.tindex1 == 1) { + if (!this.ruleForm.activeStartTime || !this.ruleForm.activeEndTime) { this.$message.error("请选择活动开始时间") return } @@ -287,15 +290,15 @@ export default { editActiveNewlyweds1(this.ruleForm).then(response => { this.$modal.msgSuccess("修改成功"); // this.getInfo() - this.$router.push({path:"/EventMarketing/center/index",query:{id:'6'}}) + this.$router.push({path: "/EventMarketing/center/index", query: {id: '6'}}) }); - }else { + } else { insertActiveNewlyweds(this.ruleForm).then(response => { - if (response.data==1){ + if (response.data == 1) { this.$modal.msgSuccess("新增成功"); // this.getInfo() - this.$router.push({path:"/EventMarketing/center/index",query:{id:'6'}}) - }else { + this.$router.push({path: "/EventMarketing/center/index", query: {id: '6'}}) + } else { this.$modal.msgError("新增失败"); } }); @@ -307,7 +310,7 @@ export default { this.$refs[formName].resetFields(); this.ifWrite = true // this.getInfo() - this.$router.push({path:"/EventMarketing/center/index"}) + this.$router.push({path: "/EventMarketing/center/index"}) }, /** 查询新人有礼活动列表 */ getList() { diff --git a/fuintAdmin/src/views/EventMarketing/center/index.vue b/fuintAdmin/src/views/EventMarketing/center/index.vue index 1f86c84fe..8137a667f 100644 --- a/fuintAdmin/src/views/EventMarketing/center/index.vue +++ b/fuintAdmin/src/views/EventMarketing/center/index.vue @@ -26,7 +26,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -55,7 +55,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -69,7 +69,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -83,7 +83,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -98,7 +98,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -112,7 +112,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -126,7 +126,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -145,9 +145,9 @@
-
进行中1个
+
进行中1个
| -
创建活动
+
创建活动
@@ -159,9 +159,9 @@
-
进行中1个
+
进行中1个
| -
创建活动
+
创建活动
@@ -176,7 +176,7 @@
进行中1个
| -
创建活动
+
创建活动
@@ -256,18 +256,20 @@ 修改 删除 停用 @@ -348,19 +350,21 @@ 修改 删除 停用 + @click="editStatus(scope.row)" + >启用 @@ -385,7 +389,7 @@ import activeNewlyweds from '../activeNewlyweds/index' import activeConsumption from '../activeConsumption/index' import activeFullminus from '../activeFullminus/index' import activeRecommend from '../activeRecommend/index' -import {pageActive} from "@/api/active/active"; +import {deleteActive, editActiveStatus, pageActive} from "@/api/active/active"; export default { name: 'Exchange', @@ -480,9 +484,9 @@ export default { if (index == 1) { this.queryParams.type = "" this.handleQuery() - } else { + } else if (index == 2) { this.queryParams.type = "" - this.getOldList() + this.handleOldQuery() } }, indexType(id) { @@ -537,17 +541,49 @@ export default { this.queryParams.type = null this.getOldList() }, - - - routerPush(id) { + // 删除活动信息 + deleteActive(data) { + this.$modal.confirm('是否删除本条数据,删除后无法恢复!').then(function () { + return deleteActive(data.id); + }).then(() => { + this.handleQuery() + this.handleOldQuery() + this.$modal.msgSuccess("删除成功"); + }).catch(() => { + }); + }, + // 修改活动状态 + editStatus(data) { + let str = data.activeStatus=='1' ? "停用" : "启用" + this.$modal.confirm('是否'+str+'本条数据!').then(function () { + return editActiveStatus(data.id); + }).then(() => { + this.handleQuery() + this.handleOldQuery() + this.$modal.msgSuccess(str+"成功"); + }).catch(() => { + }); + }, + routerPush(id,type,data) { + let activeId = "" + if (data){ + if (data.type=='3') id = 11 + if (data.type=='4') id = 5 + if (data.type=='5') id = 3 + if (data.type=='6') id = 1 + if (data.type=='7') id = 4 + if (data.type=='8') id = 6 + if (data.type=='9') id = 7 + if (data.type=='10') id = 8 + activeId = data.activeId + } this.$router.push({ path: '/EventMarketing/openCardGift/index', query: { id: id, - + activeId:activeId } }); - // this.$router.push('/EventMarketing/openCardGift/index') }, // 跳转其他页面 goOtherPage(id, type) { diff --git a/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue b/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue index 5fe8b7f30..48b819bed 100644 --- a/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue +++ b/fuintAdmin/src/views/EventMarketing/liJianMarketing/index.vue @@ -343,6 +343,7 @@ import {addActiveSubPrice, editActiveSubPrice, getActiveSubPrice} from "@/api/Ev export default { name: "LiJianMarketing", dicts: ['payment_type'], + props:['activeId'], data() { return { ruleForm: { @@ -412,8 +413,10 @@ export default { } }, created() { - // 查询信息 - // this.getInfo() + if (this.activeId) { + // 查询信息 + this.getInfo() + } this.listUserGrade() this.getUserLabelList() this.getOilList() @@ -453,7 +456,7 @@ export default { }) }, getInfo() { - getActiveSubPrice().then(res => { + getActiveSubPrice(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.timeSlots) { diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue index a05c88825..0658743e7 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue @@ -34,7 +34,8 @@ - 设置生日有礼赠送时间,例:0表示会员生日当天赠送,1表示提前1天赠送,2表示提前2天赠送,以此类推。最多提前30天 + 设置生日有礼赠送时间,例:0表示会员生日当天赠送,1表示提前1天赠送,2表示提前2天赠送,以此类推。最多提前30天
@@ -135,6 +136,7 @@ import {addActiveBirthday, editActiveBirthday, getActiveBirthday} from "@/api/Ev export default { name: "ActiveNewlyweds", + props: ["activeId"], data() { return { opendetails: false, @@ -210,8 +212,8 @@ export default { }, ruleForm: { - activeTimeType:0, - courtesyReward:[] + activeTimeType: 0, + courtesyReward: [] }, ifWrite: true, tindex1: 0, @@ -220,7 +222,7 @@ export default { ], couponList: [], // 优惠券列表信息 - cardCouponList:[], + cardCouponList: [], userGradeList: [], // 表单校验 rules: { @@ -249,35 +251,36 @@ export default { }; }, created() { - // this.getList() - // this.getInfo() + if (this.activeId) { + this.getInfo() + } this.getCardCoupon() this.listUserGrade() }, methods: { listUserGrade() { - listUserGrade({page:1,pageSize:1000}).then(res => { + listUserGrade({page: 1, pageSize: 1000}).then(res => { if (res.code == 200) { this.userGradeList = res.data.records } }) }, - getCardCoupon(){ - listCardCoupon({status:1,putType:1}).then(res => { + getCardCoupon() { + listCardCoupon({status: 1, putType: 1}).then(res => { this.cardCouponList = res.data.records }) }, - getInfo(){ - getActiveBirthday().then(res => { + getInfo() { + getActiveBirthday(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.courtesyReward) this.ruleForm.courtesyReward = res.data.courtesyReward.split(",") if (res.data.activeTimeType) this.tindex1 = res.data.activeTimeType if (res.data.couponList) this.couponList = res.data.couponList - }else { + } else { this.ruleForm = { - activeTimeType:0, - courtesyReward:[] + activeTimeType: 0, + courtesyReward: [] } this.tindex1 = 0 } @@ -299,8 +302,8 @@ export default { this.ruleForm.activeTimeType = index }, submitRuleForm(formName) { - if (this.tindex1 == 1){ - if (!this.ruleForm.activeStartTime || !this.ruleForm.activeEndTime){ + if (this.tindex1 == 1) { + if (!this.ruleForm.activeStartTime || !this.ruleForm.activeEndTime) { this.$message.error("请选择活动开始时间") return } @@ -315,7 +318,7 @@ export default { // this.getInfo() this.$router.push({path: "/EventMarketing/center/index", query: {id: '4'}}) }); - }else { + } else { addActiveBirthday(this.ruleForm).then(response => { this.$modal.msgSuccess("新增成功"); // this.getInfo() diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/index.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/index.vue index 6a504a384..ea66c3093 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/index.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/index.vue @@ -7,16 +7,16 @@ {{ title }}
- - - - + + + + - - - - + + + +
@@ -46,10 +46,14 @@ export default { data() { return { id: '', - title: "" + title: "", + activeId:"", } }, created() { + if (this.$route.query.activeId) { + this.activeId = this.$route.query.activeId + } this.id = this.$route.query.id if (this.id == 1) { if (this.$route.query.type && this.$route.query.type == "edit") { diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue index beebb77c2..cb773590c 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue @@ -124,6 +124,7 @@ import { export default { name: "ActiveNewlyweds", + props: ['activeId'], data() { return { opendetails: false, @@ -231,8 +232,9 @@ export default { }; }, created() { - // this.getList() - // this.getInfo() + if (this.activeId) { + this.getInfo() + } this.getCardCoupon() }, methods: { @@ -242,7 +244,7 @@ export default { }) }, getInfo() { - getActiveRecommendInfo().then(res => { + getActiveRecommendInfo(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.rewardDisplay) { diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue index 7f02ed048..d039202ef 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue @@ -161,6 +161,7 @@ import {addActivePopUp, editActivePopUp, getActivePopUp} from "@/api/EventMarket export default { name: "ActiveNewlyweds", dicts: ['payment_type'], + props:['activeId'], data() { return { opendetails: false, @@ -290,8 +291,9 @@ export default { }; }, created() { - // this.getList() - // this.getInfo() + if (this.activeId) { + this.getInfo() + } this.getCardCoupon() this.listUserGrade() }, @@ -322,7 +324,7 @@ export default { }) }, getInfo(){ - getActivePopUp().then(res => { + getActivePopUp(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.courtesyReward) this.ruleForm.courtesyReward = res.data.courtesyReward.split(",") diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue index e87d2a91b..ec1ce4e3b 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue @@ -155,6 +155,7 @@ import { export default { name: "ActiveNewlyweds", dicts: ['payment_type'], + props:['activeId'], data() { return { opendetails: false, @@ -276,8 +277,9 @@ export default { }; }, created() { - // this.getList() - // this.getInfo() + if (this.activeId) { + this.getInfo() + } this.getCardCoupon() this.listUserGrade() this.getOilList() @@ -319,7 +321,7 @@ export default { }) }, getInfo(){ - getActiveUserConsume().then(res => { + getActiveUserConsume(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.paymentType) this.ruleForm.paymentType = res.data.paymentType.split(",") diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue index c3a02b766..b6b351789 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue @@ -140,6 +140,7 @@ import { export default { name: "ActiveNewlyweds", dicts: ['payment_type'], + props:['activeId'], data() { return { opendetails: false, @@ -252,8 +253,9 @@ export default { }; }, created() { - // this.getList() - // this.getInfo() + if (this.activeId) { + this.getInfo() + } this.getCardCoupon() this.listUserGrade() }, @@ -271,7 +273,7 @@ export default { }) }, getInfo(){ - getActiveUserRecharge().then(res => { + getActiveUserRecharge(this.activeId).then(res => { if (res.data) { this.ruleForm = res.data if (res.data.courtesyReward) this.ruleForm.courtesyReward = res.data.courtesyReward.split(",") diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/controller/ActiveAppletController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/controller/ActiveAppletController.java index 269e80c0c..8a278d993 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/controller/ActiveAppletController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/controller/ActiveAppletController.java @@ -48,7 +48,7 @@ public class ActiveAppletController extends BaseController { /** * 分页查询主表信息 * - * @param pageNo 分页参数 + * @param page 分页参数 * @param pageSize 分页参数 * @param activeApplet ActiveApplet实体 * @return com.fuint.framework.web.ResponseObject @@ -145,5 +145,35 @@ public class ActiveAppletController extends BaseController { return getSuccessResult(this.activeAppletService.removeByIds(idList)); } + + /** + * 删除数据 + * + * @param id 主键结合 + * @return 删除结果 + */ + @DeleteMapping("delete/{id}") + public ResponseObject deleteById(@PathVariable Integer id) { + try { + SysLog sysLog = new SysLog(); + sysLog.setSystemName("2"); + sysLog.setMoudle("营销中心"); + sysLog.setContent("删除油站活动"); + sysLogService.saveVo(sysLog); + } catch (Exception ignored) { + } + + return getSuccessResult(this.activeAppletService.deleteById(id)); + } + + /** + * 修改状态信息 + * @param id + * @return + */ + @GetMapping("editStatus/{id}") + public ResponseObject editStatus(@PathVariable Integer id) { + return getSuccessResult(activeAppletService.updateActiveStatus(id)); + } } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java index 8d5165595..ffb31b1ee 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java @@ -40,5 +40,26 @@ public interface ActiveAppletService extends IService { * @return */ int insertActiveApplet(ActiveApplet activeApplet); + + /** + * 根据id删除信息 + * @param id + * @return + */ + int deleteById(Integer id); + + /** + * 修改启用状态 + * @param id + * @return + */ + int updateActiveStatus(Integer id); + + /** + * 根据活动id查询信息 + * @param activeId + * @return + */ + ActiveApplet selectByActiveId(Integer activeId,String type); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java index 5149bb45e..15ef55412 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java @@ -8,12 +8,20 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.fuint.business.marketingActivity.activeApplet.mapper.ActiveAppletMapper; import com.fuint.business.marketingActivity.activeApplet.entity.ActiveApplet; import com.fuint.business.marketingActivity.activeApplet.service.ActiveAppletService; +import com.fuint.business.marketingActivity.activeBirthday.service.ActiveBirthdayService; +import com.fuint.business.marketingActivity.activeConsumption.service.ActiveConsumptionService; +import com.fuint.business.marketingActivity.activeNewlyweds.service.ActiveNewlywedsService; +import com.fuint.business.marketingActivity.activePopUp.service.ActivePopUpService; +import com.fuint.business.marketingActivity.activePrice.service.ActiveSubPriceService; +import com.fuint.business.marketingActivity.activeRecommend.service.ActiveRecommendService; +import com.fuint.business.marketingActivity.activeUserConsume.service.ActiveUserConsumeService; +import com.fuint.business.marketingActivity.activeUserRecharge.service.ActiveUserRechargeService; import com.fuint.business.userManager.entity.LJUserGrade; import com.fuint.business.userManager.service.LJUserGradeService; import com.fuint.common.dto.AccountInfo; import com.fuint.common.util.TokenUtil; import com.fuint.utils.StringUtil; -import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -30,8 +38,41 @@ public class ActiveAppletServiceImpl extends ServiceImpl applet(ActiveApplet activeApplet) { @@ -46,11 +87,11 @@ public class ActiveAppletServiceImpl extends ServiceImpl(); - queryWrapper.eq("store_id",storeId); - queryWrapper.eq("type",type); - queryWrapper.eq("active_id",activeId); + queryWrapper.eq("store_id", storeId); + queryWrapper.eq("type", type); + queryWrapper.eq("active_id", activeId); ActiveApplet activeApplet = baseMapper.selectOne(queryWrapper); - if (ObjectUtil.isNotEmpty(activeApplet)){ + if (ObjectUtil.isNotEmpty(activeApplet)) { if (isonline.equals("1")) activeApplet.setActiveStatus("2"); if (isonline.equals("0")) activeApplet.setActiveStatus("1"); activeApplet.setIsonline(isonline); @@ -69,17 +110,17 @@ public class ActiveAppletServiceImpl extends ServiceImpl pageActive(Page page, ActiveApplet activeApplet) { - IPage result = activeAppletMapper.pageActive(page,activeApplet); + IPage result = activeAppletMapper.pageActive(page, activeApplet); // 查询用户等级信息 List ljUserGrades = userGradeService.selectUserGradeAll(TokenUtil.getNowAccountInfo().getStoreId()); result.getRecords().forEach(item -> { item.setTypeText(replaceType(item.getType())); String userGradeName = ""; - if (ObjectUtil.isNotEmpty(item.getAdaptUserType())){ + if (ObjectUtil.isNotEmpty(item.getAdaptUserType())) { String[] gradeIds = item.getAdaptUserType().split(","); for (String gradeId : gradeIds) { for (LJUserGrade ljUserGrade : ljUserGrades) { - if (gradeId.equals(ljUserGrade.getId().toString())){ + if (gradeId.equals(ljUserGrade.getId().toString())) { userGradeName += ljUserGrade.getName() + ","; } } @@ -98,13 +139,74 @@ public class ActiveAppletServiceImpl extends ServiceImpl list = baseMapper.selectList(queryWrapper); + for (ActiveApplet applet : list) { + applet.setActiveStatus("2"); + baseMapper.updateById(applet); + } + } + activeApplet.setActiveStatus(activeApplet.getActiveStatus().equals("1") ? "2" : "1"); + activeApplet.setIsonline(activeApplet.getActiveStatus().equals("1") ? "1" : "0"); + return baseMapper.updateById(activeApplet); + } + + @Override + public ActiveApplet selectByActiveId(Integer activeId,String type) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("active_id", activeId); + queryWrapper.eq("type",type); + queryWrapper.eq("store_id", TokenUtil.getNowAccountInfo().getStoreId()); + return baseMapper.selectOne(queryWrapper); + } + /** * 类型转换 - * @author PQZ - * @date 22:34 2024/9/9 + * * @param type 活动类型 * @return java.lang.String - **/ + * @author PQZ + * @date 22:34 2024/9/9 + **/ public String replaceType(String type) { if (StringUtil.isNotBlank(type)) { type = type.replace("10", "弹窗营销"); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/controller/ActiveBirthdayController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/controller/ActiveBirthdayController.java index 5c81d075e..9cfbc9f0f 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/controller/ActiveBirthdayController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/controller/ActiveBirthdayController.java @@ -76,6 +76,5 @@ public class ActiveBirthdayController extends BaseController { public ResponseObject deleteById(@PathVariable Integer id) { return getSuccessResult(activeBirthdayService.deleteById(id)); } - } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/service/impl/ActiveBirthdayServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/service/impl/ActiveBirthdayServiceImpl.java index dbcdcbcfa..9f2b1eff5 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/service/impl/ActiveBirthdayServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeBirthday/service/impl/ActiveBirthdayServiceImpl.java @@ -40,7 +40,10 @@ public class ActiveBirthdayServiceImpl extends ServiceImpl activeBirthdayChildren = activeBirthdayChildService.queryByActiveId(activeBirthday.getId()); + activeBirthday.setCouponList(activeBirthdayChildren); + return activeBirthday; } @Override @@ -105,9 +108,9 @@ public class ActiveBirthdayServiceImpl extends ServiceImpl { * @return */ int updateActiveConsumption(ActiveConsumption activeConsumption); + + /** + * 根据id删除信息 + * @param id + * @return + */ + int deleteById(Integer id); + + /** + * 根据id查询信息 + * @param id + * @return + */ + ActiveConsumption selectById(Integer id); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java index 085297d69..c6d7a3d2b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java @@ -647,6 +647,8 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl activeConsumptionChildren = activeConsumptionChildService.selectByActiveId(activeConsumption.getId(), "0"); + activeConsumption.setPointList(activeConsumptionChildren); + List activeConsumptionChildren1 = activeConsumptionChildService.selectByActiveId(activeConsumption.getId(), "3"); + activeConsumption.setGrowthValueList(activeConsumptionChildren1); + List activeConsumptionChildren2 = activeConsumptionChildService.selectByActiveId(activeConsumption.getId(), "1"); + activeConsumption.setCouponList(activeConsumptionChildren2); + return activeConsumption; + } + /** * 数组转字符串 * @param array diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/controller/ActiveNewlywedsController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/controller/ActiveNewlywedsController.java index 489038ea7..d0fd0094b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/controller/ActiveNewlywedsController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/controller/ActiveNewlywedsController.java @@ -209,5 +209,10 @@ public class ActiveNewlywedsController extends BaseController { public ResponseObject edit(@RequestBody ActiveNewlyweds activeNewlyweds){ return getSuccessResult(activeNewlywedsService.updateActiveNewlyweds(activeNewlyweds)); } + + @GetMapping("getInfoById/{id}") + public ResponseObject getInfoById(@PathVariable Integer id){ + return getSuccessResult(activeNewlywedsService.getInfoById(id)); + } } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/ActiveNewlywedsService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/ActiveNewlywedsService.java index f1dafc8a8..857c16cd9 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/ActiveNewlywedsService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/ActiveNewlywedsService.java @@ -84,5 +84,19 @@ public interface ActiveNewlywedsService extends IService { * @return */ int updateActiveNewlyweds(ActiveNewlyweds activeNewlyweds); + + /** + * 根据id删除信息 + * @param id + * @return + */ + int deleteById(Integer id); + + /** + * 根据id查询 + * @param id + * @return + */ + ActiveNewlyweds getInfoById(Integer id); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java index fc8017105..8e7ea19cb 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeNewlyweds/service/impl/ActiveNewlywedsServiceImpl.java @@ -641,6 +641,7 @@ public class ActiveNewlywedsServiceImpl extends ServiceImpl activeNewlywedsChildren = activeNewlywedsChildService.selectByActiveId(id); + activeNewlyweds.setCouponList(activeNewlywedsChildren); + return activeNewlyweds; + } + /** * 数组转字符串 * diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/impl/ActivePopUpServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/impl/ActivePopUpServiceImpl.java index 5b85c1cd6..9187a1925 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/impl/ActivePopUpServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePopUp/service/impl/ActivePopUpServiceImpl.java @@ -40,7 +40,10 @@ public class ActivePopUpServiceImpl extends ServiceImpl activePopUpChildren = activePopUpChildService.selectByActivePopUpId(activePopUp.getId()); + activePopUp.setCouponList(activePopUpChildren); + return activePopUp; } /** @@ -80,10 +83,10 @@ public class ActivePopUpServiceImpl extends ServiceImpl { */ ActiveSubPrice selectByStoreId(); + /*** + * 根据id删除立减营销信息 + * @param id + * @return + */ + int deleteActiveSubPriceById(Integer id); + } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePrice/service/impl/ActiveSubPriceServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePrice/service/impl/ActiveSubPriceServiceImpl.java index 3ec6e6838..2a6249e78 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePrice/service/impl/ActiveSubPriceServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activePrice/service/impl/ActiveSubPriceServiceImpl.java @@ -19,6 +19,7 @@ import com.fuint.quartz.util.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -54,6 +55,11 @@ public class ActiveSubPriceServiceImpl extends ServiceImpl activeSubPriceRules = activeSubPriceRuleService.listByActSubId(activeSubPrice.getId(),"0"); + result.setOrderList(activeSubPriceRules); + List activeSubPriceRules1 = activeSubPriceRuleService.listByActSubId(activeSubPrice.getId(),"1"); + result.setRefuelList(activeSubPriceRules1); return result; } @@ -83,8 +89,10 @@ public class ActiveSubPriceServiceImpl extends ServiceImpl activeSubPriceRules = new ArrayList<>(); + activeSubPriceRules.addAll(saveVO.getOrderList()); + activeSubPriceRules.addAll(saveVO.getRefuelList()); + activeSubPriceRuleService.saveActiveSubPriceRule(activeSubPrice.getId(),activeSubPriceRules); if (isAdd){ // 往总表插入信息 @@ -142,5 +150,12 @@ public class ActiveSubPriceServiceImpl extends ServiceImpl { */ ActiveRecommend selectByStoreId(); + /** + * 添加信息 + * @param activeRecommend + * @return + */ int insertActiveRecommend(ActiveRecommend activeRecommend); + /** + * 修改信息 + * @param activeRecommend + * @return + */ int updateActiveRecommend(ActiveRecommend activeRecommend); + + /** + * 根据id删除信息 + * @param id + * @return + */ + int deleteById(Integer id); + + /** + * 根据id查询 + * @param id + * @return + */ + ActiveRecommend selectById(Integer id); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java index f85b4b60e..163326a9f 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java @@ -632,6 +632,8 @@ public class ActiveRecommendServiceImpl extends ServiceImpl activeRecommendChildren = activeRecommendChildService.selectList(id); + activeRecommend.setCouponList(activeRecommendChildren); + return activeRecommend; + } + /** * 数组转字符串 * @param array diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeUserConsume/service/impl/ActiveUserConsumeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeUserConsume/service/impl/ActiveUserConsumeServiceImpl.java index d56d0622a..0b78cee02 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeUserConsume/service/impl/ActiveUserConsumeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeUserConsume/service/impl/ActiveUserConsumeServiceImpl.java @@ -40,7 +40,10 @@ public class ActiveUserConsumeServiceImpl extends ServiceImpl activeUserConsumeChildren = activeUserConsumeChildService.selectByActiveUserConsumeId(id); + activeUserConsume.setCouponList(activeUserConsumeChildren); + return activeUserConsume; } /** @@ -80,10 +83,10 @@ public class ActiveUserConsumeServiceImpl extends ServiceImpl activeUserRechargeChildren = activeUserRechargeChildService.selectByUserRechargeId(id); + activeUserRecharge.setCouponList(activeUserRechargeChildren); + return activeUserRecharge; } /** @@ -82,10 +85,10 @@ public class ActiveUserRechargeServiceImpl extends ServiceImpl