From 949bce54f150af0bdd7abe5c1e64b97d1369afe3 Mon Sep 17 00:00:00 2001 From: zhaotianfeng <12345678> Date: Wed, 18 Sep 2024 10:50:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=95=86=E5=93=81=E6=9F=A5=E8=AF=A2=20?= =?UTF-8?q?=E5=8A=A0=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integral/mapper/xml/IntegralGiftMapper.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml index dbf68e1c3..eeb764e6c 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralGiftMapper.xml @@ -92,10 +92,10 @@ mg.name goodsName from integral_gift ig left join integral_gift_category igc ON ig.category_id = igc.id - left join mt_goods mg ON ig.goods_id = mg.id + left join (select * from mt_goods where stock >0) mg ON ig.goods_id = mg.id - ig.store_id = #{integralGift.storeId} and mg.stock >0 - + ig.store_id = #{integralGift.storeId} + and ig.remaining_inventory >0 and ig.id = #{integralGift.id} @@ -135,9 +135,7 @@ and ig.total_inventory = #{integralGift.totalInventory} - - and ig.remaining_inventory = #{integralGift.remainingInventory} - + and ig.merchant_coupon_id = #{integralGift.merchantCouponId} From fd148c34047dc5c21916edbd9ecfed3c312644c9 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Wed, 18 Sep 2024 11:35:58 +0800 Subject: [PATCH 2/3] 9.18 --- .../views/EventMarketing/giftBlock/index.vue | 3 +- .../EventMarketing/newCertificate/index.vue | 16 ++--- .../openCardGift/userConsume.vue | 1 - fuintAdmin/src/views/order/order_Added.vue | 58 +++++++-------- fuintAdmin/src/views/order/order_Goods.vue | 70 ++++++++++++++----- fuintAdmin/src/views/order/order_Oil.vue | 54 +++++++++----- fuintAdmin/src/views/power/page/mode.vue | 2 +- .../impl/ActiveSubPriceServiceImpl.java | 12 ++-- .../order/mapper/xml/LJOrderMapper.xml | 6 ++ 9 files changed, 140 insertions(+), 82 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue index 8fca28402..b239ae181 100644 --- a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue +++ b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue @@ -297,13 +297,14 @@ - + diff --git a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue index 5e06294fd..698dc5efc 100644 --- a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue +++ b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue @@ -373,7 +373,7 @@
- 每周 + 每周 @@ -381,7 +381,7 @@
- 每月 + 每月 @@ -852,12 +852,12 @@ export default { }, addCertificate() { this.ruleForm = { - oilLimit: 1, - sySend: 0, - timeType: 1, - useWithOther: 0, - availableType: 1, - unAvailableType: 1, + oilLimit: '', + sySend: '', + timeType: '', + useWithOther: '', + availableType: '', + unAvailableType: '', name: '', number: '', quantity: '', diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue index 9585615bf..8a8bfb6f1 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue @@ -1,6 +1,5 @@ - + diff --git a/fuintAdmin/src/views/order/order_Goods.vue b/fuintAdmin/src/views/order/order_Goods.vue index 29738f086..58c5ca482 100644 --- a/fuintAdmin/src/views/order/order_Goods.vue +++ b/fuintAdmin/src/views/order/order_Goods.vue @@ -6,16 +6,53 @@ + + + + + + + + + + {{ item.realName }} + {{ item.mobile }} + + + + + + + + @@ -27,29 +64,19 @@ /> - + - - {{ item.realName }} - {{ item.mobile }} + - - - - - { this.terminalList = response.data; }) + getDicts("pay_status").then( response => { + this.payStatusList = response.data; + }) }, // 获取商品详情 getGoods(id){ diff --git a/fuintAdmin/src/views/order/order_Oil.vue b/fuintAdmin/src/views/order/order_Oil.vue index fce6b8fa4..f523b22fb 100644 --- a/fuintAdmin/src/views/order/order_Oil.vue +++ b/fuintAdmin/src/views/order/order_Oil.vue @@ -7,19 +7,18 @@ - + + - - - @@ -27,7 +26,7 @@ v-model="queryParams.oilGunNum" filterable clearable - placeholder="油枪号" + placeholder="请选择油号油枪" > + + + + + + + + + - + + + + + + - @@ -64,11 +84,6 @@ - - - - - 搜索 重置 - 导出订单 + 导出 @@ -280,6 +295,8 @@ terminalList:[], // 支付类型列表 payList:[], + // 订单状态列表 + payStatusList:[], // 油号列表 oilNameList:[], // 油枪列表 @@ -620,6 +637,9 @@ getDicts("payment_type").then( response => { this.payList = response.data; }) + getDicts("pay_status").then( response => { + this.payStatusList = response.data; + }) getOilNameList().then( response => { this.oilNameList = response.data; }) diff --git a/fuintAdmin/src/views/power/page/mode.vue b/fuintAdmin/src/views/power/page/mode.vue index 884c4d7d6..85be5168c 100644 --- a/fuintAdmin/src/views/power/page/mode.vue +++ b/fuintAdmin/src/views/power/page/mode.vue @@ -103,7 +103,7 @@
- + 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 2a6249e78..3a3ba71d4 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 @@ -73,12 +73,12 @@ public class ActiveSubPriceServiceImpl extends ServiceImpl and pay_type = #{order.payType} + + and status = #{order.status} + + + and terminal = #{order.terminal} + and order_no like concat('%', #{order.orderNo}, '%') From c111107dacc8809fd557a3fbc2d1621894e55759 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Wed, 18 Sep 2024 13:34:55 +0800 Subject: [PATCH 3/3] 9.18 --- .../activeConsumption/index.vue | 34 ++++++++++++++++++- .../EventMarketing/activeNewlyweds/index.vue | 11 ++++++ .../EventMarketing/openCardGift/birthday.vue | 12 +++++++ .../EventMarketing/openCardGift/invite.vue | 12 +++++++ .../EventMarketing/openCardGift/popUp.vue | 12 +++++++ .../openCardGift/userConsume.vue | 12 +++++++ .../openCardGift/userRecharge.vue | 12 +++++++ 7 files changed, 104 insertions(+), 1 deletion(-) diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index e24347795..6f58cc396 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -210,7 +210,7 @@ :label="item1.name" :value="item1.id">
- + { + if (!item.consumeAmount || !item.givePoints){ + flag = true + } + }) } } + if (flag){ + this.$message.error("请确保赠送积分信息已经填写!") + return; + } if (this.ruleForm.activeGift && this.ruleForm.activeGift.includes(3)) { if (!this.growthValueList || this.growthValueList.length == 0) { this.$message.error("请先选择赠送成长值信息!") return; + }else { + this.growthValueList.forEach(item => { + if (!item.consumeAmount || !item.giveGrowthValue){ + flag = true + } + }) } } + if (flag){ + this.$message.error("请确保赠送成长值信息已经填写!") + return; + } if (this.ruleForm.activeGift && this.ruleForm.activeGift.includes(1)) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal || !item.consumeAmount){ + flag = true + } + }) } } + if (flag){ + this.$message.error("请确保赠送优惠券信息已经填写!") + return; + } this.$refs[formName].validate((valid) => { if (valid) { // 使用时间段 diff --git a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue index 1babe130d..75813ad65 100644 --- a/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeNewlyweds/index.vue @@ -282,12 +282,23 @@ export default { return } } + let flag = false; if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("0")) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal){ + flag = true + } + }) } } + if (flag){ + this.$message.error("请先确保赠送优惠券信息已经填写!") + return; + } if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("3")) { if (!this.ruleForm.points) { this.$message.error("请输入赠送积分!") diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue index 71d3f89bd..b70553e54 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/birthday.vue @@ -309,12 +309,24 @@ export default { return } } + + let flag = false; if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("0")) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal){ + flag = true; + } + }) } } + if (flag){ + this.$message.error("请先确保赠送优惠券信息已经填写!") + return; + } if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("3")) { if (!this.ruleForm.points) { this.$message.error("请输入赠送积分!") diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue index 122a36f59..e3786eb93 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/invite.vue @@ -285,12 +285,24 @@ export default { return } } + + let flag = false; if (this.ruleForm.rewardDisplay && this.ruleForm.rewardDisplay.includes("0")) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal){ + flag = true; + } + }) } } + if (flag){ + this.$message.error("请先确保赠送优惠券信息已经填写!") + return; + } if (this.ruleForm.rewardDisplay && this.ruleForm.rewardDisplay.includes("3")) { if (!this.ruleForm.points) { this.$message.error("请输入赠送积分!") diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue index 8e1e7ce23..6e359bc59 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/popUp.vue @@ -375,12 +375,24 @@ export default { return } } + + let flag = false; if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("0")) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal){ + flag = true; + } + }) } } + if (flag){ + this.$message.error("请先确保赠送优惠券信息已经填写!") + return; + } this.$refs[formName].validate((valid) => { if (valid) { if (this.ruleForm.suitTimeSlotType==0){ diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue index 8a8bfb6f1..5d95f98be 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue @@ -364,12 +364,24 @@ export default { return } } + + let flag = false; if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("0")) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal){ + flag = true; + } + }) } } + if (flag){ + this.$message.error("请先确保赠送优惠券信息已经填写!") + return; + } if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("3")) { if (!this.ruleForm.points) { this.$message.error("请输入赠送积分!") diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue index f41dc30fe..ad1782012 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userRecharge.vue @@ -313,12 +313,24 @@ export default { return } } + + let flag = false; if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("0")) { if (!this.couponList || this.couponList.length == 0) { this.$message.error("请先选择赠送优惠券信息!") return; + }else { + this.couponList.forEach(item => { + if (!item.vouchersId || !item.giftCardTotal){ + flag = true; + } + }) } } + if (flag){ + this.$message.error("请先确保赠送优惠券信息已经填写!") + return; + } if (this.ruleForm.courtesyReward && this.ruleForm.courtesyReward.includes("3")) { if (!this.ruleForm.points) { this.$message.error("请输入赠送积分!")