From 2bf0a6db5926435a9f54bf6d9ce9aaacf7e20a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=B9=8F?= Date: Thu, 30 Jul 2026 16:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=85=85=E5=80=BC=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/app/service/impl/AppIntegralRecordServiceImpl.java | 5 ++++- ruoyi-ui/src/views/app/appIntegra/index.vue | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppIntegralRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppIntegralRecordServiceImpl.java index 3ec86c1..26ab36c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppIntegralRecordServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/app/service/impl/AppIntegralRecordServiceImpl.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.List; import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.StringUtils; import com.ruoyi.system.mapper.SysUserMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -99,7 +100,9 @@ public class AppIntegralRecordServiceImpl implements IAppIntegralRecordService @Override public int czAppIntegra(AppIntegralRecord appIntegralRecord) { - appIntegralRecord.setSource("充值积分"); + if (StringUtils.isBlank(appIntegralRecord.getSource())) { + appIntegralRecord.setSource("充值积分"); + } appIntegralRecord.setIsAdd(0L); appIntegralRecord.setIntegralTime(new Date()); int count = appIntegralRecordMapper.insertAppIntegralRecord(appIntegralRecord); diff --git a/ruoyi-ui/src/views/app/appIntegra/index.vue b/ruoyi-ui/src/views/app/appIntegra/index.vue index d2ff376..78490e0 100644 --- a/ruoyi-ui/src/views/app/appIntegra/index.vue +++ b/ruoyi-ui/src/views/app/appIntegra/index.vue @@ -187,6 +187,9 @@ + + + @@ -302,6 +305,7 @@ export default { /** 充值积分按钮操作 */ handleCzjf() { this.reset(); + this.form.source = "充值积分"; this.openCzjf = true; this.title = "充值积分"; },