|
@@ -0,0 +1,619 @@
|
|
|
+<?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_Gas_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_gas_Zenner_user_infor" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_plant (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Zenner_user_infor" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
|
|
|
+ update t_guiji_medicine_plant
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="plantName != null and plantName != ''">
|
|
|
+ plantName = #{plantName},
|
|
|
+ </if>
|
|
|
+ <if test="plantAddress != null and plantAddress != ''">
|
|
|
+ plantAddress = #{plantAddress},
|
|
|
+ </if>
|
|
|
+ <if test="plantHectare != null and plantHectare != ''">
|
|
|
+ plantHectare = #{plantHectare},
|
|
|
+ </if>
|
|
|
+ <if test="produceTons != null and produceTons != ''">
|
|
|
+ produceTons = #{produceTons},
|
|
|
+ </if>
|
|
|
+ <if test="produceValue != null and produceValue != ''">
|
|
|
+ produceValue = #{produceValue},
|
|
|
+ </if>
|
|
|
+ <if test="plantYear != null and plantYear != ''">
|
|
|
+ plantYear = #{plantYear},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_Zenner_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas2_Zenner_gas_meter_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_platform (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Zenner_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas2_Zenner_gas_meter_infor_Bean">
|
|
|
+ update t_guiji_medicine_platform
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="platformName != null and platformName != ''">
|
|
|
+ platformName = #{platformName},
|
|
|
+ </if>
|
|
|
+ <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
+ constructingUnit = #{constructingUnit},
|
|
|
+ </if>
|
|
|
+ <if test="constructingDate != null and constructingDate != ''">
|
|
|
+ constructingDate = #{constructingDate},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddress != null and platformAddress != ''">
|
|
|
+ platformAddress = #{platformAddress},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
+ platformAddressExt = #{platformAddressExt},
|
|
|
+ </if>
|
|
|
+ <if test="platformLevel != null and platformLevel != ''">
|
|
|
+ platformLevel = #{platformLevel},
|
|
|
+ </if>
|
|
|
+ <if test="platformType != null and platformType != ''">
|
|
|
+ platformType = #{platformType},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_Zenner_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas3_Zenner_gas_purchase_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_project (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Zenner_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas3_Zenner_gas_purchase_infor_Bean">
|
|
|
+ update t_guiji_medicine_project
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
+ projectName = #{projectName},
|
|
|
+ </if>
|
|
|
+ <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
+ projectOrgName = #{projectOrgName},
|
|
|
+ </if>
|
|
|
+ <if test="projectAddress != null and projectAddress != ''">
|
|
|
+ projectAddress = #{projectAddress},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null and projectStatus != ''">
|
|
|
+ projectStatus = #{projectStatus},
|
|
|
+ </if>
|
|
|
+ <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
|
|
|
+ projectTotalInvestment = #{projectTotalInvestment},
|
|
|
+ </if>
|
|
|
+ <if test="projectStart != null and projectStart != ''">
|
|
|
+ projectStart = #{projectStart},
|
|
|
+ </if>
|
|
|
+ <if test="projectEnd != null and projectEnd != ''">
|
|
|
+ projectEnd = #{projectEnd},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_Zenner_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas4_Zenner_meter_reading_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_industry (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ year, month, economyType, number, yearOnYear, cityProportion)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{year}, #{month}, #{economyType}, #{number}, #{yearOnYear}, #{cityProportion})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Zenner_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas4_Zenner_meter_reading_infor_Bean">
|
|
|
+ update t_guiji_medicine_industry
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="year != null and year != ''">
|
|
|
+ year = #{year},
|
|
|
+ </if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ month = #{month},
|
|
|
+ </if>
|
|
|
+ <if test="economyType != null and economyType != ''">
|
|
|
+ economyType = #{economyType},
|
|
|
+ </if>
|
|
|
+ <if test="number != null and number != ''">
|
|
|
+ number = #{number},
|
|
|
+ </if>
|
|
|
+ <if test="yearOnYear != null and yearOnYear != ''">
|
|
|
+ yearOnYear = #{yearOnYear},
|
|
|
+ </if>
|
|
|
+ <if test="cityProportion != null and cityProportion != ''">
|
|
|
+ cityProportion = #{cityProportion},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!--奥枫收费系统-->
|
|
|
+ <insert id="add_guiji_gas_Aofe_user_infor" parameterType="com.sooka.model.bo.Guiji_gas5_Aofe_user_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_plant (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Aofe_user_infor" parameterType="com.sooka.model.bo.Guiji_gas5_Aofe_user_infor_Bean">
|
|
|
+ update t_guiji_medicine_plant
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="plantName != null and plantName != ''">
|
|
|
+ plantName = #{plantName},
|
|
|
+ </if>
|
|
|
+ <if test="plantAddress != null and plantAddress != ''">
|
|
|
+ plantAddress = #{plantAddress},
|
|
|
+ </if>
|
|
|
+ <if test="plantHectare != null and plantHectare != ''">
|
|
|
+ plantHectare = #{plantHectare},
|
|
|
+ </if>
|
|
|
+ <if test="produceTons != null and produceTons != ''">
|
|
|
+ produceTons = #{produceTons},
|
|
|
+ </if>
|
|
|
+ <if test="produceValue != null and produceValue != ''">
|
|
|
+ produceValue = #{produceValue},
|
|
|
+ </if>
|
|
|
+ <if test="plantYear != null and plantYear != ''">
|
|
|
+ plantYear = #{plantYear},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_Aofe_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas6_Aofe_gas_meter_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_platform (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Aofe_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas6_Aofe_gas_meter_infor_Bean">
|
|
|
+ update t_guiji_medicine_platform
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="platformName != null and platformName != ''">
|
|
|
+ platformName = #{platformName},
|
|
|
+ </if>
|
|
|
+ <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
+ constructingUnit = #{constructingUnit},
|
|
|
+ </if>
|
|
|
+ <if test="constructingDate != null and constructingDate != ''">
|
|
|
+ constructingDate = #{constructingDate},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddress != null and platformAddress != ''">
|
|
|
+ platformAddress = #{platformAddress},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
+ platformAddressExt = #{platformAddressExt},
|
|
|
+ </if>
|
|
|
+ <if test="platformLevel != null and platformLevel != ''">
|
|
|
+ platformLevel = #{platformLevel},
|
|
|
+ </if>
|
|
|
+ <if test="platformType != null and platformType != ''">
|
|
|
+ platformType = #{platformType},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_Aofe_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas7_Aofe_gas_purchase_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_project (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Aofe_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas7_Aofe_gas_purchase_infor_Bean">
|
|
|
+ update t_guiji_medicine_project
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
+ projectName = #{projectName},
|
|
|
+ </if>
|
|
|
+ <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
+ projectOrgName = #{projectOrgName},
|
|
|
+ </if>
|
|
|
+ <if test="projectAddress != null and projectAddress != ''">
|
|
|
+ projectAddress = #{projectAddress},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null and projectStatus != ''">
|
|
|
+ projectStatus = #{projectStatus},
|
|
|
+ </if>
|
|
|
+ <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
|
|
|
+ projectTotalInvestment = #{projectTotalInvestment},
|
|
|
+ </if>
|
|
|
+ <if test="projectStart != null and projectStart != ''">
|
|
|
+ projectStart = #{projectStart},
|
|
|
+ </if>
|
|
|
+ <if test="projectEnd != null and projectEnd != ''">
|
|
|
+ projectEnd = #{projectEnd},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_Aofe_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas8_Aofe_meter_reading_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_industry (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ year, month, economyType, number, yearOnYear, cityProportion)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{year}, #{month}, #{economyType}, #{number}, #{yearOnYear}, #{cityProportion})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_Aofe_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas8_Aofe_meter_reading_infor_Bean">
|
|
|
+ update t_guiji_medicine_industry
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="year != null and year != ''">
|
|
|
+ year = #{year},
|
|
|
+ </if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ month = #{month},
|
|
|
+ </if>
|
|
|
+ <if test="economyType != null and economyType != ''">
|
|
|
+ economyType = #{economyType},
|
|
|
+ </if>
|
|
|
+ <if test="number != null and number != ''">
|
|
|
+ number = #{number},
|
|
|
+ </if>
|
|
|
+ <if test="yearOnYear != null and yearOnYear != ''">
|
|
|
+ yearOnYear = #{yearOnYear},
|
|
|
+ </if>
|
|
|
+ <if test="cityProportion != null and cityProportion != ''">
|
|
|
+ cityProportion = #{cityProportion},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!--秦川业务系统-->
|
|
|
+ <insert id="add_guiji_gas_qinchuan_user_infor" parameterType="com.sooka.model.bo.Guiji_gas9_qinchuan_user_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_plant (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_qinchuan_user_infor" parameterType="com.sooka.model.bo.Guiji_gas9_qinchuan_user_infor_Bean">
|
|
|
+ update t_guiji_medicine_plant
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="plantName != null and plantName != ''">
|
|
|
+ plantName = #{plantName},
|
|
|
+ </if>
|
|
|
+ <if test="plantAddress != null and plantAddress != ''">
|
|
|
+ plantAddress = #{plantAddress},
|
|
|
+ </if>
|
|
|
+ <if test="plantHectare != null and plantHectare != ''">
|
|
|
+ plantHectare = #{plantHectare},
|
|
|
+ </if>
|
|
|
+ <if test="produceTons != null and produceTons != ''">
|
|
|
+ produceTons = #{produceTons},
|
|
|
+ </if>
|
|
|
+ <if test="produceValue != null and produceValue != ''">
|
|
|
+ produceValue = #{produceValue},
|
|
|
+ </if>
|
|
|
+ <if test="plantYear != null and plantYear != ''">
|
|
|
+ plantYear = #{plantYear},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!--思凯收费系统-->
|
|
|
+ <insert id="add_guiji_gas_SC_user_infor" parameterType="com.sooka.model.bo.Guiji_gas10_SC_user_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_plant (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_SC_user_infor" parameterType="com.sooka.model.bo.Guiji_gas10_SC_user_infor_Bean">
|
|
|
+ update t_guiji_medicine_plant
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="plantName != null and plantName != ''">
|
|
|
+ plantName = #{plantName},
|
|
|
+ </if>
|
|
|
+ <if test="plantAddress != null and plantAddress != ''">
|
|
|
+ plantAddress = #{plantAddress},
|
|
|
+ </if>
|
|
|
+ <if test="plantHectare != null and plantHectare != ''">
|
|
|
+ plantHectare = #{plantHectare},
|
|
|
+ </if>
|
|
|
+ <if test="produceTons != null and produceTons != ''">
|
|
|
+ produceTons = #{produceTons},
|
|
|
+ </if>
|
|
|
+ <if test="produceValue != null and produceValue != ''">
|
|
|
+ produceValue = #{produceValue},
|
|
|
+ </if>
|
|
|
+ <if test="plantYear != null and plantYear != ''">
|
|
|
+ plantYear = #{plantYear},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_SC_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas11_SC_gas_meter_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_platform (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_SC_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas11_SC_gas_meter_infor_Bean">
|
|
|
+ update t_guiji_medicine_platform
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="platformName != null and platformName != ''">
|
|
|
+ platformName = #{platformName},
|
|
|
+ </if>
|
|
|
+ <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
+ constructingUnit = #{constructingUnit},
|
|
|
+ </if>
|
|
|
+ <if test="constructingDate != null and constructingDate != ''">
|
|
|
+ constructingDate = #{constructingDate},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddress != null and platformAddress != ''">
|
|
|
+ platformAddress = #{platformAddress},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
+ platformAddressExt = #{platformAddressExt},
|
|
|
+ </if>
|
|
|
+ <if test="platformLevel != null and platformLevel != ''">
|
|
|
+ platformLevel = #{platformLevel},
|
|
|
+ </if>
|
|
|
+ <if test="platformType != null and platformType != ''">
|
|
|
+ platformType = #{platformType},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_SC_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas12_SC_gas_purchase_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_project (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_SC_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas12_SC_gas_purchase_infor_Bean">
|
|
|
+ update t_guiji_medicine_project
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
+ projectName = #{projectName},
|
|
|
+ </if>
|
|
|
+ <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
+ projectOrgName = #{projectOrgName},
|
|
|
+ </if>
|
|
|
+ <if test="projectAddress != null and projectAddress != ''">
|
|
|
+ projectAddress = #{projectAddress},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null and projectStatus != ''">
|
|
|
+ projectStatus = #{projectStatus},
|
|
|
+ </if>
|
|
|
+ <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
|
|
|
+ projectTotalInvestment = #{projectTotalInvestment},
|
|
|
+ </if>
|
|
|
+ <if test="projectStart != null and projectStart != ''">
|
|
|
+ projectStart = #{projectStart},
|
|
|
+ </if>
|
|
|
+ <if test="projectEnd != null and projectEnd != ''">
|
|
|
+ projectEnd = #{projectEnd},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_SC_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas13_SC_meter_reading_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_industry (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ year, month, economyType, number, yearOnYear, cityProportion)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{year}, #{month}, #{economyType}, #{number}, #{yearOnYear}, #{cityProportion})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_SC_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas13_SC_meter_reading_infor_Bean">
|
|
|
+ update t_guiji_medicine_industry
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="year != null and year != ''">
|
|
|
+ year = #{year},
|
|
|
+ </if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ month = #{month},
|
|
|
+ </if>
|
|
|
+ <if test="economyType != null and economyType != ''">
|
|
|
+ economyType = #{economyType},
|
|
|
+ </if>
|
|
|
+ <if test="number != null and number != ''">
|
|
|
+ number = #{number},
|
|
|
+ </if>
|
|
|
+ <if test="yearOnYear != null and yearOnYear != ''">
|
|
|
+ yearOnYear = #{yearOnYear},
|
|
|
+ </if>
|
|
|
+ <if test="cityProportion != null and cityProportion != ''">
|
|
|
+ cityProportion = #{cityProportion},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!--鑫科客户系统-->
|
|
|
+ <insert id="add_guiji_gas_XinKer_user_infor" parameterType="com.sooka.model.bo.Guiji_gas14_XinKer_user_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_plant (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_XinKer_user_infor" parameterType="com.sooka.model.bo.Guiji_gas14_XinKer_user_infor_Bean">
|
|
|
+ update t_guiji_medicine_plant
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="plantName != null and plantName != ''">
|
|
|
+ plantName = #{plantName},
|
|
|
+ </if>
|
|
|
+ <if test="plantAddress != null and plantAddress != ''">
|
|
|
+ plantAddress = #{plantAddress},
|
|
|
+ </if>
|
|
|
+ <if test="plantHectare != null and plantHectare != ''">
|
|
|
+ plantHectare = #{plantHectare},
|
|
|
+ </if>
|
|
|
+ <if test="produceTons != null and produceTons != ''">
|
|
|
+ produceTons = #{produceTons},
|
|
|
+ </if>
|
|
|
+ <if test="produceValue != null and produceValue != ''">
|
|
|
+ produceValue = #{produceValue},
|
|
|
+ </if>
|
|
|
+ <if test="plantYear != null and plantYear != ''">
|
|
|
+ plantYear = #{plantYear},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_XinKer_acceptance_infor" parameterType="com.sooka.model.bo.Guiji_gas15_XinKer_acceptance_infor_Bean">
|
|
|
+ insert into t_guiji_medicine_platform (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_XinKer_acceptance_infor" parameterType="com.sooka.model.bo.Guiji_gas15_XinKer_acceptance_infor_Bean">
|
|
|
+ update t_guiji_medicine_platform
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="platformName != null and platformName != ''">
|
|
|
+ platformName = #{platformName},
|
|
|
+ </if>
|
|
|
+ <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
+ constructingUnit = #{constructingUnit},
|
|
|
+ </if>
|
|
|
+ <if test="constructingDate != null and constructingDate != ''">
|
|
|
+ constructingDate = #{constructingDate},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddress != null and platformAddress != ''">
|
|
|
+ platformAddress = #{platformAddress},
|
|
|
+ </if>
|
|
|
+ <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
+ platformAddressExt = #{platformAddressExt},
|
|
|
+ </if>
|
|
|
+ <if test="platformLevel != null and platformLevel != ''">
|
|
|
+ platformLevel = #{platformLevel},
|
|
|
+ </if>
|
|
|
+ <if test="platformType != null and platformType != ''">
|
|
|
+ platformType = #{platformType},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="add_guiji_gas_XinKer_disposition_info" parameterType="com.sooka.model.bo.Guiji_gas16_XinKer_disposition_info_Bean">
|
|
|
+ insert into t_guiji_medicine_project (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update_guiji_gas_XinKer_disposition_info" parameterType="com.sooka.model.bo.Guiji_gas16_XinKer_disposition_info_Bean">
|
|
|
+ update t_guiji_medicine_project
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
+ projectName = #{projectName},
|
|
|
+ </if>
|
|
|
+ <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
+ projectOrgName = #{projectOrgName},
|
|
|
+ </if>
|
|
|
+ <if test="projectAddress != null and projectAddress != ''">
|
|
|
+ projectAddress = #{projectAddress},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null and projectStatus != ''">
|
|
|
+ projectStatus = #{projectStatus},
|
|
|
+ </if>
|
|
|
+ <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
|
|
|
+ projectTotalInvestment = #{projectTotalInvestment},
|
|
|
+ </if>
|
|
|
+ <if test="projectStart != null and projectStart != ''">
|
|
|
+ projectStart = #{projectStart},
|
|
|
+ </if>
|
|
|
+ <if test="projectEnd != null and projectEnd != ''">
|
|
|
+ projectEnd = #{projectEnd},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+</mapper>
|