From 519155c26305aa6d951f1a552680b51b24e9116c Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Wed, 6 Mar 2024 16:45:11 +0800
Subject: [PATCH 1/2] bug
---
.../src/api/EventMarketing/cardExchange.js | 2 +-
.../EventMarketing/cardExchange/index.vue | 24 ++++++++++++++++---
.../controller/CardExchangeController.java | 8 +++----
3 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/fuintAdmin/src/api/EventMarketing/cardExchange.js b/fuintAdmin/src/api/EventMarketing/cardExchange.js
index 1d5583fa9..19fd41c66 100644
--- a/fuintAdmin/src/api/EventMarketing/cardExchange.js
+++ b/fuintAdmin/src/api/EventMarketing/cardExchange.js
@@ -46,7 +46,7 @@ export function updateExchange(data) {
// 删除兑换券
export function delExchange(id) {
return request({
- url: '/system/exchange/' + id,
+ url: '/business/marketingActivity/cardExchange/' + id,
method: 'delete'
})
}
diff --git a/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue b/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue
index 7e2f08f4b..a76ecfb5c 100644
--- a/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue
@@ -125,7 +125,16 @@
@click="handleXia(scope.row)"
>下线
-
+ 删除
+
+
+
@@ -225,7 +234,7 @@ import {
delExchange,
addExchange,
updateExchange,
- getqueryGoods, exchangeInfo
+ getqueryGoods
} from '@/api/EventMarketing/cardExchange'
export default {
@@ -395,7 +404,7 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset()
- exchangeInfo(row.id).then(res => {
+ getExchange(row.id).then(res => {
this.form = res.data
})
// this.form = row
@@ -434,6 +443,15 @@ export default {
}
})
},
+ handleDelete(data){
+ delExchange(data.id).then(res => {
+ if (res.code == 200) {
+ this.$message.success('删除成功')
+ this.getList()
+ }
+ })
+ },
+
/** 上线操作 */
handleShang(row) {
let data = row
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeController.java
index 03d9a48b3..cf60ad1a3 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/controller/CardExchangeController.java
@@ -88,12 +88,12 @@ public class CardExchangeController extends BaseController {
/**
* 删除数据
*
- * @param idList 主键结合
+ * @param id 主键结合
* @return 删除结果
*/
- @DeleteMapping
- public ResponseObject delete(@RequestParam("idList") List idList) {
- return getSuccessResult(this.cardExchangeService.removeByIds(idList));
+ @DeleteMapping("/{id}")
+ public ResponseObject delete(@PathVariable Long id) {
+ return getSuccessResult(this.cardExchangeService.removeById(id));
}
}
From 3429ec8cbb51ef2379bbf0d7f04d169a5df573d1 Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Wed, 6 Mar 2024 17:26:37 +0800
Subject: [PATCH 2/2] bug
---
.../activeConsumption/index.vue | 2 +-
.../impl/ActiveConsumptionServiceImpl.java | 26 +++++++++++++++++++
.../service/impl/LJStaffServiceImpl.java | 2 ++
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue
index a22ca631e..82d54afc1 100644
--- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue
@@ -54,7 +54,7 @@
- {{ item }},
+ {{ item }},
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 49dcd3f21..2fc121785 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
@@ -1,5 +1,6 @@
package com.fuint.business.marketingActivity.activeConsumption.service.impl;
+import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
@@ -27,12 +28,15 @@ import com.fuint.business.marketingActivity.cardFavorable.service.CardFavorableS
import com.fuint.business.marketingActivity.cardFavorable.vo.CardFavorableVO;
import com.fuint.business.member.entity.LJStaff;
import com.fuint.business.member.service.ILJStaffService;
+import com.fuint.business.petrolStationManagement.entity.OilName;
import com.fuint.business.petrolStationManagement.service.OilNameService;
import com.fuint.business.store.service.StoreService;
import com.fuint.business.userManager.entity.LJUserGrade;
import com.fuint.business.userManager.service.LJUserGradeService;
import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.service.AccountService;
import com.fuint.common.util.TokenUtil;
+import com.fuint.repository.model.TAccount;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
@@ -83,6 +87,10 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl activeConsumptionVOList = records.stream().map(s ->{
ActiveConsumptionVO activeConsumptionVO = new ActiveConsumptionVO();
BeanUtils.copyProperties(s,activeConsumptionVO);
+
+ Integer[] array = Arrays.stream(s.getAdaptOil().split(","))
+ .map(Integer::valueOf)
+ .toArray(Integer[]::new);
+ String[] adaptOil = new String[array.length];
+ if (array.length>0) {
+ for (int i = 0;i impl
if (tAccount.getAccountName().matches("\\d+")) {
tAccount.setAccountName(staff.getMobile());
}
+ tAccount.setRealName(staff.getRealName());
try {
accountService.editAccount(tAccount, null);
} catch (Exception e) {
@@ -286,6 +287,7 @@ public class LJStaffServiceImpl extends ServiceImpl impl
if (tAccount.getAccountName().matches("\\d+")) {
tAccount.setAccountName(staff.getMobile());
}
+ tAccount.setRealName(staff.getRealName());
try {
accountService.editAccount(tAccount, null);
} catch (Exception e) {