|
@@ -1,122 +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">
|
|
|
|
|
-<!-- namespace必须指向DAO接口 -->
|
|
|
|
|
-<mapper namespace="com.jpsoft.employment.modules.base.dao.AboutUsDAO">
|
|
|
|
|
- <resultMap id="AboutUsMap" type="com.jpsoft.employment.modules.base.entity.AboutUs">
|
|
|
|
|
- <id property="id" column="id_" />
|
|
|
|
|
- <result property="userAgreement" column="user_agreement" />
|
|
|
|
|
- <result property="privacyPolicy" column="privacy_policy" />
|
|
|
|
|
- <result property="disclaimer" column="disclaimer" />
|
|
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
|
|
- <result property="receivingAccount" column="receiving_account" />
|
|
|
|
|
- <result property="bank" column="bank_" />
|
|
|
|
|
- <result property="accountNumber" column="account_number" />
|
|
|
|
|
- <result property="paymentCode" column="payment_code" />
|
|
|
|
|
- <result property="phone" column="phone_" />
|
|
|
|
|
-
|
|
|
|
|
- </resultMap>
|
|
|
|
|
- <insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.AboutUs">
|
|
|
|
|
- <!--
|
|
|
|
|
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
|
|
|
- select sys_guid() from dual
|
|
|
|
|
- </selectKey>
|
|
|
|
|
- -->
|
|
|
|
|
- <![CDATA[
|
|
|
|
|
- insert into base_about_us
|
|
|
|
|
- (id_,user_agreement,privacy_policy,disclaimer,create_time,update_time,del_flag,create_by,update_by
|
|
|
|
|
- ,receiving_account,bank_,account_number,payment_code,phone_)
|
|
|
|
|
- values
|
|
|
|
|
- (
|
|
|
|
|
-#{id,jdbcType=VARCHAR}
|
|
|
|
|
-,#{userAgreement,jdbcType=VARCHAR}
|
|
|
|
|
-,#{privacyPolicy,jdbcType=VARCHAR}
|
|
|
|
|
-,#{disclaimer,jdbcType=VARCHAR}
|
|
|
|
|
-,#{createTime,jdbcType= TIMESTAMP }
|
|
|
|
|
-,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
|
|
-,#{delFlag,jdbcType= NUMERIC }
|
|
|
|
|
-,#{createBy,jdbcType=VARCHAR}
|
|
|
|
|
-,#{updateBy,jdbcType=VARCHAR}
|
|
|
|
|
-,#{receivingAccount,jdbcType=VARCHAR}
|
|
|
|
|
-,#{bank,jdbcType=VARCHAR}
|
|
|
|
|
-,#{accountNumber,jdbcType=VARCHAR}
|
|
|
|
|
-,#{paymentCode,jdbcType=VARCHAR}
|
|
|
|
|
-,#{phone,jdbcType=VARCHAR}
|
|
|
|
|
- )
|
|
|
|
|
- ]]>
|
|
|
|
|
- </insert>
|
|
|
|
|
- <delete id="delete" parameterType="string">
|
|
|
|
|
- delete from base_about_us where id_=#{id,jdbcType=VARCHAR}
|
|
|
|
|
- </delete>
|
|
|
|
|
- <update id="update" parameterType="com.jpsoft.employment.modules.base.entity.AboutUs">
|
|
|
|
|
- update base_about_us
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="userAgreement!=null">
|
|
|
|
|
- user_agreement=#{userAgreement,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="privacyPolicy!=null">
|
|
|
|
|
- privacy_policy=#{privacyPolicy,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="disclaimer!=null">
|
|
|
|
|
- disclaimer=#{disclaimer,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="delFlag!=null">
|
|
|
|
|
- del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createBy!=null">
|
|
|
|
|
- create_by=#{createBy,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateBy!=null">
|
|
|
|
|
- update_by=#{updateBy,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="receivingAccount!=null">
|
|
|
|
|
- receiving_account=#{receivingAccount,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="bank!=null">
|
|
|
|
|
- bank_=#{bank,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="accountNumber!=null">
|
|
|
|
|
- account_number=#{accountNumber,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="paymentCode!=null">
|
|
|
|
|
- payment_code=#{paymentCode,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="phone!=null">
|
|
|
|
|
- phone_=#{phone,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- </set>
|
|
|
|
|
- where id_=#{id}
|
|
|
|
|
- </update>
|
|
|
|
|
- <select id="get" parameterType="string" resultMap="AboutUsMap">
|
|
|
|
|
- select * from base_about_us where id_=#{0}
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="exist" parameterType="string" resultType="int">
|
|
|
|
|
- select count(*) from base_about_us where id_=#{0}
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="list" resultMap="AboutUsMap">
|
|
|
|
|
- select * from base_about_us where del_flag=false limit 1
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="search" parameterType="hashmap" resultMap="AboutUsMap">
|
|
|
|
|
- <![CDATA[
|
|
|
|
|
- select * from base_about_us
|
|
|
|
|
- ]]>
|
|
|
|
|
- <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>
|
|
|