| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <?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.employment.modules.base.dao.ArgonPartnerDAO">
- <resultMap id="ArgonPartnerMap" type="com.jpsoft.employment.modules.base.entity.ArgonPartner">
- <id property="id" column="id_" />
- <result property="name" column="name_" />
- <result property="location" column="location_" />
- <result property="contact" column="contact_" />
- <result property="phone" column="phone_" />
- <result property="introduction" column="introduction_" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- <result property="createBy" column="create_by" />
- <result property="updateBy" column="update_by" />
- <result property="delFlag" column="del_flag" />
- </resultMap>
- <insert id="insert" parameterType="ArgonPartner">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into base_argon_partner
- (id_,name_,location_,contact_,phone_,introduction_,create_time,update_time,create_by,update_by,del_flag)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{name,jdbcType=VARCHAR}
- ,#{location,jdbcType=VARCHAR}
- ,#{contact,jdbcType=VARCHAR}
- ,#{phone,jdbcType=VARCHAR}
- ,#{introduction,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{createBy,jdbcType=VARCHAR}
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{delFlag,jdbcType= NUMERIC }
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from base_argon_partner where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.employment.modules.base.entity.ArgonPartner">
- update base_argon_partner
- <set>
- <if test="name!=null">
- name_=#{name,jdbcType=VARCHAR},
- </if>
- <if test="location!=null">
- location_=#{location,jdbcType=VARCHAR},
- </if>
- <if test="contact!=null">
- contact_=#{contact,jdbcType=VARCHAR},
- </if>
- <if test="phone!=null">
- phone_=#{phone,jdbcType=VARCHAR},
- </if>
- <if test="introduction!=null">
- introduction_=#{introduction,jdbcType=VARCHAR},
- </if>
- <if test="createTime!=null">
- create_time=#{createTime,jdbcType= TIMESTAMP },
- </if>
- <if test="updateTime!=null">
- update_time=#{updateTime,jdbcType= TIMESTAMP },
- </if>
- <if test="createBy!=null">
- create_by=#{createBy,jdbcType=VARCHAR},
- </if>
- <if test="updateBy!=null">
- update_by=#{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="delFlag!=null">
- del_flag=#{delFlag,jdbcType= NUMERIC },
- </if>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="ArgonPartnerMap">
- select * from base_argon_partner where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from base_argon_partner where id_=#{0}
- </select>
- <select id="list" resultMap="ArgonPartnerMap">
- select * from base_argon_partner where del_flag=false order by create_time desc
- </select>
- <select id="listByIndex" resultMap="ArgonPartnerMap">
- select * from base_argon_partner where del_flag=false order by create_time desc limit #{0}
- </select>
- <select id="findByCustomerId" resultMap="ArgonPartnerMap">
- select * from base_argon_partner where del_flag=false and customer_id=#{0}
- </select>
- <select id="search" parameterType="hashmap" resultMap="ArgonPartnerMap">
- <![CDATA[
- select * from base_argon_partner
- ]]>
- <where>
- del_flag=false
- <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>
- <select id="searchMobile" parameterType="hashmap" resultMap="ArgonPartnerMap">
- <![CDATA[
- select * from base_argon_partner
- ]]>
- <where>
- del_flag=false
- <if test="searchParams.name != null">
- and name_ like #{searchParams.name}
- </if>
- </where>
- <foreach item="sort" collection="sortList" open="order by" separator=",">
- ${sort.name} ${sort.order}
- </foreach>
- </select>
- </mapper>
|