From e6d10b40cf08fb35a73552aa4f0d2e9ac0b227df Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期三, 21 五月 2025 15:36:54 +0800
Subject: [PATCH] fix: 修复客户提交的订单类型,如果传的是0,替换为1

---
 ruoyi-system/src/main/resources/mapper/system/SysClientAppMapper.xml |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysClientAppMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysClientAppMapper.xml
index 2e3eca6..b60da7f 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysClientAppMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysClientAppMapper.xml
@@ -18,10 +18,17 @@
         <result property="updateBy"    column="update_by"    />
         <result property="updateTime"    column="update_time"    />
         <result property="remark"    column="remark"    />
+        <result property="minAppId"    column="min_app_id"    />
+        <result property="minAppSecret"    column="min_app_secret"    />
+        <result property="callbackUrl"    column="callback_url"    />
+        <result property="payUrl"    column="pay_url"    />
+        <result property="orderClass"    column="order_class"    />
+        <result property="userId"    column="user_id"    /> 
+        <result property="referrals"    column="referrals"    />
     </resultMap>
 
     <sql id="selectSysClientAppVo">
-        select app_id, client_name, app_key, security_key, valid_start_time, valid_end_time, status, del_flag, create_by, create_time, update_by, update_time, remark from sys_client_app
+        select app_id, client_name, app_key, security_key, valid_start_time, valid_end_time, status, del_flag, create_by, create_time, update_by, update_time, remark, min_app_id, min_app_secret, callback_url, pay_url, order_class, user_id, referrals from sys_client_app
     </sql>
 
     <select id="selectSysClientAppList" parameterType="SysClientApp" resultMap="SysClientAppResult">
@@ -40,6 +47,11 @@
         where app_id = #{appId}
     </select>
         
+    <select id="selectSysClientAppByAppKey" parameterType="String" resultMap="SysClientAppResult">
+        <include refid="selectSysClientAppVo"/>
+        where app_key = #{appKey} and del_flag = '0'
+    </select>
+        
     <insert id="insertSysClientApp" parameterType="SysClientApp" useGeneratedKeys="true" keyProperty="appId">
         insert into sys_client_app
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -55,6 +67,13 @@
             <if test="updateBy != null">update_by,</if>
             <if test="updateTime != null">update_time,</if>
             <if test="remark != null">remark,</if>
+            <if test="minAppId != null">min_app_id,</if>
+            <if test="minAppSecret != null">min_app_secret,</if>
+            <if test="callbackUrl != null">callback_url,</if>
+            <if test="payUrl != null">pay_url,</if>
+            <if test="orderClass != null">order_class,</if>
+            <if test="userId != null">user_id,</if>
+            <if test="referrals != null">referrals,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="clientName != null">#{clientName},</if>
@@ -69,6 +88,13 @@
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
             <if test="remark != null">#{remark},</if>
+            <if test="minAppId != null">#{minAppId},</if>
+            <if test="minAppSecret != null">#{minAppSecret},</if>
+            <if test="callbackUrl != null">#{callbackUrl},</if>
+            <if test="payUrl != null">#{payUrl},</if>
+            <if test="orderClass != null">#{orderClass},</if>
+            <if test="userId != null">#{userId},</if>
+            <if test="referrals != null">#{referrals},</if>
          </trim>
     </insert>
 
@@ -82,6 +108,13 @@
             <if test="validEndTime != null">valid_end_time = #{validEndTime},</if>
             <if test="status != null and status != ''">status = #{status},</if>
             <if test="remark != null">remark = #{remark},</if>
+            <if test="minAppId != null">min_app_id = #{minAppId},</if>
+            <if test="minAppSecret != null">min_app_secret = #{minAppSecret},</if>
+            <if test="callbackUrl != null">callback_url = #{callbackUrl},</if>
+            <if test="payUrl != null">pay_url = #{payUrl},</if>
+            <if test="orderClass != null">order_class = #{orderClass},</if>
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="referrals != null">referrals = #{referrals},</if>
             <if test="updateBy != null">update_by = #{updateBy},</if>
             update_time = sysdate()
         </set>

--
Gitblit v1.9.1