diff --git a/fuintAdmin/src/views/system/dict/data.vue b/fuintAdmin/src/views/system/dict/data.vue
index b9729388a..d6df3d7ab 100644
--- a/fuintAdmin/src/views/system/dict/data.vue
+++ b/fuintAdmin/src/views/system/dict/data.vue
@@ -22,8 +22,14 @@
+
+
+
+
+
+
-
+
+
@@ -135,8 +142,13 @@
+
+
+
+
+
{{dict.label}}
@@ -160,7 +172,7 @@ import { listType, getType } from "@/api/system/dict/type";
export default {
name: "Data",
- dicts: ['sys_normal_disable'],
+ dicts: ['sys_normal_disable','zhzt'],
props:{
id:{
type:String,
diff --git a/fuintAdmin/src/views/system/dict/index.vue b/fuintAdmin/src/views/system/dict/index.vue
index 989b8831c..0bb2cbb27 100644
--- a/fuintAdmin/src/views/system/dict/index.vue
+++ b/fuintAdmin/src/views/system/dict/index.vue
@@ -30,8 +30,14 @@
clearable
style="width: 240px"
>
+
+
+
+
+
+
-
+
+
@@ -137,8 +144,13 @@
+
+
+
+
+
{{dict.label}}
@@ -161,7 +173,7 @@
export default {
name: "Dict",
- dicts: ['sys_normal_disable'],
+ dicts: ['sys_normal_disable','zhzt'],
data() {
return {
// 遮罩层
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/controller/FyPayController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/controller/FyPayController.java
index ea8323e9b..e4b7b4248 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/controller/FyPayController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/controller/FyPayController.java
@@ -5,6 +5,7 @@ import com.fuint.api.fuyou.entity.Const;
import com.fuint.api.fuyou.service.FyPayService;
import com.fuint.api.fuyou.util.Utils;
import com.fuint.business.integral.service.IntegralOrdersService;
+import com.fuint.business.marketingActivity.cardValue.service.CardValueRecordService;
import com.fuint.business.order.entity.AllOrderInfo;
import com.fuint.business.order.entity.OilOrder;
import com.fuint.business.order.service.AllOrderInfoService;
@@ -31,7 +32,9 @@ public class FyPayController {
@Autowired
@Lazy
private IntegralOrdersService integralOrdersService;
-
+ @Autowired
+ @Lazy
+ private CardValueRecordService cardValueRecordService;
@Autowired
@Lazy
private AllOrderInfoService allOrderInfoService;
@@ -62,7 +65,7 @@ public class FyPayController {
}
updateOrderStatus(orderNo,allOrderInfo.getType());
-// 修改油品订单支付状态
+// 修改订单支付状态
redisLock.unlock(orderLock);
}
// transaction_id 加锁
@@ -72,12 +75,14 @@ public class FyPayController {
}
}
public void updateOrderStatus(String orderNo,String type){
- if ("油品订单".equals(type)) {
+ if ("1".equals(type)) {
orderService.updateOrderStatus(orderNo,"paid");
}else if ("积分订单".equals(type)) {
integralOrdersService.editPayStatus(orderNo,"paid",-1);
integralOrdersService.checkTheStatusOfYourPaymentByIntegral(orderNo);
+ }else if ("3".equals(type)){
+ cardValueRecordService.rechargeFinallDeal(orderNo);
}
}
}
\ No newline at end of file
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
index 4cc6f5b98..7f4151cee 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
@@ -394,6 +394,7 @@ public class OilOrderServiceImpl extends ServiceImpl i
cashierOrder.setGoodsOrderId(goodsOrder1.getId());
}
cashierOrderService.insertCashierOrder(cashierOrder);
+ this.insertAllOrderInfo(orderNo,storeId,oilAmount,payType,userId,"PC");
return orders;
}
@@ -506,7 +507,7 @@ public class OilOrderServiceImpl extends ServiceImpl i
cashierOrder.setOilOrderId(oilOrder.getId());
cashierOrderService.insertCashierOrder(cashierOrder);
this.updateGrowthValue1(oilAmount,userId, Integer.valueOf(oilOrder.getOils()),0.0);
- this.insertAllOrderInfo(orderNo,accountInfo.getStoreId(),oilAmount,map.get("payType"),userId);
+ this.insertAllOrderInfo(orderNo,accountInfo.getStoreId(),oilAmount,map.get("payType"),userId,"applet");
res.put("success","success");
} else {
@@ -580,7 +581,7 @@ public class OilOrderServiceImpl extends ServiceImpl i
}
cashierOrderService.insertCashierOrder(cashierOrder);
- this.insertAllOrderInfo(orderNo,accountInfo.getStoreId(),oilAmount,map.get("payType"),userId);
+ this.insertAllOrderInfo(orderNo,accountInfo.getStoreId(),oilAmount,map.get("payType"),userId,"applet");
res.put("success","success");
}
@@ -600,15 +601,15 @@ public class OilOrderServiceImpl extends ServiceImpl i
/**
* 添加所有订单信息
*/
- private void insertAllOrderInfo(String orderNo,Integer storeId,Double goodsMoney,String payType,Integer userId){
+ private void insertAllOrderInfo(String orderNo,Integer storeId,Double goodsMoney,String payType,Integer userId,String payChannel){
AllOrderInfo allOrderInfo = new AllOrderInfo();
allOrderInfo.setOrderNo(orderNo);
- allOrderInfo.setType("油品订单");
+ allOrderInfo.setType("1");
allOrderInfo.setStoreId(storeId);
allOrderInfo.setGoodsMoney(goodsMoney);
allOrderInfo.setPayType(payType);
allOrderInfo.setUserId(userId);
- allOrderInfo.setPayChannel("applet");
+ allOrderInfo.setPayChannel(payChannel);
allOrderInfo.setStatus("paid");
allOrderInfo.setContent("油品订单");
allOrderInfoService.insertAllOrderInfo(allOrderInfo);
@@ -752,7 +753,7 @@ public class OilOrderServiceImpl extends ServiceImpl i
// 处理支付需要的数据
ReceiveParameter receiveParameter = new ReceiveParameter();
receiveParameter.setOrderNo(orderNo);
- receiveParameter.setType("油品订单");
+ receiveParameter.setType("1");
receiveParameter.setContent("油品订单");
receiveParameter.setGoodsMoney(oilOrder.getOrderAmount());
receiveParameter.setStoreId(oilOrder.getStoreId());
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/FeedbackController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/FeedbackController.java
new file mode 100644
index 000000000..368c45773
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/FeedbackController.java
@@ -0,0 +1,44 @@
+package com.fuint.business.userManager.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.Feedback;
+import com.fuint.business.userManager.entity.FixingLevel;
+import com.fuint.business.userManager.service.FeedbackService;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+@RestController
+@RequestMapping("/business/userManager/feedback")
+public class FeedbackController extends BaseController {
+ @Autowired
+ private FeedbackService feedbackService;
+
+ /**
+ * 根据条件分页查询意见反馈信息
+ * @param feedback
+ * @param pageNo
+ * @param pageSize
+ * @return
+ */
+ @GetMapping("/list")
+ public ResponseObject list(Feedback feedback,
+ @RequestParam(value = "page",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
+ Page page =new Page(pageNo,pageSize);
+ IPage list = feedbackService.selectFeedbackList(page,feedback);
+ return getSuccessResult(list);
+ }
+
+ /**
+ * 添加意见反馈信息
+ * @param feedback
+ * @return
+ */
+ @PostMapping
+ public ResponseObject add(@RequestBody Feedback feedback){
+ return getSuccessResult(feedbackService.insertFeedback(feedback));
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/Feedback.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/Feedback.java
new file mode 100644
index 000000000..ad0144489
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/Feedback.java
@@ -0,0 +1,138 @@
+package com.fuint.business.userManager.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fuint.framework.entity.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.io.Serializable;
+
+/**
+ * 意见反馈表(Feedback)实体类
+ *
+ * @author makejava
+ * @since 2023-12-26 11:57:22
+ */
+@Data
+@TableName("feedback")
+@ApiModel(value = "Feedback对象", description = "意见反馈表")
+public class Feedback extends BaseEntity implements Serializable {
+ private static final long serialVersionUID = 1L;
+ /**
+ * 主键
+ */
+ @ApiModelProperty("自增ID")
+ @TableId(value = "ID", type = IdType.AUTO)
+ private Integer id;
+ /**
+ * 店铺id
+ */
+ private Integer storeId;
+ /**
+ * 用户id
+ */
+ private Integer userId;
+ /**
+ * 截图路径
+ */
+ private String screenshotUrl;
+ /**
+ * 反馈内容
+ */
+ private String content;
+ /**
+ * 创建时间
+ */
+ private Date createTime;
+ /**
+ * 创建人
+ */
+ private String createBy;
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+ /**
+ * 更新人
+ */
+ private String updateBy;
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getStoreId() {
+ return storeId;
+ }
+
+ public void setStoreId(Integer storeId) {
+ this.storeId = storeId;
+ }
+
+ public Integer getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Integer userId) {
+ this.userId = userId;
+ }
+
+ public String getScreenshotUrl() {
+ return screenshotUrl;
+ }
+
+ public void setScreenshotUrl(String screenshotUrl) {
+ this.screenshotUrl = screenshotUrl;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getCreateBy() {
+ return createBy;
+ }
+
+ public void setCreateBy(String createBy) {
+ this.createBy = createBy;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public String getUpdateBy() {
+ return updateBy;
+ }
+
+ public void setUpdateBy(String updateBy) {
+ this.updateBy = updateBy;
+ }
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/FeedbackMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/FeedbackMapper.java
new file mode 100644
index 000000000..29c7692e4
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/FeedbackMapper.java
@@ -0,0 +1,17 @@
+package com.fuint.business.userManager.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.Feedback;
+import org.apache.ibatis.annotations.Param;
+
+public interface FeedbackMapper extends BaseMapper {
+ /**
+ * 根据条件查询意见反馈信息
+ * @param page
+ * @param feedback
+ * @return
+ */
+ public IPage selectFeedbackList(Page page,@Param("feedback") Feedback feedback);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/FeedbackMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/FeedbackMapper.xml
new file mode 100644
index 000000000..997b7b098
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/FeedbackMapper.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ select * from feedback
+
+
+
+
\ No newline at end of file
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/FeedbackService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/FeedbackService.java
new file mode 100644
index 000000000..8453f936b
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/FeedbackService.java
@@ -0,0 +1,26 @@
+package com.fuint.business.userManager.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.business.userManager.entity.Feedback;
+
+/**
+ * 意见反馈信息 业务层
+ */
+public interface FeedbackService extends IService {
+ /**
+ * 根据条件分页查询意见反馈信息
+ * @param page
+ * @param feedback
+ * @return
+ */
+ IPage selectFeedbackList(Page page, Feedback feedback);
+
+ /**
+ * 添加意见反馈信息
+ * @param feedback
+ * @return
+ */
+ int insertFeedback(Feedback feedback);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/FeedbackServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/FeedbackServiceImpl.java
new file mode 100644
index 000000000..db3b97bfa
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/FeedbackServiceImpl.java
@@ -0,0 +1,26 @@
+package com.fuint.business.userManager.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.userManager.entity.Feedback;
+import com.fuint.business.userManager.mapper.FeedbackMapper;
+import com.fuint.business.userManager.service.FeedbackService;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import org.springframework.stereotype.Service;
+
+@Service
+public class FeedbackServiceImpl extends ServiceImpl implements FeedbackService {
+ @Override
+ public IPage selectFeedbackList(Page page, Feedback feedback) {
+ return baseMapper.selectFeedbackList(page,feedback);
+ }
+
+ @Override
+ public int insertFeedback(Feedback feedback) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ feedback.setUserId(nowAccountInfo.getId());
+ return baseMapper.insert(feedback);
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java
index e763c08db..23823d0e2 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java
@@ -78,7 +78,12 @@ public class LJUserGradeServiceImpl extends ServiceImpl¥{{oilPrice}}/{{oilUnit}}
-
+
切换站点
@@ -265,7 +265,7 @@
method: 'get',
}).then((res)=>{
_this.oilNumberList = res.data;
- if (res.data != null){
+ if (res.data != null && res.data!=""){
_this.getOilGun(res.data[0].numberId);
_this.oilPrice = res.data[0].gbPrice
_this.oilUnit = res.data[0].unit
diff --git a/gasStation-uni/pagesHome/QRcode/QRcode.vue b/gasStation-uni/pagesHome/QRcode/QRcode.vue
index 1867c211f..893071d6b 100644
--- a/gasStation-uni/pagesHome/QRcode/QRcode.vue
+++ b/gasStation-uni/pagesHome/QRcode/QRcode.vue
@@ -16,8 +16,9 @@
- 2023 **** **** 5523
- 查看数字
+
+ {{barCode}}
+ 查看数字
@@ -109,6 +110,8 @@
{key:"oilStorageCard",value:"囤油卡扣款"},
],
value:"储值卡扣款",
+ barCode:"",
+ isLook:false,
}
},
onLoad() {
@@ -120,6 +123,17 @@
},
methods: {
+ // 是否查看数字
+ lookNumber(){
+ if (this.isLook){
+ this.barCode = this.option.code.slice(0,4) + " **** **** " + this.option.code.slice(this.option.code.length-5,this.option.code.length-1)
+ this.isLook = false
+ }else{
+ this.barCode = this.option.code.replace(/(.{4})/g, '$1 ')
+ this.isLook = true
+ }
+ // console.log(this.barCode)
+ },
// 倒计时刷新
countdown(){
let _this = this
@@ -151,8 +165,9 @@
url: 'business/qrCode/createBarCode',
method: 'get',
}).then(res => {
- console.log(res,111)
+ // console.log(res,111)
this.option.code = res.data
+ this.barCode = res.data.slice(0,4) + " **** **** " + res.data.slice(res.data.length-5,res.data.length-1)
})
},
// 获取二维码信息
@@ -161,7 +176,7 @@
url: 'business/qrCode/createQrCode',
method: 'get',
}).then(res => {
- console.log(2222,res)
+ // console.log(2222,res)
this.options.code = res.data
})
},
diff --git a/gasStation-uni/pagesMy/feedback/feedback.vue b/gasStation-uni/pagesMy/feedback/feedback.vue
index 48bdf5f6d..ff703fa59 100644
--- a/gasStation-uni/pagesMy/feedback/feedback.vue
+++ b/gasStation-uni/pagesMy/feedback/feedback.vue
@@ -2,7 +2,7 @@