xt_yhjs_SqlMap.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd" >
  3. <sqlMap namespace="xt_yhjs" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtYhjsKey" >
  5. <!--
  6. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  7. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  8. -->
  9. <result column="jsid" property="jsid" jdbcType="INTEGER" />
  10. <result column="yhid" property="yhid" jdbcType="INTEGER" />
  11. </resultMap>
  12. <sql id="ibatorgenerated_Example_Where_Clause" >
  13. <!--
  14. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  15. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  16. -->
  17. <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
  18. <isEqual property="oredCriteria[].valid" compareValue="true" >
  19. (
  20. <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
  21. $oredCriteria[].criteriaWithoutValue[]$
  22. </iterate>
  23. <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
  24. $oredCriteria[].criteriaWithSingleValue[].condition$
  25. #oredCriteria[].criteriaWithSingleValue[].value#
  26. </iterate>
  27. <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
  28. $oredCriteria[].criteriaWithListValue[].condition$
  29. <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
  30. #oredCriteria[].criteriaWithListValue[].values[]#
  31. </iterate>
  32. </iterate>
  33. <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
  34. $oredCriteria[].criteriaWithBetweenValue[].condition$
  35. #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
  36. #oredCriteria[].criteriaWithBetweenValue[].values[1]#
  37. </iterate>
  38. )
  39. </isEqual>
  40. </iterate>
  41. </sql>
  42. <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xt.dataobject.XtYhjsExample" >
  43. <!--
  44. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  45. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  46. -->
  47. select jsid, yhid
  48. from xt_yhjs
  49. <isParameterPresent >
  50. <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
  51. <isNotNull property="orderByClause" >
  52. order by $orderByClause$
  53. </isNotNull>
  54. <isGreaterEqual property="start" compareValue="0" >
  55. limit $start$ , $limit$
  56. </isGreaterEqual>
  57. </isParameterPresent>
  58. </select>
  59. <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.xt.dataobject.XtYhjsKey" >
  60. <!--
  61. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  62. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  63. -->
  64. delete from xt_yhjs
  65. where jsid = #jsid:INTEGER#
  66. and yhid = #yhid:INTEGER#
  67. </delete>
  68. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtYhjsExample" >
  69. <!--
  70. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  71. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  72. -->
  73. delete from xt_yhjs
  74. <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
  75. </delete>
  76. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtYhjsKey" >
  77. <!--
  78. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  79. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  80. -->
  81. insert into xt_yhjs (jsid, yhid)
  82. values (#jsid:INTEGER#, #yhid:INTEGER#)
  83. </insert>
  84. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtYhjsKey" >
  85. <!--
  86. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  87. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  88. -->
  89. insert into xt_yhjs
  90. <dynamic prepend="(" >
  91. <isNotNull prepend="," property="jsid" >
  92. jsid
  93. </isNotNull>
  94. <isNotNull prepend="," property="yhid" >
  95. yhid
  96. </isNotNull>
  97. )
  98. </dynamic>
  99. values
  100. <dynamic prepend="(" >
  101. <isNotNull prepend="," property="jsid" >
  102. #jsid:INTEGER#
  103. </isNotNull>
  104. <isNotNull prepend="," property="yhid" >
  105. #yhid:INTEGER#
  106. </isNotNull>
  107. )
  108. </dynamic>
  109. </insert>
  110. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtYhjsExample" resultClass="java.lang.Integer" >
  111. <!--
  112. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  113. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  114. -->
  115. select count(*) from xt_yhjs
  116. <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
  117. </select>
  118. <update id="ibatorgenerated_updateByExampleSelective" >
  119. <!--
  120. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  121. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  122. -->
  123. update xt_yhjs
  124. <dynamic prepend="set" >
  125. <isNotNull prepend="," property="record.jsid" >
  126. jsid = #record.jsid:INTEGER#
  127. </isNotNull>
  128. <isNotNull prepend="," property="record.yhid" >
  129. yhid = #record.yhid:INTEGER#
  130. </isNotNull>
  131. </dynamic>
  132. <isParameterPresent >
  133. <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
  134. </isParameterPresent>
  135. </update>
  136. <update id="ibatorgenerated_updateByExample" >
  137. <!--
  138. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  139. This element was generated on Thu Jul 10 14:38:31 CST 2014.
  140. -->
  141. update xt_yhjs
  142. set jsid = #record.jsid:INTEGER#,
  143. yhid = #record.yhid:INTEGER#
  144. <isParameterPresent >
  145. <include refid="xt_yhjs.ibatorgenerated_Example_Where_Clause" />
  146. </isParameterPresent>
  147. </update>
  148. <!-- 角色对应的操作用户 -->
  149. <select id="select.czyh.by.jsid" parameterClass="java.lang.Integer" resultClass="com.huimv.xt.dataobject.XtYhjsKey">
  150. SELECT yhjs.yhid, yhjs.jsid FROM xt_yhjs yhjs
  151. LEFT JOIN xt_jsxx jsxx ON jsxx.ID = yhjs.jsid AND jsxx.ZFBZ = 0
  152. LEFT JOIN xt_czyh czyh ON czyh.ID = yhjs.yhid AND czyh.ZFBZ = 0
  153. WHERE yhjs.jsid = #yj.jsid:INTEGER#
  154. </select>
  155. </sqlMap>