xt_wxh_SqlMap.xml 6.3 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_wxh" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtWxh" >
  5. <!--
  6. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  7. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  8. -->
  9. <result column="YHID" property="yhid" jdbcType="INTEGER" />
  10. <result column="WXH" property="wxh" jdbcType="VARCHAR" />
  11. <result column="SFBD" property="sfbd" jdbcType="INTEGER" />
  12. </resultMap>
  13. <sql id="ibatorgenerated_Example_Where_Clause" >
  14. <!--
  15. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  16. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  17. -->
  18. <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
  19. <isEqual property="oredCriteria[].valid" compareValue="true" >
  20. (
  21. <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
  22. $oredCriteria[].criteriaWithoutValue[]$
  23. </iterate>
  24. <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
  25. $oredCriteria[].criteriaWithSingleValue[].condition$
  26. #oredCriteria[].criteriaWithSingleValue[].value#
  27. </iterate>
  28. <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
  29. $oredCriteria[].criteriaWithListValue[].condition$
  30. <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
  31. #oredCriteria[].criteriaWithListValue[].values[]#
  32. </iterate>
  33. </iterate>
  34. <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
  35. $oredCriteria[].criteriaWithBetweenValue[].condition$
  36. #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
  37. #oredCriteria[].criteriaWithBetweenValue[].values[1]#
  38. </iterate>
  39. )
  40. </isEqual>
  41. </iterate>
  42. </sql>
  43. <select id="ibatorgenerated_selectByExample" resultClass="com.huimv.xt.dataobject.XtWxh" parameterClass="com.huimv.xt.dataobject.XtWxhExample" >
  44. <!--
  45. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  46. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  47. -->
  48. select YHID, WXH, SFBD, czyh.YHM as YHM
  49. from xt_wxh
  50. left join xt_czyh czyh on czyh.ID = YHID
  51. <isParameterPresent >
  52. <include refid="xt_wxh.ibatorgenerated_Example_Where_Clause" />
  53. <isNotNull property="orderByClause" >
  54. order by $orderByClause$
  55. </isNotNull>
  56. <isGreaterEqual property="start" compareValue="0" >
  57. limit $start$ , $limit$
  58. </isGreaterEqual>
  59. </isParameterPresent>
  60. </select>
  61. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtWxhExample" >
  62. <!--
  63. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  64. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  65. -->
  66. delete from xt_wxh
  67. <include refid="xt_wxh.ibatorgenerated_Example_Where_Clause" />
  68. </delete>
  69. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtWxh" >
  70. <!--
  71. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  72. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  73. -->
  74. insert into xt_wxh (YHID, WXH, SFBD)
  75. values (#yhid:INTEGER#, #wxh:VARCHAR#, #sfbd:INTEGER#)
  76. </insert>
  77. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtWxh" >
  78. <!--
  79. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  80. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  81. -->
  82. insert into xt_wxh
  83. <dynamic prepend="(" >
  84. <isNotNull prepend="," property="yhid" >
  85. YHID
  86. </isNotNull>
  87. <isNotNull prepend="," property="wxh" >
  88. WXH
  89. </isNotNull>
  90. <isNotNull prepend="," property="sfbd" >
  91. SFBD
  92. </isNotNull>
  93. )
  94. </dynamic>
  95. values
  96. <dynamic prepend="(" >
  97. <isNotNull prepend="," property="yhid" >
  98. #yhid:INTEGER#
  99. </isNotNull>
  100. <isNotNull prepend="," property="wxh" >
  101. #wxh:VARCHAR#
  102. </isNotNull>
  103. <isNotNull prepend="," property="sfbd" >
  104. #sfbd:INTEGER#
  105. </isNotNull>
  106. )
  107. </dynamic>
  108. </insert>
  109. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtWxhExample" resultClass="java.lang.Integer" >
  110. <!--
  111. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  112. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  113. -->
  114. select count(*) from xt_wxh
  115. left join xt_czyh czyh on czyh.ID = xt_wxh.YHID
  116. <include refid="xt_wxh.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 Apr 02 13:48:41 CST 2015.
  122. -->
  123. update xt_wxh
  124. <dynamic prepend="set" >
  125. <isNotNull prepend="," property="record.yhid" >
  126. YHID = #record.yhid:INTEGER#
  127. </isNotNull>
  128. <isNotNull prepend="," property="record.wxh" >
  129. WXH = #record.wxh:VARCHAR#
  130. </isNotNull>
  131. <isNotNull prepend="," property="record.sfbd" >
  132. SFBD = #record.sfbd:INTEGER#
  133. </isNotNull>
  134. </dynamic>
  135. <isParameterPresent >
  136. <include refid="xt_wxh.ibatorgenerated_Example_Where_Clause" />
  137. </isParameterPresent>
  138. </update>
  139. <update id="ibatorgenerated_updateByExample" >
  140. <!--
  141. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  142. This element was generated on Thu Apr 02 13:48:41 CST 2015.
  143. -->
  144. update xt_wxh
  145. set YHID = #record.yhid:INTEGER#,
  146. WXH = #record.wxh:VARCHAR#,
  147. SFBD = #record.sfbd:INTEGER#
  148. <isParameterPresent >
  149. <include refid="xt_wxh.ibatorgenerated_Example_Where_Clause" />
  150. </isParameterPresent>
  151. </update>
  152. </sqlMap>