xucaiqin 6 天之前
父节点
当前提交
8558723259
共有 1 个文件被更改,包括 0 次插入181 次删除
  1. 0 181
      sckw-modules/sckw-payment/src/main/resources/mapper/WalletMapper.xml

+ 0 - 181
sckw-modules/sckw-payment/src/main/resources/mapper/WalletMapper.xml

@@ -1,181 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-<!-- 钱包表(wallet) -->
-<mapper namespace="com.sckw.payment.mapper.WalletMapper">
-    <!-- This code was generated by TableGo tools, mark 1 begin. -->
-    <!-- 字段映射 -->
-    <resultMap id="walletMap" type="com.sckw.payment.entity.Wallet">
-        <id     column="id"                    property="id" />
-        <result column="ent_id"                property="entId" />
-        <result column="tran_no"               property="tranNo" />
-        <result column="openacct_no"           property="openacctNo" />
-        <result column="customer_no"           property="customerNo" />
-        <result column="auth_id"               property="authId" />
-        <result column="settle_acct"           property="settleAcct" />
-        <result column="balance_acct"          property="balanceAcct" />
-        <result column="un_pwd_acct"           property="unPwdAcct" />
-        <result column="bank_name"             property="bankName" />
-        <result column="bank_code"             property="bankCode" />
-        <result column="bank_card_no"          property="bankCardNo" />
-        <result column="notice_url"            property="noticeUrl" />
-        <result column="notice_flag"           property="noticeFlag" />
-        <result column="audit_flag"            property="auditFlag" />
-        <result column="remark"                property="remark" />
-        <result column="settle_flag"           property="settleFlag" />
-        <result column="create_time"           property="createTime" />
-        <result column="update_time"           property="updateTime" />
-        <result column="del_flag"              property="delFlag" />
-    </resultMap>
-
-    <!-- 表所有字段 -->
-    <sql id="allColumns">
-        w.id, w.ent_id, w.tran_no, w.openacct_no, w.customer_no, w.auth_id, w.settle_acct, w.balance_acct,
-        w.un_pwd_acct, w.bank_name, w.bank_code, w.bank_card_no, w.notice_url, w.notice_flag, w.audit_flag, w.remark,
-        w.settle_flag, w.create_time, w.update_time, w.del_flag
-    </sql>
-    <!-- This code was generated by TableGo tools, mark 1 end. -->
-
-    <!-- 分页查询钱包表列表 -->
-    <select id="selectWalletList" resultMap="walletMap">
-        SELECT
-            <include refid="allColumns" />
-        FROM wallet w WHERE w.DEL_FLAG = '0'
-        <if test="entId != null and entId != ''">
-            AND w.ent_id = #{entId}
-        </if>
-        <if test="tranNo != null and tranNo != ''">
-            AND w.tran_no LIKE CONCAT('%', #{tranNo}, '%')
-        </if>
-    </select>
-
-    <!-- 根据主键ID查询钱包表 -->
-    <select id="selectWalletById" resultMap="walletMap">
-        SELECT
-            <include refid="allColumns" />
-        FROM wallet w WHERE w.id = #{id}
-    </select>
-
-    <!-- 根据企业ID查询钱包表 -->
-    <select id="selectWalletByEntId" resultType="com.sckw.payment.entity.Wallet">
-        SELECT
-        <include refid="allColumns" />
-        FROM wallet w WHERE w.ent_id = #{entId} AND w.DEL_FLAG = '0' limit 1;
-    </select>
-
-
-    <!-- 根据主键ID列表查询钱包表列表 -->
-    <select id="selectWalletByIds" resultMap="walletMap">
-        SELECT
-            <include refid="allColumns" />
-        FROM wallet w WHERE w.id IN
-        <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </select>
-
-    <!-- This code was generated by TableGo tools, mark 2 begin. -->
-    <!-- 新增钱包表 -->
-    <insert id="insertWallet" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
-        INSERT INTO wallet
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="entId != null">ent_id,</if>
-            <if test="tranNo != null">tran_no,</if>
-            <if test="openacctNo != null">openacct_no,</if>
-            <if test="customerNo != null">customer_no,</if>
-            <if test="authId != null">auth_id,</if>
-            <if test="settleAcct != null">settle_acct,</if>
-            <if test="balanceAcct != null">balance_acct,</if>
-            <if test="unPwdAcct != null">un_pwd_acct,</if>
-            <if test="bankName != null">bank_name,</if>
-            <if test="bankCode != null">bank_code,</if>
-            <if test="bankCardNo != null">bank_card_no,</if>
-            <if test="noticeUrl != null">notice_url,</if>
-            <if test="noticeFlag != null">notice_flag,</if>
-            <if test="auditFlag != null">audit_flag,</if>
-            <if test="remark != null">remark,</if>
-            <if test="settleFlag != null">settle_flag,</if>
-            <if test="createTime != null">create_time,</if>
-            <if test="updateTime != null">update_time,</if>
-            <if test="delFlag != null">del_flag</if>
-        </trim>
-        <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="entId != null">#{entId},</if>
-            <if test="tranNo != null">#{tranNo},</if>
-            <if test="openacctNo != null">#{openacctNo},</if>
-            <if test="customerNo != null">#{customerNo},</if>
-            <if test="authId != null">#{authId},</if>
-            <if test="settleAcct != null">#{settleAcct},</if>
-            <if test="balanceAcct != null">#{balanceAcct},</if>
-            <if test="unPwdAcct != null">#{unPwdAcct},</if>
-            <if test="bankName != null">#{bankName},</if>
-            <if test="bankCode != null">#{bankCode},</if>
-            <if test="bankCardNo != null">#{bankCardNo},</if>
-            <if test="noticeUrl != null">#{noticeUrl},</if>
-            <if test="noticeFlag != null">#{noticeFlag},</if>
-            <if test="auditFlag != null">#{auditFlag},</if>
-            <if test="remark != null">#{remark},</if>
-            <if test="settleFlag != null">#{settleFlag},</if>
-            <if test="createTime != null">#{createTime},</if>
-            <if test="updateTime != null">#{updateTime},</if>
-            <if test="delFlag != null">#{delFlag}</if>
-        </trim>
-    </insert>
-
-    <!-- 修改钱包表 -->
-    <update id="updateWallet">
-        UPDATE wallet
-        <set>
-            <if test="entId != null">ent_id = #{entId},</if>
-            <if test="tranNo != null">tran_no = #{tranNo},</if>
-            <if test="openacctNo != null">openacct_no = #{openacctNo},</if>
-            <if test="customerNo != null">customer_no = #{customerNo},</if>
-            <if test="authId != null">auth_id = #{authId},</if>
-            <if test="settleAcct != null">settle_acct = #{settleAcct},</if>
-            <if test="balanceAcct != null">balance_acct = #{balanceAcct},</if>
-            <if test="unPwdAcct != null">un_pwd_acct = #{unPwdAcct},</if>
-            <if test="bankName != null">bank_name = #{bankName},</if>
-            <if test="bankCode != null">bank_code = #{bankCode},</if>
-            <if test="bankCardNo != null">bank_card_no = #{bankCardNo},</if>
-            <if test="noticeUrl != null">notice_url = #{noticeUrl},</if>
-            <if test="noticeFlag != null">notice_flag = #{noticeFlag},</if>
-            <if test="auditFlag != null">audit_flag = #{auditFlag},</if>
-            <if test="remark != null">remark = #{remark},</if>
-            <if test="settleFlag != null">settle_flag = #{settleFlag},</if>
-            <if test="createTime != null">create_time = #{createTime},</if>
-            <if test="updateTime != null">update_time = #{updateTime},</if>
-            <if test="delFlag != null">del_flag = #{delFlag}</if>
-        </set>
-        WHERE id = #{id}
-    </update>
-    <!-- This code was generated by TableGo tools, mark 2 end. -->
-
-    <!-- 删除钱包表 -->
-    <delete id="deleteWalletById">
-        DELETE FROM wallet WHERE id = #{id}
-    </delete>
-
-    <!-- 批量删除钱包表 -->
-    <delete id="deleteWalletByIds">
-        DELETE FROM wallet WHERE id IN
-        <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-
-    <!-- 批量逻辑删除钱包表 -->
-    <update id="deleteWalletLogicByIds">
-        UPDATE wallet
-        <set>
-            DEL_FLAG = '1',
-            UPDATE_TIME = NOW(),
-            <if test="updateBy != null and updateBy != ''">UPDATE_BY = #{updateBy}</if>
-        </set>
-        WHERE DEL_FLAG = '0' AND id IN
-        <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </update>
-</mapper>