123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd" >
- <sqlMap namespace="platform" >
- <!-- 警告 - 以下的SQLMap配置文件由系统自动生成,请勿修改,否则系统重新生成后将会覆盖。-->
- <cacheModel id="platform_CACHE" type="EHCACHE" >
- <property name="reference-type" value="WEAK" />
- <flushInterval hours="1" />
- <flushOnExecute statement="platform.insertSelective" />
- <flushOnExecute statement="platform.insert" />
- <flushOnExecute statement="platform.updateByExampleSelective" />
- <flushOnExecute statement="platform.updateByExample" />
- <flushOnExecute statement="platform.updateByPrimaryKeySelective" />
- <flushOnExecute statement="platform.updateByPrimaryKey" />
- <flushOnExecute statement="platform.deleteByExample" />
- <flushOnExecute statement="platform.deleteByPrimaryKey" />
- </cacheModel>
- <sql id="platform.oracle_Pagination_Head" >
- <dynamic >
- <isNotEmpty property="startOffSet" >
- <isNotEmpty property="pageSize" >
- <![CDATA[]]>
- </isNotEmpty>
- </isNotEmpty>
- </dynamic>
- </sql>
- <sql id="platform.oracle_Pagination_Tail" >
- <dynamic >
- <isNotEmpty property="startOffSet" >
- <isNotEmpty property="pageSize" >
- <![CDATA[ limit #pageSize# offset #startOffSet# ]]>
- </isNotEmpty>
- </isNotEmpty>
- </dynamic>
- </sql>
- <resultMap id="BaseResultMap" class="com.miniframe.system.model.Platform" >
- <result column="id" property="id" jdbcType="VARCHAR" />
- <result column="name" property="name" jdbcType="VARCHAR" />
- <result column="platformid" property="platformid" jdbcType="VARCHAR" />
- <result column="remarks" property="remarks" jdbcType="VARCHAR" />
- <result column="account" property="account" jdbcType="VARCHAR" />
- <result column="total" property="total" jdbcType="BIGINT" />
- <result column="used" property="used" jdbcType="BIGINT" />
- </resultMap>
- <sql id="platform.Example_Where_Clause" >
- <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
- <isEqual property="oredCriteria[].valid" compareValue="true" >
- (
- <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
- $oredCriteria[].criteriaWithoutValue[]$
- </iterate>
- <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
- $oredCriteria[].criteriaWithSingleValue[].condition$ #oredCriteria[].criteriaWithSingleValue[].value#
- </iterate>
- <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
- $oredCriteria[].criteriaWithListValue[].condition$
- <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
- #oredCriteria[].criteriaWithListValue[].values[]#
- </iterate>
- </iterate>
- <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
- $oredCriteria[].criteriaWithBetweenValue[].condition$
- #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
- #oredCriteria[].criteriaWithBetweenValue[].values[1]#
- </iterate>
- )
- </isEqual>
- </iterate>
- </sql>
- <sql id="platform.Base_Column_List" >
- id, name, platformid, remarks, account, total, used
- </sql>
- <select id="platform.selectByExample" resultMap="BaseResultMap" parameterClass="com.miniframe.system.model.PlatformSQLBuilder" cacheModel="platform_CACHE" >
- <include refid="platform.oracle_Pagination_Head" />
- select
- <isParameterPresent >
- <isEqual property="distinct" compareValue="true" >
- distinct
- </isEqual>
- </isParameterPresent>
- <include refid="platform.Base_Column_List" />
- from platform
- <isParameterPresent >
- <include refid="platform.Example_Where_Clause" />
- <isNotNull property="orderByClause" >
- order by $orderByClause$
- </isNotNull>
- </isParameterPresent>
- <isParameterPresent >
- <isEqual property="forUpdate" compareValue="true" >
- for update
- </isEqual>
- </isParameterPresent>
- <isParameterPresent >
- <isEqual property="NoWait" compareValue="true" >
- nowait
- </isEqual>
- </isParameterPresent>
- <include refid="platform.oracle_Pagination_Tail" />
- </select>
- <select id="platform.selectByPrimaryKey" resultMap="BaseResultMap" parameterClass="com.miniframe.system.model.Platform" cacheModel="platform_CACHE" >
- select
- <include refid="platform.Base_Column_List" />
- from platform
- where id = #id#
- </select>
- <delete id="platform.deleteByPrimaryKey" parameterClass="com.miniframe.system.model.Platform" >
- delete from platform
- where id = #id#
- </delete>
- <delete id="platform.deleteByExample" parameterClass="com.miniframe.system.model.PlatformSQLBuilder" >
- delete from platform
- <include refid="platform.Example_Where_Clause" />
- </delete>
- <insert id="platform.insert" parameterClass="com.miniframe.system.model.Platform" >
- insert into platform (id, name, platformid, remarks, account, total, used)
- values (#id#, #name#, #platformid#, #remarks#, #account#, #total#, #used#)
- </insert>
- <insert id="platform.insertSelective" parameterClass="com.miniframe.system.model.Platform" >
- insert into platform
- <dynamic prepend="(" >
- <isNotNull prepend="," property="id" >
- id
- </isNotNull>
- <isNotNull prepend="," property="name" >
- name
- </isNotNull>
- <isNotNull prepend="," property="platformid" >
- platformid
- </isNotNull>
- <isNotNull prepend="," property="remarks" >
- remarks
- </isNotNull>
- <isNotNull prepend="," property="account" >
- account
- </isNotNull>
- <isNotNull prepend="," property="total" >
- total
- </isNotNull>
- <isNotNull prepend="," property="used" >
- used
- </isNotNull>
- )
- </dynamic>
- values
- <dynamic prepend="(" >
- <isNotNull prepend="," property="id" >
- #id#
- </isNotNull>
- <isNotNull prepend="," property="name" >
- #name#
- </isNotNull>
- <isNotNull prepend="," property="platformid" >
- #platformid#
- </isNotNull>
- <isNotNull prepend="," property="remarks" >
- #remarks#
- </isNotNull>
- <isNotNull prepend="," property="account" >
- #account#
- </isNotNull>
- <isNotNull prepend="," property="total" >
- #total#
- </isNotNull>
- <isNotNull prepend="," property="used" >
- #used#
- </isNotNull>
- )
- </dynamic>
- </insert>
- <select id="platform.countByExample" parameterClass="com.miniframe.system.model.PlatformSQLBuilder" resultClass="java.lang.Integer" cacheModel="platform_CACHE" >
- select count(*) from platform
- <include refid="platform.Example_Where_Clause" />
- </select>
- <update id="platform.updateByExampleSelective" >
- update platform
- <dynamic prepend="set" >
- <isNotNull prepend="," property="record.id" >
- id = #record.id#
- </isNotNull>
- <isNotNull prepend="," property="record.name" >
- name = #record.name#
- </isNotNull>
- <isNotNull prepend="," property="record.platformid" >
- platformid = #record.platformid#
- </isNotNull>
- <isNotNull prepend="," property="record.remarks" >
- remarks = #record.remarks#
- </isNotNull>
- <isNotNull prepend="," property="record.account" >
- account = #record.account#
- </isNotNull>
- <isNotNull prepend="," property="record.total" >
- total = #record.total#
- </isNotNull>
- <isNotNull prepend="," property="record.used" >
- used = #record.used#
- </isNotNull>
- </dynamic>
- <isParameterPresent >
- <include refid="platform.Example_Where_Clause" />
- </isParameterPresent>
- </update>
- <update id="platform.updateByExample" >
- update platform
- set id = #record.id#,
- name = #record.name#,
- platformid = #record.platformid#,
- remarks = #record.remarks#,
- account = #record.account#,
- total = #record.total#,
- used = #record.used#
- <isParameterPresent >
- <include refid="platform.Example_Where_Clause" />
- </isParameterPresent>
- </update>
- <update id="platform.updateByPrimaryKeySelective" parameterClass="com.miniframe.system.model.Platform" >
- update platform
- <dynamic prepend="set" >
- <isNotNull prepend="," property="name" >
- name = #name#
- </isNotNull>
- <isNotNull prepend="," property="platformid" >
- platformid = #platformid#
- </isNotNull>
- <isNotNull prepend="," property="remarks" >
- remarks = #remarks#
- </isNotNull>
- <isNotNull prepend="," property="account" >
- account = #account#
- </isNotNull>
- <isNotNull prepend="," property="total" >
- total = #total#
- </isNotNull>
- <isNotNull prepend="," property="used" >
- used = #used#
- </isNotNull>
- </dynamic>
- where id = #id#
- </update>
- <update id="platform.updateByPrimaryKey" parameterClass="com.miniframe.system.model.Platform" >
- update platform
- set name = #name#,
- platformid = #platformid#,
- remarks = #remarks#,
- account = #account#,
- total = #total#,
- used = #used#
- where id = #id#
- </update>
- </sqlMap>
|