Guiji_Public_Resource_Mapper2.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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_Public_Resource_Mapper2">
  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. <!--市公共资源-招标公告-->
  14. <insert id="add_guiji_public_resource_call_for_bid" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
  15. insert into t_guiji_gas_zenner_user_infor (
  16. <include refid="global_name"></include>
  17. GUID, VC_UI_CODE, VC_UI_NAME, VC_UI_STATE, VC_UI_ADDR, VC_UI_TEL, VC_UI_IDNO, VC_UI_REMARK, N_UI_BEFOREAMOUNT, N_UI_LASTAMOUNT)
  18. values (
  19. <include refid="global_value"></include>
  20. #{GUID}, #{VC_UI_CODE}, #{VC_UI_NAME}, #{VC_UI_STATE}, #{VC_UI_ADDR}, #{VC_UI_TEL}, #{VC_UI_IDNO} , #{VC_UI_REMARK}, #{N_UI_BEFOREAMOUNT}, #{N_UI_LASTAMOUNT})
  21. </insert>
  22. <update id="update_guiji_public_resource_call_for_bid" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
  23. update t_guiji_gas_zenner_user_infor
  24. <trim prefix="SET" suffixOverrides=",">
  25. <include refid="update_sql"></include>
  26. <if test="GUID != null and GUID != ''">
  27. GUID = #{GUID},
  28. </if>
  29. <if test="VC_UI_CODE != null and VC_UI_CODE != ''">
  30. VC_UI_CODE = #{VC_UI_CODE},
  31. </if>
  32. <if test="VC_UI_NAME != null and VC_UI_NAME != ''">
  33. VC_UI_NAME = #{VC_UI_NAME},
  34. </if>
  35. <if test="VC_UI_STATE != null and VC_UI_STATE != ''">
  36. VC_UI_STATE = #{VC_UI_STATE},
  37. </if>
  38. <if test="VC_UI_ADDR != null and VC_UI_ADDR != ''">
  39. VC_UI_ADDR = #{VC_UI_ADDR},
  40. </if>
  41. <if test="VC_UI_TEL != null and VC_UI_TEL != ''">
  42. VC_UI_TEL = #{VC_UI_TEL},
  43. </if>
  44. <if test="VC_UI_IDNO != null and VC_UI_IDNO != ''">
  45. VC_UI_IDNO = #{VC_UI_IDNO},
  46. </if>
  47. <if test="VC_UI_REMARK != null and VC_UI_REMARK != ''">
  48. VC_UI_REMARK = #{VC_UI_REMARK},
  49. </if>
  50. <if test="N_UI_BEFOREAMOUNT != null and N_UI_BEFOREAMOUNT != ''">
  51. N_UI_BEFOREAMOUNT = #{N_UI_BEFOREAMOUNT},
  52. </if>
  53. <if test="N_UI_LASTAMOUNT != null and N_UI_LASTAMOUNT != ''">
  54. N_UI_LASTAMOUNT = #{N_UI_LASTAMOUNT},
  55. </if>
  56. </trim>
  57. where id = #{id}
  58. </update>
  59. <!--市公共资源-变更公告-->
  60. <insert id="add_guiji_public_resource_change_the_bid" parameterType="com.sooka.model.bo.Guiji_gas2_Zenner_gas_meter_infor_Bean">
  61. insert into t_guiji_gas_zenner_gas_meter_infor (
  62. <include refid="global_name"></include>
  63. GUID, VC_MI_USERGUID, VC_MI_NO, VC_MI_CARDNO, VC_MI_DIRECTION, VC_MI_TIMA, VC_MI_CHAOBIAO, N_MI_BASECOUNT, N_MI_BASELEAVE, VC_MI_STATE, I_MI_SALECOUNT, I_MI_WLSALECOUNT, I_MI_FILLCARDCOUNT, VC_MI_REMARK, I_MI_REPORTCOUNT, D_MI_CREATETIME)
  64. values (
  65. <include refid="global_value"></include>
  66. #{GUID},#{VC_MI_USERGUID}, #{VC_MI_NO}, #{VC_MI_CARDNO}, #{VC_MI_DIRECTION}, #{VC_MI_TIMA}, #{VC_MI_CHAOBIAO}, #{N_MI_BASECOUNT}, #{N_MI_BASELEAVE}, #{VC_MI_STATE}, #{I_MI_SALECOUNT}, #{I_MI_WLSALECOUNT}, #{I_MI_FILLCARDCOUNT}, #{VC_MI_REMARK}, #{I_MI_REPORTCOUNT}, #{D_MI_CREATETIME})
  67. </insert>
  68. <update id="update_guiji_public_resource_change_the_bid" parameterType="com.sooka.model.bo.Guiji_gas2_Zenner_gas_meter_infor_Bean">
  69. update t_guiji_gas_zenner_gas_meter_infor
  70. <trim prefix="SET" suffixOverrides=",">
  71. <include refid="update_sql"></include>
  72. <if test="GUID != null and GUID != ''">
  73. GUID = #{GUID},
  74. </if>
  75. <if test="VC_MI_USERGUID != null and VC_MI_USERGUID != ''">
  76. VC_MI_USERGUID = #{VC_MI_USERGUID},
  77. </if>
  78. <if test="VC_MI_NO != null and VC_MI_NO != ''">
  79. VC_MI_NO = #{VC_MI_NO},
  80. </if>
  81. <if test="VC_MI_CARDNO != null and VC_MI_CARDNO != ''">
  82. VC_MI_CARDNO = #{VC_MI_CARDNO},
  83. </if>
  84. <if test="VC_MI_DIRECTION != null and VC_MI_DIRECTION != ''">
  85. VC_MI_DIRECTION = #{VC_MI_DIRECTION},
  86. </if>
  87. <if test="VC_MI_TIMA != null and VC_MI_TIMA != ''">
  88. VC_MI_TIMA = #{VC_MI_TIMA},
  89. </if>
  90. <if test="VC_MI_CHAOBIAO != null and VC_MI_CHAOBIAO != ''">
  91. VC_MI_CHAOBIAO = #{VC_MI_CHAOBIAO},
  92. </if>
  93. <if test=" != null and N_MI_BASECOUNT != ''">
  94. N_MI_BASECOUNT = #{N_MI_BASECOUNT},
  95. </if>
  96. <if test="N_MI_BASELEAVE != null and N_MI_BASELEAVE != ''">
  97. N_MI_BASELEAVE = #{N_MI_BASELEAVE},
  98. </if>
  99. <if test="VC_MI_STATE != null and VC_MI_STATE != ''">
  100. VC_MI_STATE = #{VC_MI_STATE},
  101. </if>
  102. <if test="I_MI_SALECOUNT != null and I_MI_SALECOUNT != ''">
  103. I_MI_SALECOUNT = #{I_MI_SALECOUNT},
  104. </if>
  105. <if test="I_MI_WLSALECOUNT != null and I_MI_WLSALECOUNT != ''">
  106. I_MI_WLSALECOUNT = #{I_MI_WLSALECOUNT},
  107. </if>
  108. <if test="I_MI_FILLCARDCOUNT != null and I_MI_FILLCARDCOUNT != ''">
  109. I_MI_FILLCARDCOUNT = #{I_MI_FILLCARDCOUNT},
  110. </if>
  111. <if test="VC_MI_REMARK != null and VC_MI_REMARK != ''">
  112. VC_MI_REMARK = #{VC_MI_REMARK},
  113. </if>
  114. <if test="I_MI_REPORTCOUNT != null and I_MI_REPORTCOUNT != ''">
  115. I_MI_REPORTCOUNT = #{I_MI_REPORTCOUNT},
  116. </if>
  117. <if test="D_MI_CREATETIME != null and D_MI_CREATETIME != ''">
  118. D_MI_CREATETIME = #{D_MI_CREATETIME},
  119. </if>
  120. </trim>
  121. where id = #{id}
  122. </update>
  123. <!--市公共资源-中标公告-->
  124. <insert id="add_guiji_public_resource_win_the_bid" parameterType="com.sooka.model.bo.Guiji_gas3_Zenner_gas_purchase_infor_Bean">
  125. insert into t_guiji_gas_zenner_gas_purchase_infor (
  126. <include refid="global_name"></include>
  127. GUID, VC_SG_USERGUID, N_SG_BEFOREAMOUNT, N_SG_SHOULDAMOUNT, N_SG_FACTAMOUNT, N_SG_LASTAMOUNT, VC_SG_IVNO, VC_SG_OPCODE, D_SG_SALEDATE, VC_SG_SALEORBACK)
  128. values (
  129. <include refid="global_value"></include>
  130. #{GUID}, #{VC_SG_USERGUID}, #{N_SG_BEFOREAMOUNT}, #{N_SG_SHOULDAMOUNT}, #{N_SG_FACTAMOUNT}, #{N_SG_LASTAMOUNT}, #{VC_SG_IVNO}, #{VC_SG_OPCODE}, #{D_SG_SALEDATE}, #{VC_SG_SALEORBACK})
  131. </insert>
  132. <update id="update_guiji_public_resource_win_the_bid" parameterType="com.sooka.model.bo.Guiji_gas3_Zenner_gas_purchase_infor_Bean">
  133. update t_guiji_gas_zenner_gas_purchase_infor
  134. <trim prefix="SET" suffixOverrides=",">
  135. <include refid="update_sql"></include>
  136. <if test="GUID != null and GUID != ''">
  137. GUID = #{GUID},
  138. </if>
  139. <if test="VC_SG_USERGUID != null and VC_SG_USERGUID != ''">
  140. VC_SG_USERGUID = #{VC_SG_USERGUID},
  141. </if>
  142. <if test="N_SG_BEFOREAMOUNT != null and N_SG_BEFOREAMOUNT != ''">
  143. N_SG_BEFOREAMOUNT = #{N_SG_BEFOREAMOUNT},
  144. </if>
  145. <if test="N_SG_SHOULDAMOUNT != null and N_SG_SHOULDAMOUNT != ''">
  146. N_SG_SHOULDAMOUNT = #{N_SG_SHOULDAMOUNT},
  147. </if>
  148. <if test="N_SG_FACTAMOUNT != null and N_SG_FACTAMOUNT != ''">
  149. N_SG_FACTAMOUNT = #{N_SG_FACTAMOUNT},
  150. </if>
  151. <if test="N_SG_LASTAMOUNT != null and N_SG_LASTAMOUNT != ''">
  152. N_SG_LASTAMOUNT = #{N_SG_LASTAMOUNT},
  153. </if>
  154. <if test="VC_SG_IVNO != null and VC_SG_IVNO != ''">
  155. VC_SG_IVNO = #{VC_SG_IVNO},
  156. </if>
  157. <if test="VC_SG_OPCODE != null and VC_SG_OPCODE != ''">
  158. VC_SG_OPCODE = #{VC_SG_OPCODE},
  159. </if>
  160. <if test="D_SG_SALEDATE != null and D_SG_SALEDATE != ''">
  161. D_SG_SALEDATE = #{D_SG_SALEDATE},
  162. </if>
  163. <if test="VC_SG_SALEORBACK != null and VC_SG_SALEORBACK != ''">
  164. VC_SG_SALEORBACK = #{VC_SG_SALEORBACK},
  165. </if>
  166. </trim>
  167. where id = #{id}
  168. </update>
  169. </mapper>