From 75d8b0ad39a7eb04f72ef8654dbb895322f07cfd Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 21 Oct 2025 13:41:42 +0800
Subject: [PATCH] feat(ai): 新增会员答题分页及详情查询功能 - 在 AiMemberAnswerMapper 中新增 getAnswerPage 方法及对应 XML 查询语句 - 新增 ApiMemberAnswerPageDto 和 ApiMemberAnswerPageVo 用于分页查询参数和返回结果 - 在 AiMemberAnswerService 及其实现类中添加 getAnswerPage 方法 - 在 AiMemberService 及其实现类中新增 answerPage 和 answerInfo 接口实现 - 新增 ApiMemberAnswerInfoDto 和 ApiMemberAnswerInfoVo 用于答题详情接口参数和响应 - 在 ApiMemberController 中增加 /answerPage 和 /answerInfo两个 POST 接口 - 优化 AiMemberTeamPracticeVo,增加 memberUuid 字段 - 统一导入包路径,简化代码结构

---
 src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html b/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html
index c8ce3c3..7281f70 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html
@@ -34,6 +34,13 @@
 
                                 <blockquote class="layui-elem-quote blue-border">规则</blockquote>
                                 <div class="layui-form-item">
+                                    <label class="layui-form-label">满减规则:</label>
+                                    <div class="layui-input-block">
+                                        <input type="radio" name="type" value="1" title="满减卷。满100只减10"  checked/>
+                                        <input type="radio" name="type" value="2" title="累计满减卷。每满100减10" />
+                                    </div>
+                                </div>
+                                <div class="layui-form-item">
                                     <label class="layui-form-label febs-form-item-require">满足:</label>
                                     <div class="layui-input-inline" style="width: 80px">
                                         <input type="text" name="costAmount" lay-verify="required" autocomplete="off" class="layui-input" >
@@ -131,6 +138,12 @@
 
 
         form.on('submit(coupon-rule-add-form-submit)', function (data) {
+            let type = data.field.type;
+            let costAmount = data.field.costAmount;
+            if(type == 2 && costAmount <= 0){
+                febs.alert.warn("累计满减卷,满足金额不能为0");
+                return false;
+            }
             let couponRuleList = couponRule.getValue();
             if (couponRuleList.length > 0) {
                 var couponIds = [];

--
Gitblit v1.9.1