xt_csjlpz_SqlMap.xml 9.2 KB

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