|
@@ -17,7 +17,7 @@
|
|
<insert id="add_guiji_gas_Zenner_user_infor" parameterType="com.sooka.model.bo.Guiji_gas1_Zenner_user_infor_Bean">
|
|
<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 (
|
|
insert into t_guiji_medicine_plant (
|
|
<include refid="global_name"></include>
|
|
<include refid="global_name"></include>
|
|
- 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
|
|
|
|
|
|
+ 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 (
|
|
values (
|
|
<include refid="global_value"></include>
|
|
<include refid="global_value"></include>
|
|
#{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})
|
|
#{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})
|
|
@@ -390,35 +390,32 @@
|
|
|
|
|
|
<!--思凯收费系统-->
|
|
<!--思凯收费系统-->
|
|
<insert id="add_guiji_gas_SC_user_infor" parameterType="com.sooka.model.bo.Guiji_gas10_SC_user_infor_Bean">
|
|
<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 (
|
|
|
|
|
|
+ insert into t_guiji_gas_sc_user_infor (
|
|
<include refid="global_name"></include>
|
|
<include refid="global_name"></include>
|
|
- plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
|
|
|
|
|
|
+ userName, userPhone, userAddr, balance, userCode)
|
|
values (
|
|
values (
|
|
<include refid="global_value"></include>
|
|
<include refid="global_value"></include>
|
|
- #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
|
|
|
+ #{userName}, #{userPhone}, #{userAddr}, #{balance}, #{userCode})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="update_guiji_gas_SC_user_infor" parameterType="com.sooka.model.bo.Guiji_gas10_SC_user_infor_Bean">
|
|
<update id="update_guiji_gas_SC_user_infor" parameterType="com.sooka.model.bo.Guiji_gas10_SC_user_infor_Bean">
|
|
- update t_guiji_medicine_plant
|
|
|
|
|
|
+ update t_guiji_gas_sc_user_infor
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<include refid="update_sql"></include>
|
|
<include refid="update_sql"></include>
|
|
- <if test="plantName != null and plantName != ''">
|
|
|
|
- plantName = #{plantName},
|
|
|
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
|
+ userName = #{userName},
|
|
</if>
|
|
</if>
|
|
- <if test="plantAddress != null and plantAddress != ''">
|
|
|
|
- plantAddress = #{plantAddress},
|
|
|
|
|
|
+ <if test="userPhone != null and userPhone != ''">
|
|
|
|
+ userPhone = #{userPhone},
|
|
</if>
|
|
</if>
|
|
- <if test="plantHectare != null and plantHectare != ''">
|
|
|
|
- plantHectare = #{plantHectare},
|
|
|
|
|
|
+ <if test="userAddr != null and userAddr != ''">
|
|
|
|
+ userAddr = #{userAddr},
|
|
</if>
|
|
</if>
|
|
- <if test="produceTons != null and produceTons != ''">
|
|
|
|
- produceTons = #{produceTons},
|
|
|
|
|
|
+ <if test="balance != null and balance != ''">
|
|
|
|
+ balance = #{balance},
|
|
</if>
|
|
</if>
|
|
- <if test="produceValue != null and produceValue != ''">
|
|
|
|
- produceValue = #{produceValue},
|
|
|
|
- </if>
|
|
|
|
- <if test="plantYear != null and plantYear != ''">
|
|
|
|
- plantYear = #{plantYear},
|
|
|
|
|
|
+ <if test="userCode != null and userCode != ''">
|
|
|
|
+ userCode = #{userCode},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -426,38 +423,35 @@
|
|
|
|
|
|
|
|
|
|
<insert id="add_guiji_gas_SC_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas11_SC_gas_meter_infor_Bean">
|
|
<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 (
|
|
|
|
|
|
+ insert into t_guiji_gas_sc_gas_meter_infor (
|
|
<include refid="global_name"></include>
|
|
<include refid="global_name"></include>
|
|
- platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
|
|
|
|
|
|
+ trademark, productType, obsolescence, baseRead, barcode, userCode)
|
|
values (
|
|
values (
|
|
<include refid="global_value"></include>
|
|
<include refid="global_value"></include>
|
|
- #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
|
|
|
+ #{trademark}, #{productType}, #{obsolescence}, #{baseRead}, #{barcode}, #{userCode})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="update_guiji_gas_SC_gas_meter_infor" parameterType="com.sooka.model.bo.Guiji_gas11_SC_gas_meter_infor_Bean">
|
|
<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
|
|
|
|
|
|
+ update t_guiji_gas_sc_gas_meter_infor
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<include refid="update_sql"></include>
|
|
<include refid="update_sql"></include>
|
|
- <if test="platformName != null and platformName != ''">
|
|
|
|
- platformName = #{platformName},
|
|
|
|
|
|
+ <if test="trademark != null and trademark != ''">
|
|
|
|
+ trademark = #{trademark},
|
|
</if>
|
|
</if>
|
|
- <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
|
- constructingUnit = #{constructingUnit},
|
|
|
|
- </if>
|
|
|
|
- <if test="constructingDate != null and constructingDate != ''">
|
|
|
|
- constructingDate = #{constructingDate},
|
|
|
|
|
|
+ <if test="productType != null and productType != ''">
|
|
|
|
+ productType = #{productType},
|
|
</if>
|
|
</if>
|
|
- <if test="platformAddress != null and platformAddress != ''">
|
|
|
|
- platformAddress = #{platformAddress},
|
|
|
|
|
|
+ <if test="obsolescence != null and obsolescence != ''">
|
|
|
|
+ obsolescence = #{obsolescence},
|
|
</if>
|
|
</if>
|
|
- <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
|
- platformAddressExt = #{platformAddressExt},
|
|
|
|
|
|
+ <if test="baseRead != null and baseRead != ''">
|
|
|
|
+ baseRead = #{baseRead},
|
|
</if>
|
|
</if>
|
|
- <if test="platformLevel != null and platformLevel != ''">
|
|
|
|
- platformLevel = #{platformLevel},
|
|
|
|
|
|
+ <if test="barcode != null and barcode != ''">
|
|
|
|
+ barcode = #{barcode},
|
|
</if>
|
|
</if>
|
|
- <if test="platformType != null and platformType != ''">
|
|
|
|
- platformType = #{platformType},
|
|
|
|
|
|
+ <if test="userCode != null and userCode != ''">
|
|
|
|
+ userCode = #{userCode},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -465,38 +459,29 @@
|
|
|
|
|
|
|
|
|
|
<insert id="add_guiji_gas_SC_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas12_SC_gas_purchase_infor_Bean">
|
|
<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 (
|
|
|
|
|
|
+ insert into t_guiji_gas_sc_gas_purchase_infor (
|
|
<include refid="global_name"></include>
|
|
<include refid="global_name"></include>
|
|
- projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
|
|
|
|
|
|
+ tradeTime, tradeAmount, tradeMoney, userCode)
|
|
values (
|
|
values (
|
|
<include refid="global_value"></include>
|
|
<include refid="global_value"></include>
|
|
- #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
|
|
|
+ #{tradeTime}, #{tradeAmount}, #{tradeMoney}, #{userCode})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="update_guiji_gas_SC_gas_purchase_infor" parameterType="com.sooka.model.bo.Guiji_gas12_SC_gas_purchase_infor_Bean">
|
|
<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
|
|
|
|
|
|
+ update t_guiji_gas_sc_gas_purchase_infor
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<include refid="update_sql"></include>
|
|
<include refid="update_sql"></include>
|
|
- <if test="projectName != null and projectName != ''">
|
|
|
|
- projectName = #{projectName},
|
|
|
|
|
|
+ <if test="tradeTime != null and tradeTime != ''">
|
|
|
|
+ tradeTime = #{tradeTime},
|
|
</if>
|
|
</if>
|
|
- <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
|
- projectOrgName = #{projectOrgName},
|
|
|
|
|
|
+ <if test="tradeAmount != null and tradeAmount != ''">
|
|
|
|
+ tradeAmount = #{tradeAmount},
|
|
</if>
|
|
</if>
|
|
- <if test="projectAddress != null and projectAddress != ''">
|
|
|
|
- projectAddress = #{projectAddress},
|
|
|
|
|
|
+ <if test="tradeMoney != null and tradeMoney != ''">
|
|
|
|
+ tradeMoney = #{tradeMoney},
|
|
</if>
|
|
</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 test="userCode != null and userCode != ''">
|
|
|
|
+ userCode = #{userCode},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -504,35 +489,32 @@
|
|
|
|
|
|
|
|
|
|
<insert id="add_guiji_gas_SC_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas13_SC_meter_reading_infor_Bean">
|
|
<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 (
|
|
|
|
|
|
+ insert into t_guiji_gas_sc_meter_reading_infor (
|
|
<include refid="global_name"></include>
|
|
<include refid="global_name"></include>
|
|
- year, month, economyType, number, yearOnYear, cityProportion)
|
|
|
|
|
|
+ readNow, readLast, useAmount, useMoney, barCode)
|
|
values (
|
|
values (
|
|
<include refid="global_value"></include>
|
|
<include refid="global_value"></include>
|
|
- #{year}, #{month}, #{economyType}, #{number}, #{yearOnYear}, #{cityProportion})
|
|
|
|
|
|
+ #{readNow}, #{readLast}, #{useAmount}, #{useMoney}, #{barCode})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="update_guiji_gas_SC_meter_reading_infor" parameterType="com.sooka.model.bo.Guiji_gas13_SC_meter_reading_infor_Bean">
|
|
<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
|
|
|
|
|
|
+ update t_guiji_gas_sc_meter_reading_infor
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<include refid="update_sql"></include>
|
|
<include refid="update_sql"></include>
|
|
- <if test="year != null and year != ''">
|
|
|
|
- year = #{year},
|
|
|
|
- </if>
|
|
|
|
- <if test="month != null and month != ''">
|
|
|
|
- month = #{month},
|
|
|
|
|
|
+ <if test="readNow != null and readNow != ''">
|
|
|
|
+ readNow = #{readNow},
|
|
</if>
|
|
</if>
|
|
- <if test="economyType != null and economyType != ''">
|
|
|
|
- economyType = #{economyType},
|
|
|
|
|
|
+ <if test="readLast != null and readLast != ''">
|
|
|
|
+ readLast = #{readLast},
|
|
</if>
|
|
</if>
|
|
- <if test="number != null and number != ''">
|
|
|
|
- number = #{number},
|
|
|
|
|
|
+ <if test="useAmount != null and useAmount != ''">
|
|
|
|
+ useAmount = #{useAmount},
|
|
</if>
|
|
</if>
|
|
- <if test="yearOnYear != null and yearOnYear != ''">
|
|
|
|
- yearOnYear = #{yearOnYear},
|
|
|
|
|
|
+ <if test="useMoney != null and useMoney != ''">
|
|
|
|
+ useMoney = #{useMoney},
|
|
</if>
|
|
</if>
|
|
- <if test="cityProportion != null and cityProportion != ''">
|
|
|
|
- cityProportion = #{cityProportion},
|
|
|
|
|
|
+ <if test="barCode != null and barCode != ''">
|
|
|
|
+ barCode = #{barCode},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|