From a6754af1932bcc0dfe30c809d97111cd521d54f5 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Sun, 10 Nov 2024 21:31:49 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/UserWithdrawMapper.xml |   48 +++++++++++++++++-------------------------------
 1 files changed, 17 insertions(+), 31 deletions(-)

diff --git a/src/main/resources/mapper/UserWithdrawMapper.xml b/src/main/resources/mapper/UserWithdrawMapper.xml
index 7fc67ae..3082694 100644
--- a/src/main/resources/mapper/UserWithdrawMapper.xml
+++ b/src/main/resources/mapper/UserWithdrawMapper.xml
@@ -2,22 +2,20 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
 <mapper namespace="com.nq.dao.UserWithdrawMapper" >
   <resultMap id="BaseResultMap" type="com.nq.pojo.UserWithdraw" >
-    <constructor >
-      <idArg column="id" jdbcType="INTEGER" javaType="java.lang.Integer" />
-      <arg column="user_id" jdbcType="INTEGER" javaType="java.lang.Integer" />
-      <arg column="nick_name" jdbcType="VARCHAR" javaType="java.lang.String" />
-      <arg column="agent_id" jdbcType="INTEGER" javaType="java.lang.Integer" />
-      <arg column="with_amt" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
-      <arg column="apply_time" jdbcType="TIMESTAMP" javaType="java.util.Date" />
-      <arg column="trans_time" jdbcType="TIMESTAMP" javaType="java.util.Date" />
-      <arg column="with_name" jdbcType="VARCHAR" javaType="java.lang.String" />
-      <arg column="bank_no" jdbcType="VARCHAR" javaType="java.lang.String" />
-      <arg column="bank_name" jdbcType="VARCHAR" javaType="java.lang.String" />
-      <arg column="bank_address" jdbcType="VARCHAR" javaType="java.lang.String" />
-      <arg column="with_status" jdbcType="INTEGER" javaType="java.lang.Integer" />
-      <arg column="with_fee" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
-      <arg column="with_msg" jdbcType="VARCHAR" javaType="java.lang.String" />
-    </constructor>
+      <id column="id" jdbcType="INTEGER" property="id" />
+      <result column="user_id"   property="userId" />
+      <result column="nick_name"  property="nickName" />
+      <result column="agent_id" property="agentId" />
+      <result column="with_amt"  property="withAmt" />
+      <result column="apply_time"  property="applyTime"/>
+      <result column="trans_time"  property="transTime" />
+      <result column="with_name"  property="withName"/>
+      <result column="bank_no"   property="bankNo"/>
+      <result column="bank_name"   property="bankName"/>
+      <result column="bank_address"  property="bankAddress" />
+      <result column="with_status"  property="withStatus"/>
+      <result column="with_fee"  property="withFee"/>
+      <result column="with_msg"  property="withMsg"/>
   </resultMap>
   <sql id="Base_Column_List" >
     id, user_id, nick_name, agent_id, with_amt, apply_time, trans_time, with_name, bank_no, 
@@ -25,7 +23,7 @@
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
     select 
-    <include refid="Base_Column_List" />
+    *
     from user_withdraw
     where id = #{id,jdbcType=INTEGER}
   </select>
@@ -33,18 +31,6 @@
     delete from user_withdraw
     where id = #{id,jdbcType=INTEGER}
   </delete>
-  <insert id="insert" parameterType="com.nq.pojo.UserWithdraw" >
-    insert into user_withdraw (id, user_id, nick_name, 
-      agent_id, with_amt, apply_time, 
-      trans_time, with_name, bank_no, 
-      bank_name, bank_address, with_status, 
-      with_fee, with_msg)
-    values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{nickName,jdbcType=VARCHAR}, 
-      #{agentId,jdbcType=INTEGER}, #{withAmt,jdbcType=DECIMAL}, #{applyTime,jdbcType=TIMESTAMP}, 
-      #{transTime,jdbcType=TIMESTAMP}, #{withName,jdbcType=VARCHAR}, #{bankNo,jdbcType=VARCHAR}, 
-      #{bankName,jdbcType=VARCHAR}, #{bankAddress,jdbcType=VARCHAR}, #{withStatus,jdbcType=INTEGER}, 
-      #{withFee,jdbcType=DECIMAL}, #{withMsg,jdbcType=VARCHAR})
-  </insert>
   <insert id="insertSelective" parameterType="com.nq.pojo.UserWithdraw" >
     insert into user_withdraw
     <trim prefix="(" suffix=")" suffixOverrides="," >
@@ -233,9 +219,9 @@
     ORDER BY id DESC
   </select>
 
-  <select id="listByAdmin" resultMap="BaseResultMap" parameterType="map">
+  <select id="listByAdmin" resultType="com.nq.pojo.UserWithdraw" parameterType="map">
     SELECT
-    <include refid="Base_Column_List"/>
+   *
     FROM user_withdraw
     where agent_id != 1
       <if test="agentId != null">

--
Gitblit v1.9.3