123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <?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_yhjs" >
- <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtYhjsKey" >
- <!--
- 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="yhid" property="yhid" 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.XtYhjsExample" >
- <!--
- 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, yhid
- from xt_yhjs
- <isParameterPresent >
- <include refid="xt_yhjs.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.XtYhjsKey" >
- <!--
- 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_yhjs
- where jsid = #jsid:INTEGER#
- and yhid = #yhid:INTEGER#
- </delete>
- <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtYhjsExample" >
- <!--
- 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_yhjs
- <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
- </delete>
- <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtYhjsKey" >
- <!--
- 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_yhjs (jsid, yhid)
- values (#jsid:INTEGER#, #yhid:INTEGER#)
- </insert>
- <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtYhjsKey" >
- <!--
- 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_yhjs
- <dynamic prepend="(" >
- <isNotNull prepend="," property="jsid" >
- jsid
- </isNotNull>
- <isNotNull prepend="," property="yhid" >
- yhid
- </isNotNull>
- )
- </dynamic>
- values
- <dynamic prepend="(" >
- <isNotNull prepend="," property="jsid" >
- #jsid:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="yhid" >
- #yhid:INTEGER#
- </isNotNull>
- )
- </dynamic>
- </insert>
- <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtYhjsExample" 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_yhjs
- <include refid="xt_yhjs.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_yhjs
- <dynamic prepend="set" >
- <isNotNull prepend="," property="record.jsid" >
- jsid = #record.jsid:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="record.yhid" >
- yhid = #record.yhid:INTEGER#
- </isNotNull>
- </dynamic>
- <isParameterPresent >
- <include refid="xt_yhjs.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_yhjs
- set jsid = #record.jsid:INTEGER#,
- yhid = #record.yhid:INTEGER#
- <isParameterPresent >
- <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
-
- <!-- 角色对应的操作用户 -->
- <select id="select.czyh.by.jsid" parameterClass="java.lang.Integer" resultClass="com.huimv.xt.dataobject.XtYhjsKey">
- SELECT yhjs.yhid, yhjs.jsid FROM xt_yhjs yhjs
- LEFT JOIN xt_jsxx jsxx ON jsxx.ID = yhjs.jsid AND jsxx.ZFBZ = 0
- LEFT JOIN xt_czyh czyh ON czyh.ID = yhjs.yhid AND czyh.ZFBZ = 0
- WHERE yhjs.jsid = #yj.jsid:INTEGER#
- </select>
- </sqlMap>
|