Guiji_Housingconstruction_Mapper.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.sooka.mapper.Guiji_Housingconstruction_Mapper">
  4. <sql id="global_name">
  5. id,create_time,cd_time,cd_batch,cd_operation,cd_source,
  6. </sql>
  7. <sql id="global_value">
  8. #{id},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
  9. </sql>
  10. <sql id="update_sql">
  11. create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
  12. </sql>
  13. <parameterMap id="pm_yhjbxx" type="com.sooka.model.bo.Guiji_housingconstruction_yhjjxx_Bean"></parameterMap>
  14. <insert id="add_guiji_housingconstruction_yhjbxx" parameterMap="pm_yhjbxx">
  15. insert into t_guiji_housingconstruction_yhjbxx (
  16. <include refid="global_name"></include>
  17. YHBH,YHMC,YHDZ,YSYF,YSL,SFJF,JFSJ)
  18. values (
  19. <include refid="global_value"></include>
  20. #{YHBH},#{YHMC},#{YHDZ},#{YSYF},#{YSL},#{SFJF},#{JFSJ}
  21. )
  22. </insert>
  23. <update id="update_guiji_housingconstruction_yhjbxx" parameterMap="pm_yhjbxx">
  24. update t_guiji_housingconstruction_yhjbxx
  25. <trim prefix="SET" suffixOverrides=",">
  26. <include refid="update_sql"></include>
  27. <if test="YHBH != null and YHBH != ''">
  28. YHBH = #{YHBH},
  29. </if>
  30. <if test="YHMC != null and YHMC != ''">
  31. YHMC = #{YHMC},
  32. </if>
  33. <if test="YHDZ != null and YHDZ != ''">
  34. YHDZ = #{YHDZ},
  35. </if>
  36. <if test="YSYF != null and YSYF != ''">
  37. YSYF = #{YSYF},
  38. </if>
  39. <if test="YSL != null and YSL != ''">
  40. YSL = #{YSL},
  41. </if>
  42. <if test="SFJF != null and SFJF != ''">
  43. SFJF = #{SFJF},
  44. </if>
  45. <if test="JFSJ != null and JFSJ != ''">
  46. JFSJ = #{JFSJ},
  47. </if>
  48. </trim>
  49. where id = #{id}
  50. </update>
  51. <parameterMap id="pm_ysljc" type="com.sooka.model.bo.Guiji_housingconstruction_ysljc_Bean"></parameterMap>
  52. <insert id="add_guiji_housingconstruction_ysljc" parameterMap="pm_ysljc">
  53. insert into t_guiji_housingconstruction_ysljc (
  54. <include refid="global_name"></include>
  55. ssid,name,dnm,snm,value,time
  56. )
  57. values (
  58. <include refid="global_value"></include>
  59. #{ssid},#{name},#{dnm},#{snm},#{value},#{time}
  60. )
  61. </insert>
  62. <update id="update_guiji_housingconstruction_ysljc" parameterMap="pm_ysljc">
  63. update t_guiji_housingconstruction_ysljc
  64. <trim prefix="SET" suffixOverrides=",">
  65. <include refid="update_sql"></include>
  66. <if test="ssid != null and ssid != ''">
  67. ssid = #{ssid},
  68. </if>
  69. <if test="name != null and name != ''">
  70. name = #{name},
  71. </if>
  72. <if test="dnm != null and dnm != ''">
  73. dnm = #{dnm},
  74. </if>
  75. <if test="snm != null and snm != ''">
  76. snm = #{snm},
  77. </if>
  78. <if test="value != null and value != ''">
  79. value = #{value},
  80. </if>
  81. <if test="time != null and time != ''">
  82. time = #{time},
  83. </if>
  84. </trim>
  85. where id=#{id}
  86. </update>
  87. <parameterMap id="pm_zlskfrx" type="com.sooka.model.bo.Guiji_housingconstruction_zlskfrx_Bean"></parameterMap>
  88. <insert id="add_guiji_housingconstruction_zlskfrx" parameterMap="pm_zlskfrx">
  89. insert into t_guiji_housingconstruction_zlskfrx (
  90. <include refid="global_name"></include>
  91. CaseId,IncomingCall,Name,Address,Content,CreateOn)
  92. values (
  93. <include refid="global_value"></include>
  94. #{CaseId},#{IncomingCall},#{Name},#{Address},#{Content},#{CreateOn}
  95. )
  96. </insert>
  97. <update id="update_guiji_housingconstruction_zlskfrx" parameterMap="pm_zlskfrx">
  98. update t_guiji_housingconstruction_zlskfrx
  99. <trim prefix="SET" suffixOverrides=",">
  100. <include refid="update_sql"></include>
  101. <if test="IncomingCall != null and IncomingCall != ''">
  102. IncomingCall= #{IncomingCall},
  103. </if>
  104. <if test="Name != null and Name != ''">
  105. Name= #{Name},
  106. </if>
  107. <if test="Address != null and Address != ''">
  108. Address= #{Address},
  109. </if>
  110. <if test="Content != null and Content != ''">
  111. Content = #{Content},
  112. </if>
  113. <if test="CreateOn != null and CreateOn != ''">
  114. CreateOn = #{CreateOn},
  115. </if>
  116. </trim>
  117. where CaseId = #{CaseId}
  118. </update>
  119. <parameterMap id="pm_ysxt" type="com.sooka.model.bo.Guiji_housingconstruction_ysxt_Bean"></parameterMap>
  120. <insert id="add_guiji_housingconstruction_ysxt" parameterMap="pm_ysxt">
  121. insert into t_guiji_housingconstruction_ysxt (
  122. <include refid="global_name"></include>
  123. YHBH,YHMC,YHDZ,YSYF,YSL,SFJF,JFSJ)
  124. values (
  125. <include refid="global_value"></include>
  126. #{YHBH},#{YHMC},#{YHDZ},#{YSYF},#{YSL},#{SFJF},#{JFSJ}
  127. )
  128. </insert>
  129. <update id="update_guiji_housingconstruction_ysxt" parameterMap="pm_ysxt">
  130. updat t_guiji_housingconstruction_ysxt
  131. <if test="YHBH != null and YHBH != ''">
  132. YHBH = #{YHBH},
  133. </if>
  134. <if test="YHMC != null and YHMC != ''">
  135. YHMC = #{YHMC},
  136. </if>
  137. <if test="YHDZ != null and YHDZ != ''">
  138. YHDZ = #{YHDZ},
  139. </if>
  140. <if test="YSYF != null and YSYF != ''">
  141. YSYF = #{YSYF},
  142. </if>
  143. <if test="YSL != null and YSL != ''">
  144. YSL = #{YSL},
  145. </if>
  146. <if test="SFJF != null and SFJF != ''">
  147. SFJF = #{SFJF},
  148. </if>
  149. <if test="cardno != null and cardno != ''">
  150. JFSJ = #{JFSJ},
  151. </if>
  152. where YHBH = #{YHBH}
  153. </update>
  154. <parameterMap id="pm_hqrlsj" type="com.sooka.model.bo.Guiji_housingconstruction_hqrlsj_Bean"></parameterMap>
  155. <insert id="add_guiji_housingconstruction_hqrlsj" parameterMap="pm_hqrlsj">
  156. insert into t_guiji_housingconstruction_hqrlsj (
  157. <include refid="global_name"></include>
  158. name,time,type)
  159. values (
  160. <include refid="global_value"></include>
  161. #{name},now(),#{type}
  162. )
  163. </insert>
  164. <insert id="add_guiji_housingconstruction_hqrlsj_detail" parameterMap="pm_hqrlsj">
  165. insert into t_guiji_housingconstruction_hqrlsj_detail (
  166. <include refid="global_name"></include>
  167. name,value,hqrlsj_id
  168. )
  169. values (
  170. <include refid="global_value"></include>
  171. #{name},#{value},#{hqrlsj_id}
  172. )
  173. </insert>
  174. </mapper>