From 1fe8922e14c5c074c4bdd26b8c037f0c6bb31287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Wed, 28 Feb 2024 17:06:16 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E6=9C=89=E7=A4=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CardExchangeRecordController.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeRecordController.java index 75694a474..85751d979 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeRecordController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeRecordController.java @@ -2,10 +2,14 @@ package com.fuint.business.marketingActivity.cardExchange.controller; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.fuint.business.marketingActivity.cardExchange.dto.CardExchangeRecordDTO; +import com.fuint.business.marketingActivity.cardExchange.entity.CardExchange; import com.fuint.business.marketingActivity.cardExchange.entity.CardExchangeRecord; import com.fuint.business.marketingActivity.cardExchange.service.CardExchangeRecordService; +import com.fuint.business.marketingActivity.cardExchange.service.CardExchangeService; import com.fuint.business.member.entity.LJStaff; import com.fuint.business.member.service.ILJStaffService; +import com.fuint.business.order.entity.LJOrder; +import com.fuint.business.order.service.LJOrderService; import com.fuint.common.dto.AccountInfo; import com.fuint.common.util.TokenUtil; import com.fuint.framework.web.BaseController; @@ -15,6 +19,7 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.io.Serializable; +import java.util.Date; import java.util.List; /** @@ -33,6 +38,10 @@ public class CardExchangeRecordController extends BaseController { private CardExchangeRecordService cardExchangeRecordService; @Resource private ILJStaffService iljStaffService; + @Resource + private CardExchangeService cardExchangeService; + @Resource + private LJOrderService ljOrderService; /** * 分页查询所有数据 @@ -114,6 +123,20 @@ public class CardExchangeRecordController extends BaseController { LJStaff ljStaff = iljStaffService.selectStaffById(nowAccountInfo.getStaffId()); cardExchangeRecord.setRealName(ljStaff.getRealName()); cardExchangeRecord.setStaffMobile(ljStaff.getMobile()); + Integer cardExchangeId = cardExchangeRecord.getCardExchangeId(); + CardExchange cardExchange = cardExchangeService.getById(cardExchangeId); + Integer giftId = cardExchange.getGiftId(); + LJOrder ljOrder = new LJOrder(); + ljOrder.setTerminal("pc"); + ljOrder.setPayUser(cardExchangeRecord.getMobile()); + ljOrder.setStoreId(nowAccountInfo.getStoreId()); + ljOrder.setUserId(cardExchangeRecord.getMtUserId()); + ljOrder.setGoodsNum(1); + ljOrder.setPayType("0"); + ljOrder.setStatus("paid"); + ljOrder.setPayTime(new Date()); + ljOrder.setStaffId(nowAccountInfo.getStaffId()); + ljOrderService.addGoodOrder(ljOrder,giftId); return getSuccessResult(this.cardExchangeRecordService.updateById(cardExchangeRecord)); } From c79e5b3e9a140d7dca874b426ae51fed7f4c064d Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Wed, 28 Feb 2024 18:02:53 +0800 Subject: [PATCH 2/5] bug --- .../src/views/convenienceStore/goodsFile.vue | 2 +- fuintAdmin/src/views/member/index.vue | 50 +++++------ .../service/impl/LJUserServiceImpl.java | 9 +- .../src/api/cashier/balancecardrecord.js | 3 +- .../views/cashier/NewComponents/homeindex.vue | 9 +- .../cashier/vipComponents/balanceList.vue | 5 ++ .../views/cashier/vipComponents/vipList.vue | 89 ++++++++++--------- gasStation-uni/pages/index/index.vue | 47 +++++----- gasStation-uni/pages/my/my.vue | 4 +- gasStation-uni/pages/refuel/refuel.vue | 21 +++-- gasStation-uni/pagesLogin/login/login.vue | 9 +- .../pagesRefuel/orderDetail/index.vue | 2 + 12 files changed, 137 insertions(+), 113 deletions(-) diff --git a/fuintAdmin/src/views/convenienceStore/goodsFile.vue b/fuintAdmin/src/views/convenienceStore/goodsFile.vue index 80926eebf..a92177301 100644 --- a/fuintAdmin/src/views/convenienceStore/goodsFile.vue +++ b/fuintAdmin/src/views/convenienceStore/goodsFile.vue @@ -91,7 +91,7 @@ -
+
- + @@ -268,31 +268,31 @@ 批量导入会员
-
- - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - -
+ + + + + + + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java index 5ccc62698..46bdbc34d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java @@ -12,6 +12,7 @@ import com.fuint.business.storeInformation.service.ILJStoreService; import com.fuint.business.userManager.entity.*; import com.fuint.business.userManager.mapper.LJUserMapper; import com.fuint.business.userManager.mapper.MtInvitationMapper; +import com.fuint.business.userManager.mapper.UserBalanceMapper; import com.fuint.business.userManager.service.*; import com.fuint.business.userManager.vo.LJUserVo; import com.fuint.common.dto.AccountInfo; @@ -34,6 +35,8 @@ public class LJUserServiceImpl extends ServiceImpl impleme @Autowired private UserBalanceService balanceService; @Autowired + private UserBalanceMapper userBalanceMapper; + @Autowired private ILJStoreService storeService; /** @@ -134,12 +137,14 @@ public class LJUserServiceImpl extends ServiceImpl impleme QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 0"); - Integer addNum = baseMapper.selectCount(queryWrapper); +// Integer addNum = baseMapper.selectCount(queryWrapper); + Integer addNum = userBalanceMapper.selectCount(queryWrapper); QueryWrapper queryWrapper1 = new QueryWrapper<>(); queryWrapper1.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 1"); - Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1); +// Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1); + Integer yesterdayAddNum = userBalanceMapper.selectCount(queryWrapper1); map.put("balance",balance); map.put("point",point); diff --git a/fuintCashierWeb/src/api/cashier/balancecardrecord.js b/fuintCashierWeb/src/api/cashier/balancecardrecord.js index 3ae0e1d11..6763fd7b8 100644 --- a/fuintCashierWeb/src/api/cashier/balancecardrecord.js +++ b/fuintCashierWeb/src/api/cashier/balancecardrecord.js @@ -19,10 +19,11 @@ export function listCardOilRecord(query) { } // 查询优惠券信息列表 -export function cardBalanceCount() { +export function cardBalanceCount(query) { return request({ url: '/business/CardBalanceChange/getBalanceStoreCount', method: 'get', + params: query }) } diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue index 06e2ad455..9e8d5e687 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue @@ -317,7 +317,7 @@
{{ item.memberPrice }}
+ @change="handleChange" :min="1" :max="item.stock">
@@ -3475,6 +3475,7 @@ if (goods[i].id == val.id) { if (val.stock0){ // for (let i =0;i<_this.oilPreferentialData.length;i++){ diff --git a/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue b/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue index 254aea939..1f27d6bae 100644 --- a/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue +++ b/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue @@ -651,6 +651,7 @@ import {oilNumbers} from "@/api/cashier/oilnumber"; if (val!=undefined){ this.queryParams.page = val } + this.dateRange = [] if (this.beginTime && this.endTime) { this.dateRange.push(this.beginTime.toLocaleDateString()) this.dateRange.push(this.endTime.toLocaleDateString()) @@ -665,10 +666,12 @@ import {oilNumbers} from "@/api/cashier/oilnumber"; if (val!=undefined){ this.queryParams.page = val } + this.dateRange = [] if (this.beginTime && this.endTime) { this.dateRange.push(this.beginTime.toLocaleDateString()) this.dateRange.push(this.endTime.toLocaleDateString()) } + console.log(this.dateRange) cardBalanceCount(this.addDateRange(this.queryParams, this.dateRange)).then(res => { this.inCount = res.data.inCount this.outCount = res.data.outCount @@ -681,6 +684,7 @@ import {oilNumbers} from "@/api/cashier/oilnumber"; if (val!=undefined){ this.queryParams.page = val } + this.dateRange = [] if (this.beginTime && this.endTime) { this.dateRange.push(this.beginTime.toLocaleDateString()) this.dateRange.push(this.endTime.toLocaleDateString()) @@ -695,6 +699,7 @@ import {oilNumbers} from "@/api/cashier/oilnumber"; if (val!=undefined){ this.queryParams.page = val } + this.dateRange = [] if (this.beginTime && this.endTime) { this.dateRange.push(this.beginTime.toLocaleDateString()) this.dateRange.push(this.endTime.toLocaleDateString()) diff --git a/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue b/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue index 569ddf6ca..00c28ad25 100644 --- a/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue +++ b/fuintCashierWeb/src/views/cashier/vipComponents/vipList.vue @@ -223,12 +223,12 @@ 禁用 - - - + + + + + +