diff --git a/fuintAdmin/.env.development b/fuintAdmin/.env.development
index 473d93732..41a54452d 100644
--- a/fuintAdmin/.env.development
+++ b/fuintAdmin/.env.development
@@ -11,7 +11,7 @@ VUE_APP_BASE_API = '/dev-api'
VUE_APP_PUBLIC_PATH = '/'
# 后端接口地址
-VUE_APP_SERVER_URL = 'http://192.168.31.95:8080/'
+VUE_APP_SERVER_URL = 'http://127.0.0.1:8080/'
# http://192.168.0.121:8080/
diff --git a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue
index 9d7ec7f4a..6dc6ced3d 100644
--- a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue
@@ -270,6 +270,22 @@
+
+
+ 不限
+ 自定义
+
+
+
+
+
+
+
+
{
+ this.goodsList = response.data.records;
+ });
+ },
sxCoupon(id) {
getCoupon(id).then(res => {
if (res.code == 200) {
@@ -925,6 +952,7 @@ export default {
pageNo: 1,
pageSize: 10
}
+ this.goodsList = [];
this.getlist();
},
getlist() {
@@ -1062,8 +1090,8 @@ export default {
if (this.ruleForm.oilNumber) {
this.ruleForm.oilNumber = this.ruleForm.oilNumber.toString()
}
-
-
+ let productIds = this.ruleForm.productIdList + ''
+ this.ruleForm.productIds = productIds
if (!this.ruleForm.id) {
addCardCoupon(this.ruleForm).then(res => {
@@ -1071,6 +1099,7 @@ export default {
this.$message.success('添加成功');
this.gettj()
this.getlist()
+ this.centerDialogVisible = false
} else {
this.$message.error('操作失败请稍后再试');
}
@@ -1083,6 +1112,7 @@ export default {
this.$message.success('修改成功');
this.gettj()
this.getlist()
+ this.centerDialogVisible = false
} else {
this.$message.error('操作失败请稍后再试');
}
@@ -1092,7 +1122,6 @@ export default {
}
- this.centerDialogVisible = false
}
}
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponController.java
index 95331d536..4a7945e98 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponController.java
@@ -10,6 +10,7 @@ import com.fuint.business.marketingActivity.cardCoupon.entity.CardCoupon;
import com.fuint.business.marketingActivity.cardCoupon.service.CardCouponService;
import com.fuint.business.marketingActivity.cardGiftActive.entity.CardGiftActive;
import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.StringUtils;
import com.fuint.common.util.TokenUtil;
import com.fuint.framework.web.BaseController;
import com.fuint.framework.web.ResponseObject;
@@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.io.Serializable;
+import java.util.Arrays;
import java.util.List;
/**
@@ -59,7 +61,14 @@ public class CardCouponController extends BaseController {
*/
@GetMapping("{id}")
public ResponseObject selectOne(@PathVariable Serializable id) {
- return getSuccessResult(this.cardCouponService.getById(id));
+ CardCoupon cardCoupon = cardCouponService.getById(id);
+ if (StringUtils.isNotEmpty(cardCoupon.getProductIds())){
+ String[] array = cardCoupon.getProductIds().split(",");
+ // 转换为列表
+ List list = Arrays.asList(array);
+ cardCoupon.setProductIdList(list);
+ }
+ return getSuccessResult(cardCoupon);
}
/**
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCoupon.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCoupon.java
index 33da5ad28..d0a30dbab 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCoupon.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCoupon.java
@@ -13,6 +13,7 @@ import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
+import java.util.List;
/**
* 油站优惠卷表2024(CardCoupon)表实体类
@@ -138,6 +139,8 @@ public class CardCoupon extends Model {
//当次获取数量
@TableField(exist = false)
private Integer giftCardTotal;
+ @TableField(exist = false)
+ private List productIdList;
}
diff --git a/fuintBackend/fuint-application/src/main/resources/application.properties b/fuintBackend/fuint-application/src/main/resources/application.properties
index 1fa299b97..1ce626a3f 100644
--- a/fuintBackend/fuint-application/src/main/resources/application.properties
+++ b/fuintBackend/fuint-application/src/main/resources/application.properties
@@ -1,7 +1,8 @@
# \u57FA\u672C\u914D\u7F6E
server.port=8080
env.profile=dev
-env.properties.path=D:/my_project/oil-station/fuintBackend/configure/
+#env.properties.path=D:/my_project/oil-station/fuintBackend/configure/
+env.properties.path=D:/Code/yuzhan/oil-station/fuintBackend/configure/
#env.properties.path=F:/work/oilSystem/fuintBackend/configure/
#env.properties.path=D:/oil/new-oil/oilSystem/fuintBackend/configure/
#env.properties.path=D:/work/oilSystem/fuintBackend/configure/