xt_jsqx_SqlMap.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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_jsqx" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtJsqxKey" >
  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="qxid" property="qxid" 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.XtJsqxExample" >
  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, qxid
  48. from xt_jsqx
  49. <isParameterPresent >
  50. <include refid="xt_jsqx.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.XtJsqxKey" >
  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_jsqx
  65. where jsid = #jsid:INTEGER#
  66. and qxid = #qxid:INTEGER#
  67. </delete>
  68. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtJsqxExample" >
  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_jsqx
  74. <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
  75. </delete>
  76. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtJsqxKey" >
  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_jsqx (jsid, qxid)
  82. values (#jsid:INTEGER#, #qxid:INTEGER#)
  83. </insert>
  84. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtJsqxKey" >
  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_jsqx
  90. <dynamic prepend="(" >
  91. <isNotNull prepend="," property="jsid" >
  92. jsid
  93. </isNotNull>
  94. <isNotNull prepend="," property="qxid" >
  95. qxid
  96. </isNotNull>
  97. )
  98. </dynamic>
  99. values
  100. <dynamic prepend="(" >
  101. <isNotNull prepend="," property="jsid" >
  102. #jsid:INTEGER#
  103. </isNotNull>
  104. <isNotNull prepend="," property="qxid" >
  105. #qxid:INTEGER#
  106. </isNotNull>
  107. )
  108. </dynamic>
  109. </insert>
  110. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtJsqxExample" 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_jsqx
  116. <include refid="xt_jsqx.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_jsqx
  124. <dynamic prepend="set" >
  125. <isNotNull prepend="," property="record.jsid" >
  126. jsid = #record.jsid:INTEGER#
  127. </isNotNull>
  128. <isNotNull prepend="," property="record.qxid" >
  129. qxid = #record.qxid:INTEGER#
  130. </isNotNull>
  131. </dynamic>
  132. <isParameterPresent >
  133. <include refid="xt_jsqx.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_jsqx
  142. set jsid = #record.jsid:INTEGER#,
  143. qxid = #record.qxid:INTEGER#
  144. <isParameterPresent >
  145. <include refid="xt_jsqx.ibatorgenerated_Example_Where_Clause" />
  146. </isParameterPresent>
  147. </update>
  148. <select id="select.jsqx.by.param" resultClass="com.huimv.xt.dataobject.XtJsqxKey" parameterClass="java.util.HashMap" >
  149. select * from xt_jsqx where jsid = (select jsid from xt_yhjs where yhid = #yhid# limit 0,1)
  150. </select>
  151. </sqlMap>