xt_lypz_SqlMap.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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_lypz" >
  4. <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xt.dataobject.XtLypz" >
  5. <!--
  6. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  7. This element was generated on Tue May 31 15:16:47 CST 2016.
  8. -->
  9. <result column="ID" property="id" jdbcType="INTEGER" />
  10. <result column="JQID" property="jqid" jdbcType="VARCHAR" />
  11. <result column="SBLX" property="sblx" jdbcType="VARCHAR" />
  12. <result column="LYDZ" property="lydz" jdbcType="VARCHAR" />
  13. <result column="LYBM" property="lybm" jdbcType="VARCHAR" />
  14. <result column="LCID" property="lcid" jdbcType="VARCHAR" />
  15. </resultMap>
  16. <sql id="ibatorgenerated_Example_Where_Clause" >
  17. <!--
  18. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  19. This element was generated on Tue May 31 15:16:47 CST 2016.
  20. -->
  21. <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
  22. <isEqual property="oredCriteria[].valid" compareValue="true" >
  23. (
  24. <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
  25. $oredCriteria[].criteriaWithoutValue[]$
  26. </iterate>
  27. <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
  28. $oredCriteria[].criteriaWithSingleValue[].condition$
  29. #oredCriteria[].criteriaWithSingleValue[].value#
  30. </iterate>
  31. <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
  32. $oredCriteria[].criteriaWithListValue[].condition$
  33. <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
  34. #oredCriteria[].criteriaWithListValue[].values[]#
  35. </iterate>
  36. </iterate>
  37. <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
  38. $oredCriteria[].criteriaWithBetweenValue[].condition$
  39. #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
  40. #oredCriteria[].criteriaWithBetweenValue[].values[1]#
  41. </iterate>
  42. )
  43. </isEqual>
  44. </iterate>
  45. </sql>
  46. <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xt.dataobject.XtLypzExample" >
  47. <!--
  48. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  49. This element was generated on Tue May 31 15:16:47 CST 2016.
  50. -->
  51. select ID, JQID, SBLX, LYDZ, LYBM, LCID
  52. from xt_lypz
  53. <isParameterPresent >
  54. <include refid="xt_lypz.ibatorgenerated_Example_Where_Clause" />
  55. <isNotNull property="orderByClause" >
  56. order by $orderByClause$
  57. </isNotNull>
  58. <isGreaterEqual property="start" compareValue="0" >
  59. limit $start$ , $limit$
  60. </isGreaterEqual>
  61. </isParameterPresent>
  62. </select>
  63. <select id="ibatorgenerated_selectByPrimaryKey" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xt.dataobject.XtLypz" >
  64. <!--
  65. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  66. This element was generated on Tue May 31 15:16:47 CST 2016.
  67. -->
  68. select ID, JQID, SBLX, LYDZ, LYBM, LCID
  69. from xt_lypz
  70. where ID = #id:INTEGER#
  71. </select>
  72. <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.xt.dataobject.XtLypz" >
  73. <!--
  74. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  75. This element was generated on Tue May 31 15:16:47 CST 2016.
  76. -->
  77. delete from xt_lypz
  78. where ID = #id:INTEGER#
  79. </delete>
  80. <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xt.dataobject.XtLypzExample" >
  81. <!--
  82. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  83. This element was generated on Tue May 31 15:16:47 CST 2016.
  84. -->
  85. delete from xt_lypz
  86. <include refid="xt_lypz.ibatorgenerated_Example_Where_Clause" />
  87. </delete>
  88. <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xt.dataobject.XtLypz" >
  89. <!--
  90. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  91. This element was generated on Tue May 31 15:16:47 CST 2016.
  92. -->
  93. insert into xt_lypz (ID, JQID, SBLX, LYDZ, LYBM, LCID)
  94. values (#id:INTEGER#, #jqid:VARCHAR#, #sblx:VARCHAR#, #lydz:VARCHAR#, #lybm:VARCHAR#,
  95. #lcid:VARCHAR#)
  96. </insert>
  97. <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xt.dataobject.XtLypz" >
  98. <!--
  99. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  100. This element was generated on Tue May 31 15:16:47 CST 2016.
  101. -->
  102. insert into xt_lypz
  103. <dynamic prepend="(" >
  104. <isNotNull prepend="," property="id" >
  105. ID
  106. </isNotNull>
  107. <isNotNull prepend="," property="jqid" >
  108. JQID
  109. </isNotNull>
  110. <isNotNull prepend="," property="sblx" >
  111. SBLX
  112. </isNotNull>
  113. <isNotNull prepend="," property="lydz" >
  114. LYDZ
  115. </isNotNull>
  116. <isNotNull prepend="," property="lybm" >
  117. LYBM
  118. </isNotNull>
  119. <isNotNull prepend="," property="lcid" >
  120. LCID
  121. </isNotNull>
  122. )
  123. </dynamic>
  124. values
  125. <dynamic prepend="(" >
  126. <isNotNull prepend="," property="id" >
  127. #id:INTEGER#
  128. </isNotNull>
  129. <isNotNull prepend="," property="jqid" >
  130. #jqid:VARCHAR#
  131. </isNotNull>
  132. <isNotNull prepend="," property="sblx" >
  133. #sblx:VARCHAR#
  134. </isNotNull>
  135. <isNotNull prepend="," property="lydz" >
  136. #lydz:VARCHAR#
  137. </isNotNull>
  138. <isNotNull prepend="," property="lybm" >
  139. #lybm:VARCHAR#
  140. </isNotNull>
  141. <isNotNull prepend="," property="lcid" >
  142. #lcid:VARCHAR#
  143. </isNotNull>
  144. )
  145. </dynamic>
  146. </insert>
  147. <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xt.dataobject.XtLypzExample" resultClass="java.lang.Integer" >
  148. <!--
  149. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  150. This element was generated on Tue May 31 15:16:47 CST 2016.
  151. -->
  152. select count(*) from xt_lypz
  153. <include refid="xt_lypz.ibatorgenerated_Example_Where_Clause" />
  154. </select>
  155. <update id="ibatorgenerated_updateByExampleSelective" >
  156. <!--
  157. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  158. This element was generated on Tue May 31 15:16:47 CST 2016.
  159. -->
  160. update xt_lypz
  161. <dynamic prepend="set" >
  162. <isNotNull prepend="," property="record.id" >
  163. ID = #record.id:INTEGER#
  164. </isNotNull>
  165. <isNotNull prepend="," property="record.jqid" >
  166. JQID = #record.jqid:VARCHAR#
  167. </isNotNull>
  168. <isNotNull prepend="," property="record.sblx" >
  169. SBLX = #record.sblx:VARCHAR#
  170. </isNotNull>
  171. <isNotNull prepend="," property="record.lydz" >
  172. LYDZ = #record.lydz:VARCHAR#
  173. </isNotNull>
  174. <isNotNull prepend="," property="record.lybm" >
  175. LYBM = #record.lybm:VARCHAR#
  176. </isNotNull>
  177. <isNotNull prepend="," property="record.lcid" >
  178. LCID = #record.lcid:VARCHAR#
  179. </isNotNull>
  180. </dynamic>
  181. <isParameterPresent >
  182. <include refid="xt_lypz.ibatorgenerated_Example_Where_Clause" />
  183. </isParameterPresent>
  184. </update>
  185. <update id="ibatorgenerated_updateByExample" >
  186. <!--
  187. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  188. This element was generated on Tue May 31 15:16:47 CST 2016.
  189. -->
  190. update xt_lypz
  191. set ID = #record.id:INTEGER#,
  192. JQID = #record.jqid:VARCHAR#,
  193. SBLX = #record.sblx:VARCHAR#,
  194. LYDZ = #record.lydz:VARCHAR#,
  195. LYBM = #record.lybm:VARCHAR#,
  196. LCID = #record.lcid:VARCHAR#
  197. <isParameterPresent >
  198. <include refid="xt_lypz.ibatorgenerated_Example_Where_Clause" />
  199. </isParameterPresent>
  200. </update>
  201. <update id="ibatorgenerated_updateByPrimaryKeySelective" parameterClass="com.huimv.xt.dataobject.XtLypz" >
  202. <!--
  203. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  204. This element was generated on Tue May 31 15:16:47 CST 2016.
  205. -->
  206. update xt_lypz
  207. <dynamic prepend="set" >
  208. <isNotNull prepend="," property="jqid" >
  209. JQID = #jqid:VARCHAR#
  210. </isNotNull>
  211. <isNotNull prepend="," property="sblx" >
  212. SBLX = #sblx:VARCHAR#
  213. </isNotNull>
  214. <isNotNull prepend="," property="lydz" >
  215. LYDZ = #lydz:VARCHAR#
  216. </isNotNull>
  217. <isNotNull prepend="," property="lybm" >
  218. LYBM = #lybm:VARCHAR#
  219. </isNotNull>
  220. <isNotNull prepend="," property="lcid" >
  221. LCID = #lcid:VARCHAR#
  222. </isNotNull>
  223. </dynamic>
  224. where ID = #id:INTEGER#
  225. </update>
  226. <update id="ibatorgenerated_updateByPrimaryKey" parameterClass="com.huimv.xt.dataobject.XtLypz" >
  227. <!--
  228. WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
  229. This element was generated on Tue May 31 15:16:47 CST 2016.
  230. -->
  231. update xt_lypz
  232. set JQID = #jqid:VARCHAR#,
  233. SBLX = #sblx:VARCHAR#,
  234. LYDZ = #lydz:VARCHAR#,
  235. LYBM = #lybm:VARCHAR#,
  236. LCID = #lcid:VARCHAR#
  237. where ID = #id:INTEGER#
  238. </update>
  239. <select id="select.lypz.by.param" parameterClass="java.util.Map" resultClass="com.huimv.xt.dataobject.XtLypz">
  240. select * from xt_lypz lypz where exists (select 1 from da_jqda jqda,da_zsda zsda where jqda.zsid = zsda.id and jqda.jqid = lypz.jqid and jqda.zfbz = 0 and zsda.zfbz = 0 and $mcid$)
  241. </select>
  242. </sqlMap>