|
@@ -0,0 +1,177 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
+<mapper namespace="com.sooka.mapper.Guiji_Public_Resource_Mapper2">
|
|
|
+
|
|
|
+ <sql id="global_name">
|
|
|
+ id,create_time,cd_time,cd_batch,cd_operation,cd_source,
|
|
|
+ </sql>
|
|
|
+ <sql id="global_value">
|
|
|
+ #{id},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="update_sql">
|
|
|
+ create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <!--市公共资源-招标公告-->
|
|
|
+ <insert id="add_guiji_public_resource_call_for_bid" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
|
|
|
+ insert into t_guiji_gas_zenner_user_infor (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ 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)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{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})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_public_resource_call_for_bid" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
|
|
|
+ update t_guiji_gas_zenner_user_infor
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="GUID != null and GUID != ''">
|
|
|
+ GUID = #{GUID},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_CODE != null and VC_UI_CODE != ''">
|
|
|
+ VC_UI_CODE = #{VC_UI_CODE},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_NAME != null and VC_UI_NAME != ''">
|
|
|
+ VC_UI_NAME = #{VC_UI_NAME},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_STATE != null and VC_UI_STATE != ''">
|
|
|
+ VC_UI_STATE = #{VC_UI_STATE},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_ADDR != null and VC_UI_ADDR != ''">
|
|
|
+ VC_UI_ADDR = #{VC_UI_ADDR},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_TEL != null and VC_UI_TEL != ''">
|
|
|
+ VC_UI_TEL = #{VC_UI_TEL},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_IDNO != null and VC_UI_IDNO != ''">
|
|
|
+ VC_UI_IDNO = #{VC_UI_IDNO},
|
|
|
+ </if>
|
|
|
+ <if test="VC_UI_REMARK != null and VC_UI_REMARK != ''">
|
|
|
+ VC_UI_REMARK = #{VC_UI_REMARK},
|
|
|
+ </if>
|
|
|
+ <if test="N_UI_BEFOREAMOUNT != null and N_UI_BEFOREAMOUNT != ''">
|
|
|
+ N_UI_BEFOREAMOUNT = #{N_UI_BEFOREAMOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="N_UI_LASTAMOUNT != null and N_UI_LASTAMOUNT != ''">
|
|
|
+ N_UI_LASTAMOUNT = #{N_UI_LASTAMOUNT},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!--市公共资源-变更公告-->
|
|
|
+ <insert id="add_guiji_public_resource_change_the_bid" parameterType="com.sooka.model.bo.Guiji_gas2_Zenner_gas_meter_infor_Bean">
|
|
|
+ insert into t_guiji_gas_zenner_gas_meter_infor (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ 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)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{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})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_public_resource_change_the_bid" parameterType="com.sooka.model.bo.Guiji_gas2_Zenner_gas_meter_infor_Bean">
|
|
|
+ update t_guiji_gas_zenner_gas_meter_infor
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="GUID != null and GUID != ''">
|
|
|
+ GUID = #{GUID},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_USERGUID != null and VC_MI_USERGUID != ''">
|
|
|
+ VC_MI_USERGUID = #{VC_MI_USERGUID},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_NO != null and VC_MI_NO != ''">
|
|
|
+ VC_MI_NO = #{VC_MI_NO},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_CARDNO != null and VC_MI_CARDNO != ''">
|
|
|
+ VC_MI_CARDNO = #{VC_MI_CARDNO},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_DIRECTION != null and VC_MI_DIRECTION != ''">
|
|
|
+ VC_MI_DIRECTION = #{VC_MI_DIRECTION},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_TIMA != null and VC_MI_TIMA != ''">
|
|
|
+ VC_MI_TIMA = #{VC_MI_TIMA},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_CHAOBIAO != null and VC_MI_CHAOBIAO != ''">
|
|
|
+ VC_MI_CHAOBIAO = #{VC_MI_CHAOBIAO},
|
|
|
+ </if>
|
|
|
+ <if test=" != null and N_MI_BASECOUNT != ''">
|
|
|
+ N_MI_BASECOUNT = #{N_MI_BASECOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="N_MI_BASELEAVE != null and N_MI_BASELEAVE != ''">
|
|
|
+ N_MI_BASELEAVE = #{N_MI_BASELEAVE},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_STATE != null and VC_MI_STATE != ''">
|
|
|
+ VC_MI_STATE = #{VC_MI_STATE},
|
|
|
+ </if>
|
|
|
+ <if test="I_MI_SALECOUNT != null and I_MI_SALECOUNT != ''">
|
|
|
+ I_MI_SALECOUNT = #{I_MI_SALECOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="I_MI_WLSALECOUNT != null and I_MI_WLSALECOUNT != ''">
|
|
|
+ I_MI_WLSALECOUNT = #{I_MI_WLSALECOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="I_MI_FILLCARDCOUNT != null and I_MI_FILLCARDCOUNT != ''">
|
|
|
+ I_MI_FILLCARDCOUNT = #{I_MI_FILLCARDCOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="VC_MI_REMARK != null and VC_MI_REMARK != ''">
|
|
|
+ VC_MI_REMARK = #{VC_MI_REMARK},
|
|
|
+ </if>
|
|
|
+ <if test="I_MI_REPORTCOUNT != null and I_MI_REPORTCOUNT != ''">
|
|
|
+ I_MI_REPORTCOUNT = #{I_MI_REPORTCOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="D_MI_CREATETIME != null and D_MI_CREATETIME != ''">
|
|
|
+ D_MI_CREATETIME = #{D_MI_CREATETIME},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!--市公共资源-中标公告-->
|
|
|
+ <insert id="add_guiji_public_resource_win_the_bid" parameterType="com.sooka.model.bo.Guiji_gas3_Zenner_gas_purchase_infor_Bean">
|
|
|
+ insert into t_guiji_gas_zenner_gas_purchase_infor (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ 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)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{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})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_public_resource_win_the_bid" parameterType="com.sooka.model.bo.Guiji_gas3_Zenner_gas_purchase_infor_Bean">
|
|
|
+ update t_guiji_gas_zenner_gas_purchase_infor
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="GUID != null and GUID != ''">
|
|
|
+ GUID = #{GUID},
|
|
|
+ </if>
|
|
|
+ <if test="VC_SG_USERGUID != null and VC_SG_USERGUID != ''">
|
|
|
+ VC_SG_USERGUID = #{VC_SG_USERGUID},
|
|
|
+ </if>
|
|
|
+ <if test="N_SG_BEFOREAMOUNT != null and N_SG_BEFOREAMOUNT != ''">
|
|
|
+ N_SG_BEFOREAMOUNT = #{N_SG_BEFOREAMOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="N_SG_SHOULDAMOUNT != null and N_SG_SHOULDAMOUNT != ''">
|
|
|
+ N_SG_SHOULDAMOUNT = #{N_SG_SHOULDAMOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="N_SG_FACTAMOUNT != null and N_SG_FACTAMOUNT != ''">
|
|
|
+ N_SG_FACTAMOUNT = #{N_SG_FACTAMOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="N_SG_LASTAMOUNT != null and N_SG_LASTAMOUNT != ''">
|
|
|
+ N_SG_LASTAMOUNT = #{N_SG_LASTAMOUNT},
|
|
|
+ </if>
|
|
|
+ <if test="VC_SG_IVNO != null and VC_SG_IVNO != ''">
|
|
|
+ VC_SG_IVNO = #{VC_SG_IVNO},
|
|
|
+ </if>
|
|
|
+ <if test="VC_SG_OPCODE != null and VC_SG_OPCODE != ''">
|
|
|
+ VC_SG_OPCODE = #{VC_SG_OPCODE},
|
|
|
+ </if>
|
|
|
+ <if test="D_SG_SALEDATE != null and D_SG_SALEDATE != ''">
|
|
|
+ D_SG_SALEDATE = #{D_SG_SALEDATE},
|
|
|
+ </if>
|
|
|
+ <if test="VC_SG_SALEORBACK != null and VC_SG_SALEORBACK != ''">
|
|
|
+ VC_SG_SALEORBACK = #{VC_SG_SALEORBACK},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+</mapper>
|