123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?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="xt_jsqx" >
- <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtJsqxKey" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- <result column="jsid" property="jsid" jdbcType="INTEGER" />
- <result column="qxid" property="qxid" jdbcType="INTEGER" />
- </resultMap>
- <sql id="ibatorgenerated_Example_Where_Clause" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- <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>
- <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xt.dataobject.XtJsqxExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- select jsid, qxid
- from xt_jsqx
- <isParameterPresent >
- <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
- <isNotNull property="orderByClause" >
- order by $orderByClause$
- </isNotNull>
- <isGreaterEqual property="start" compareValue="0" >
- limit $start$ , $limit$
- </isGreaterEqual>
- </isParameterPresent>
- </select>
- <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.xt.dataobject.XtJsqxKey" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- delete from xt_jsqx
- where jsid = #jsid:INTEGER#
- and qxid = #qxid:INTEGER#
- </delete>
- <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtJsqxExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- delete from xt_jsqx
- <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
- </delete>
- <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtJsqxKey" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- insert into xt_jsqx (jsid, qxid)
- values (#jsid:INTEGER#, #qxid:INTEGER#)
- </insert>
- <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtJsqxKey" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- insert into xt_jsqx
- <dynamic prepend="(" >
- <isNotNull prepend="," property="jsid" >
- jsid
- </isNotNull>
- <isNotNull prepend="," property="qxid" >
- qxid
- </isNotNull>
- )
- </dynamic>
- values
- <dynamic prepend="(" >
- <isNotNull prepend="," property="jsid" >
- #jsid:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="qxid" >
- #qxid:INTEGER#
- </isNotNull>
- )
- </dynamic>
- </insert>
- <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtJsqxExample" resultClass="java.lang.Integer" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- select count(*) from xt_jsqx
- <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
- </select>
- <update id="ibatorgenerated_updateByExampleSelective" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- update xt_jsqx
- <dynamic prepend="set" >
- <isNotNull prepend="," property="record.jsid" >
- jsid = #record.jsid:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="record.qxid" >
- qxid = #record.qxid:INTEGER#
- </isNotNull>
- </dynamic>
- <isParameterPresent >
- <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
- <update id="ibatorgenerated_updateByExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Jul 10 14:38:31 CST 2014.
- -->
- update xt_jsqx
- set jsid = #record.jsid:INTEGER#,
- qxid = #record.qxid:INTEGER#
- <isParameterPresent >
- <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
-
- <select id="select.jsqx.by.param" resultClass="com.huimv.xt.dataobject.XtJsqxKey" parameterClass="java.util.HashMap" >
- select * from xt_jsqx where jsid = (select jsid from xt_yhjs where yhid = #yhid# limit 0,1)
- </select>
- </sqlMap>
|