From 5dedf6c30f0864ae7c4fd3c47c74b057f2360156 Mon Sep 17 00:00:00 2001
From: zhouxiantao <1026371446@qq.com>
Date: Tue, 03 Sep 2024 10:07:54 +0800
Subject: [PATCH] 小程序开发

---
 dyh-service/dyh-cust/src/main/java/cn/huge/module/pauser/dao/mapper/xml/PaAccountMapper.xml |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/pauser/dao/mapper/xml/PaAccountMapper.xml b/dyh-service/dyh-cust/src/main/java/cn/huge/module/pauser/dao/mapper/xml/PaAccountMapper.xml
index 928cba3..6e45fad 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/pauser/dao/mapper/xml/PaAccountMapper.xml
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/pauser/dao/mapper/xml/PaAccountMapper.xml
@@ -90,7 +90,7 @@
                     and limit_time = #{terms.limitTime}
                 </if>
                 <if test="terms.deleteStatus = null and terms.deleteStatus =''">
-                    and delete_status = '0'
+                    and delete_status = 0
                 </if>
                 <if test="terms.deleteStatus != null and terms.deleteStatus !=''">
                     and delete_status = #{terms.deleteStatus}
@@ -175,4 +175,27 @@
         limit #{page.offset}, #{page.size}
     </select>
 
+    <!-- SeCustWechatDTO结果集 -->
+    <resultMap id="seCustWechatDTO" type="cn.huge.module.oper.dto.SeCustWechatDTO">
+        <result property="id" column="id"/>
+        <result property="custId" column="cust_id"/>
+        <result property="mainId" column="main_id"/>
+        <result property="mainName" column="main_name"/>
+        <result property="mainAcc" column="main_acc"/>
+        <result property="mainPower" column="main_power"/>
+        <result property="appid" column="appid"/>
+        <result property="secret" column="secret"/>
+        <result property="token" column="token"/>
+        <result property="aeskey" column="aeskey"/>
+        <result property="msgDataFormat" column="msg_data_format"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateTime" column="update_time"/>
+    </resultMap>
+    <!-- 根据appid查询小程序配置 -->
+    <select id="getSeCustWechatByAppid" resultMap="seCustWechatDTO">
+        SELECT
+            *
+        FROM dyh_se_cust_wechat
+        WHERE appid = #{appid}
+    </select>
 </mapper> 
\ No newline at end of file

--
Gitblit v1.8.0