| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?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">
- <!-- namespace±ØÐëÖ¸ÏòDAO½Ó¿Ú -->
- <mapper namespace="com.jpsoft.enterprise.modules.base.dao.AccountInfoDAO">
- <resultMap id="AccountInfoMap" type="com.jpsoft.enterprise.modules.base.entity.AccountInfo">
- <id property="id" column="id_" />
- <result property="accountName" column="account_name" />
- <result property="accountBank" column="account_bank" />
- <result property="accountNo" column="account_no" />
- <result property="wxMchid" column="wx_mchid" />
- <result property="appAuthToken" column="app_auth_token" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="delFlag" column="del_flag" />
- </resultMap>
- <insert id="insert" parameterType="com.jpsoft.enterprise.modules.base.entity.AccountInfo">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into base_account_info
- (id_,account_name,account_bank,account_no,wx_mchid,app_auth_token,create_by,create_time,update_by,update_time,del_flag)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{accountName,jdbcType=VARCHAR}
- ,#{accountBank,jdbcType=VARCHAR}
- ,#{accountNo,jdbcType=VARCHAR}
- ,#{wxMchid,jdbcType=VARCHAR}
- ,#{appAuthToken,jdbcType=VARCHAR}
- ,#{createBy,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{delFlag,jdbcType= NUMERIC }
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from base_account_info where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.enterprise.modules.base.entity.AccountInfo">
- update base_account_info
- <set>
- <if test="accountName!=null">
- account_name=#{accountName,jdbcType=VARCHAR},
- </if>
- <if test="accountBank!=null">
- account_bank=#{accountBank,jdbcType=VARCHAR},
- </if>
- <if test="accountNo!=null">
- account_no=#{accountNo,jdbcType=VARCHAR},
- </if>
- <if test="wxMchid!=null">
- wx_mchid=#{wxMchid,jdbcType=VARCHAR},
- </if>
- <if test="appAuthToken!=null">
- app_auth_token=#{appAuthToken,jdbcType=VARCHAR},
- </if>
- <if test="createBy!=null">
- create_by=#{createBy,jdbcType=VARCHAR},
- </if>
- <if test="createTime!=null">
- create_time=#{createTime,jdbcType= TIMESTAMP },
- </if>
- <if test="updateBy!=null">
- update_by=#{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="updateTime!=null">
- update_time=#{updateTime,jdbcType= TIMESTAMP },
- </if>
- <if test="delFlag!=null">
- del_flag=#{delFlag,jdbcType= NUMERIC },
- </if>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="AccountInfoMap">
- select
- id_,account_name,account_bank,account_no,wx_mchid,app_auth_token,create_by,create_time,update_by,update_time,del_flag from base_account_info where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from base_account_info where id_=#{0}
- </select>
- <select id="list" resultMap="AccountInfoMap">
- select * from base_account_info
- </select>
- <select id="search" parameterType="hashmap" resultMap="AccountInfoMap">
- <![CDATA[
- select * from base_account_info
- ]]>
- <where>
- <if test="searchParams.id != null">
- and ID_ like #{searchParams.id}
- </if>
- </where>
- <foreach item="sort" collection="sortList" open="order by" separator=",">
- ${sort.name} ${sort.order}
- </foreach>
- </select>
- </mapper>
|