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_wxh" >
- <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtWxh" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Apr 02 13:48:41 CST 2015.
- -->
- <result column="YHID" property="yhid" jdbcType="INTEGER" />
- <result column="WXH" property="wxh" jdbcType="VARCHAR" />
- <result column="SFBD" property="sfbd" 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 Apr 02 13:48:41 CST 2015.
- -->
- <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" resultClass="com.huimv.xt.dataobject.XtWxh" parameterClass="com.huimv.xt.dataobject.XtWxhExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Apr 02 13:48:41 CST 2015.
- -->
- select YHID, WXH, SFBD, czyh.YHM as YHM
- from xt_wxh
- left join xt_czyh czyh on czyh.ID = YHID
- <isParameterPresent >
- <include refid="xt_wxh.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_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtWxhExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Apr 02 13:48:41 CST 2015.
- -->
- delete from xt_wxh
- <include refid="xt_wxh.ibatorgenerated_Example_Where_Clause" />
- </delete>
- <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtWxh" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Apr 02 13:48:41 CST 2015.
- -->
- insert into xt_wxh (YHID, WXH, SFBD)
- values (#yhid:INTEGER#, #wxh:VARCHAR#, #sfbd:INTEGER#)
- </insert>
- <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtWxh" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Apr 02 13:48:41 CST 2015.
- -->
- insert into xt_wxh
- <dynamic prepend="(" >
- <isNotNull prepend="," property="yhid" >
- YHID
- </isNotNull>
- <isNotNull prepend="," property="wxh" >
- WXH
- </isNotNull>
- <isNotNull prepend="," property="sfbd" >
- SFBD
- </isNotNull>
- )
- </dynamic>
- values
- <dynamic prepend="(" >
- <isNotNull prepend="," property="yhid" >
- #yhid:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="wxh" >
- #wxh:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="sfbd" >
- #sfbd:INTEGER#
- </isNotNull>
- )
- </dynamic>
- </insert>
- <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtWxhExample" resultClass="java.lang.Integer" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Thu Apr 02 13:48:41 CST 2015.
- -->
- select count(*) from xt_wxh
- left join xt_czyh czyh on czyh.ID = xt_wxh.YHID
- <include refid="xt_wxh.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 Apr 02 13:48:41 CST 2015.
- -->
- update xt_wxh
- <dynamic prepend="set" >
- <isNotNull prepend="," property="record.yhid" >
- YHID = #record.yhid:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="record.wxh" >
- WXH = #record.wxh:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.sfbd" >
- SFBD = #record.sfbd:INTEGER#
- </isNotNull>
- </dynamic>
- <isParameterPresent >
- <include refid="xt_wxh.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 Apr 02 13:48:41 CST 2015.
- -->
- update xt_wxh
- set YHID = #record.yhid:INTEGER#,
- WXH = #record.wxh:VARCHAR#,
- SFBD = #record.sfbd:INTEGER#
- <isParameterPresent >
- <include refid="xt_wxh.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
- </sqlMap>
|