Browse Source

市燃气

wangzhe 2 years ago
parent
commit
7cf8135a7f
1 changed files with 201 additions and 60 deletions
  1. 201 60
      test-api/src/main/resources/mapper/Guiji_Gas_Mapper2.xml

+ 201 - 60
test-api/src/main/resources/mapper/Guiji_Gas_Mapper2.xml

@@ -420,33 +420,60 @@
     <insert id="add_guiji_gas_Aofe_user_infor" parameterType="com.sooka.model.bo.Guiji_gas5_Aofe_user_infor_Bean">
         insert into t_guiji_gas_aofe_user_infor (
         <include refid="global_name"></include>
-        plantName, plantAddress, plantHectare, produceTons, produceValue, plantYear)
+        f_userid, f_userstate, f_state, f_username, f_idnumber, f_phone, f_yytdepa, f_yytoper, f_yytdate, f_dateofopening, f_filiale, f_fengongsinum, f_usertype, f_districtname, f_address)
         values (
         <include refid="global_value"></include>
-        #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
+        #{f_userid}, #{f_userstate}, #{f_state}, #{f_username}, #{f_idnumber}, #{f_phone}, #{f_yytdepa}, #{f_yytoper}, #{f_yytdate}, #{f_dateofopening}, #{f_filiale}, #{f_fengongsinum}, #{f_usertype}, #{f_districtname}, #{f_address})
     </insert>
 
     <update id="update_guiji_gas_Aofe_user_infor" parameterType="com.sooka.model.bo.Guiji_gas5_Aofe_user_infor_Bean">
         update t_guiji_gas_aofe_user_infor
         <trim prefix="SET" suffixOverrides=",">
             <include refid="update_sql"></include>
-            <if test="plantName != null and plantName != ''">
-                plantName = #{plantName},
+            <if test="f_userid != null and f_userid != ''">
+                f_userid = #{f_userid},
             </if>
-            <if test="plantAddress != null and plantAddress != ''">
-                plantAddress = #{plantAddress},
+            <if test="f_userstate != null and f_userstate != ''">
+                f_userstate = #{f_userstate},
             </if>
-            <if test="plantHectare != null and plantHectare != ''">
-                plantHectare = #{plantHectare},
+            <if test="f_state != null and f_state != ''">
+                f_state = #{f_state},
             </if>
-            <if test="produceTons != null and produceTons != ''">
-                produceTons = #{produceTons},
+            <if test="f_username != null and f_username != ''">
+                f_username = #{f_username},
             </if>
-            <if test="produceValue != null and produceValue != ''">
-                produceValue = #{produceValue},
+            <if test="f_idnumber != null and f_idnumber != ''">
+                f_idnumber = #{f_idnumber},
             </if>
-            <if test="plantYear != null and plantYear != ''">
-                plantYear = #{plantYear},
+            <if test="f_phone != null and f_phone != ''">
+                f_phone = #{f_phone},
+            </if>
+            <if test="f_yytdepa != null and f_yytdepa != ''">
+                f_yytdepa = #{f_yytdepa},
+            </if>
+            <if test="f_yytoper != null and f_yytoper != ''">
+                f_yytoper = #{f_yytoper},
+            </if>
+            <if test="f_yytdate != null and f_yytdate != ''">
+                f_yytdate = #{f_yytdate},
+            </if>
+            <if test="f_dateofopening != null and f_dateofopening != ''">
+                f_dateofopening = #{f_dateofopening},
+            </if>
+            <if test="f_filiale != null and f_filiale != ''">
+                f_filiale = #{f_filiale},
+            </if>
+            <if test="f_fengongsinum != null and f_fengongsinum != ''">
+                f_fengongsinum = #{f_fengongsinum},
+            </if>
+            <if test="f_usertype != null and f_usertype != ''">
+                f_usertype = #{f_usertype},
+            </if>
+            <if test="f_districtname != null and f_districtname != ''">
+                f_districtname = #{f_districtname},
+            </if>
+            <if test="f_address != null and f_address != ''">
+                f_address = #{f_address},
             </if>
         </trim>
         where id = #{id}
@@ -456,36 +483,36 @@
     <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_gas_aofe_gas_meter_infor (
         <include refid="global_name"></include>
-        platformName, constructingUnit, constructingDate, platformAddress, platformAddressExt, platformLevel, platformType)
+        f_userid, f_gaswatchbrand, f_metertype, f_aliasname, f_gasmeterstyle, f_meternumber, f_cardid)
         values (
         <include refid="global_value"></include>
-        #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
+        #{f_userid}, #{f_gaswatchbrand}, #{f_metertype}, #{f_aliasname}, #{f_gasmeterstyle}, #{f_meternumber}, #{f_cardid})
     </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_gas_aofe_gas_meter_infor
         <trim prefix="SET" suffixOverrides=",">
             <include refid="update_sql"></include>
-            <if test="platformName != null and platformName != ''">
-                platformName = #{platformName},
+            <if test="f_userid != null and f_userid != ''">
+                f_userid = #{f_userid},
             </if>
-            <if test="constructingUnit != null and constructingUnit != ''">
-                constructingUnit = #{constructingUnit},
+            <if test="f_gaswatchbrand != null and f_gaswatchbrand != ''">
+                f_gaswatchbrand = #{f_gaswatchbrand},
             </if>
-            <if test="constructingDate != null and constructingDate != ''">
-                constructingDate = #{constructingDate},
+            <if test="f_metertype != null and f_metertype != ''">
+                f_metertype = #{f_metertype},
             </if>
-            <if test="platformAddress != null and platformAddress != ''">
-                platformAddress = #{platformAddress},
+            <if test="f_aliasname != null and f_aliasname != ''">
+                f_aliasname = #{f_aliasname},
             </if>
-            <if test="platformAddressExt != null and platformAddressExt != ''">
-                platformAddressExt = #{platformAddressExt},
+            <if test="f_gasmeterstyle != null and f_gasmeterstyle != ''">
+                f_gasmeterstyle = #{f_gasmeterstyle},
             </if>
-            <if test="platformLevel != null and platformLevel != ''">
-                platformLevel = #{platformLevel},
+            <if test="f_meternumber != null and f_meternumber != ''">
+                f_meternumber = #{f_meternumber},
             </if>
-            <if test="platformType != null and platformType != ''">
-                platformType = #{platformType},
+            <if test="f_cardid != null and f_cardid != ''">
+                f_cardid = #{f_cardid},
             </if>
         </trim>
         where id = #{id}
@@ -495,36 +522,102 @@
     <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_gas_aofe_gas_purchase_infor (
         <include refid="global_name"></include>
-        projectName, projectOrgName, projectAddress, projectStatus, projectTotalInvestment, projectStart, projectEnd)
+        f_userid, f_username, f_usertype, f_zhye, f_benqizhye, f_gasmeterstyle, f_pregas, f_preamount, f_payment, f_upbuynum, f_sgnetwork, f_sgoperator, f_deliverydate, f_deliverytime, f_filiale, f_fengongsinum, f_payfeetype, f_payfeevalid, f_times, f_stairtype, f_stair1price, f_stair1amount, f_stair1fee, f_stair2price, f_stair2amount, f_stair2fee, f_stair3price, f_stair3amount, f_stair3fee)
         values (
         <include refid="global_value"></include>
-        #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
+        #{f_userid}, #{f_username}, #{f_usertype}, #{f_zhye}, #{f_benqizhye}, #{f_gasmeterstyle}, #{f_pregas}, #{f_preamount}, #{f_payment}, #{f_upbuynum}, #{f_sgnetwork}, #{f_sgoperator}, #{f_deliverydate}, #{f_deliverytime}, #{f_filiale}, #{f_fengongsinum}, #{f_payfeetype}, #{f_payfeevalid}, #{f_times}, #{f_stairtype}, #{f_stair1price}, #{f_stair1amount}, #{f_stair1fee}, #{f_stair2price}, #{f_stair2amount}, #{f_stair2fee}, #{f_stair3price}, #{f_stair3amount}, #{f_stair3fee})
     </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_gas_aofe_gas_purchase_infor
         <trim prefix="SET" suffixOverrides=",">
             <include refid="update_sql"></include>
-            <if test="projectName != null and projectName != ''">
-                projectName = #{projectName},
+            <if test="f_userid != null and f_userid != ''">
+                f_userid = #{f_userid},
+            </if>
+            <if test="f_username != null and f_username != ''">
+                f_username = #{f_username},
+            </if>
+            <if test="f_usertype != null and f_usertype != ''">
+                f_usertype = #{f_usertype},
+            </if>
+            <if test="f_zhye != null and f_zhye != ''">
+                f_zhye = #{f_zhye},
+            </if>
+            <if test="f_benqizhye != null and f_benqizhye != ''">
+                f_benqizhye = #{f_benqizhye},
+            </if>
+            <if test="f_gasmeterstyle != null and f_gasmeterstyle != ''">
+                f_gasmeterstyle = #{f_gasmeterstyle},
+            </if>
+            <if test="f_pregas != null and f_pregas != ''">
+                f_pregas = #{f_pregas},
+            </if>
+            <if test="f_preamount != null and f_preamount != ''">
+                f_preamount = #{f_preamount},
+            </if>
+            <if test="f_payment != null and f_payment != ''">
+                f_payment = #{f_payment},
+            </if>
+            <if test="f_upbuynum != null and f_upbuynum != ''">
+                f_upbuynum = #{f_upbuynum},
+            </if>
+            <if test="f_sgnetwork != null and f_sgnetwork != ''">
+                f_sgnetwork = #{f_sgnetwork},
+            </if>
+            <if test="f_sgoperator != null and f_sgoperator != ''">
+                f_sgoperator = #{f_sgoperator},
+            </if>
+            <if test="f_deliverydate != null and f_deliverydate != ''">
+                f_deliverydate = #{f_deliverydate},
+            </if>
+            <if test="f_deliverytime != null and f_deliverytime != ''">
+                f_deliverytime = #{f_deliverytime},
+            </if>
+            <if test="f_filiale != null and f_filiale != ''">
+                f_filiale = #{f_filiale},
+            </if>
+            <if test="f_fengongsinum != null and f_fengongsinum != ''">
+                f_fengongsinum = #{f_fengongsinum},
             </if>
-            <if test="projectOrgName != null and projectOrgName != ''">
-                projectOrgName = #{projectOrgName},
+            <if test="f_payfeetype != null and f_payfeetype != ''">
+                f_payfeetype = #{f_payfeetype},
             </if>
-            <if test="projectAddress != null and projectAddress != ''">
-                projectAddress = #{projectAddress},
+            <if test="f_payfeevalid != null and f_payfeevalid != ''">
+                f_payfeevalid = #{f_payfeevalid},
             </if>
-            <if test="projectStatus != null and projectStatus != ''">
-                projectStatus = #{projectStatus},
+            <if test="f_times != null and f_times != ''">
+                f_times = #{f_times},
             </if>
-            <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
-                projectTotalInvestment = #{projectTotalInvestment},
+            <if test="f_stairtype != null and f_stairtype != ''">
+                f_stairtype = #{f_stairtype},
             </if>
-            <if test="projectStart != null and projectStart != ''">
-                projectStart = #{projectStart},
+            <if test="f_stair1price != null and f_stair1price != ''">
+                f_stair1price = #{f_stair1price},
             </if>
-            <if test="projectEnd != null and projectEnd != ''">
-                projectEnd = #{projectEnd},
+            <if test="f_stair1amount != null and f_stair1amount != ''">
+                f_stair1amount = #{f_stair1amount},
+            </if>
+            <if test="f_stair1fee != null and f_stair1fee != ''">
+                f_stair1fee = #{f_stair1fee},
+            </if>
+            <if test="f_stair2price != null and f_stair2price != ''">
+                f_stair2price = #{f_stair2price},
+            </if>
+            <if test="f_stair2amount != null and f_stair2amount != ''">
+                f_stair2amount = #{f_stair2amount},
+            </if>
+            <if test="f_stair2fee != null and f_stair2fee != ''">
+                f_stair2fee = #{f_stair2fee},
+            </if>
+            <if test="f_stair3price != null and f_stair3price != ''">
+                f_stair3price = #{f_stair3price},
+            </if>
+            <if test="f_stair3amount != null and f_stair3amount != ''">
+                f_stair3amount = #{f_stair3amount},
+            </if>
+            <if test="f_stair3fee != null and f_stair3fee != ''">
+                f_stair3fee = #{f_stair3fee},
             </if>
         </trim>
         where id = #{id}
@@ -534,33 +627,81 @@
     <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_gas_aofe_meter_reading_infor (
         <include refid="global_name"></include>
-        year, month, economyType, number, yearOnYear, cityProportion)
+        f_userid, f_username, f_usertype, f_districtname, f_address, f_filiale, f_network, f_operator, oughtamount, oughtfee, lastrecord, lastinputgasnum, f_inputdate, scinputdate, f_handdate, shifoujiaofei, f_endjfdate, f_state, f_sellid, f_zhinajin, f_zhinajindate, f_zhinajintianshu)
         values (
         <include refid="global_value"></include>
-        #{year}, #{month}, #{economyType}, #{number}, #{yearOnYear}, #{cityProportion})
+        #{f_userid}, #{f_username}, #{f_usertype}, #{f_districtname}, #{f_address}, #{f_filiale}, #{f_network}, #{f_operator}, #{oughtamount}, #{oughtfee}, #{lastrecord}, #{lastinputgasnum}, #{f_inputdate}, #{scinputdate}, #{f_handdate}, #{shifoujiaofei}, #{f_endjfdate}, #{f_state}, #{f_sellid}, #{f_zhinajin}, #{f_zhinajindate}, #{f_zhinajintianshu})
     </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_gas_aofe_meter_reading_infor
         <trim prefix="SET" suffixOverrides=",">
             <include refid="update_sql"></include>
-            <if test="year != null and year != ''">
-                year = #{year},
+            <if test="f_userid != null and f_userid != ''">
+                f_userid = #{f_userid},
+            </if>
+            <if test="f_username != null and f_username != ''">
+                f_username = #{f_username},
+            </if>
+            <if test="f_usertype != null and f_usertype != ''">
+                f_usertype = #{f_usertype},
+            </if>
+            <if test="f_districtname != null and f_districtname != ''">
+                f_districtname = #{f_districtname},
+            </if>
+            <if test="f_address != null and f_address != ''">
+                f_address = #{f_address},
+            </if>
+            <if test="f_filiale != null and f_filiale != ''">
+                f_filiale = #{f_filiale},
+            </if>
+            <if test="f_network != null and f_network != ''">
+                f_network = #{f_network},
+            </if>
+            <if test="f_operator != null and f_operator != ''">
+                f_operator = #{f_operator},
+            </if>
+            <if test="oughtamount != null and oughtamount != ''">
+                oughtamount = #{oughtamount},
+            </if>
+            <if test="oughtfee != null and oughtfee != ''">
+                oughtfee = #{oughtfee},
+            </if>
+            <if test="lastrecord != null and lastrecord != ''">
+                lastrecord = #{lastrecord},
+            </if>
+            <if test="lastinputgasnum != null and lastinputgasnum != ''">
+                lastinputgasnum = #{lastinputgasnum},
+            </if>
+            <if test="f_inputdate != null and f_inputdate != ''">
+                f_inputdate = #{f_inputdate},
+            </if>
+            <if test="scinputdate != null and scinputdate != ''">
+                scinputdate = #{scinputdate},
+            </if>
+            <if test="f_handdate != null and f_handdate != ''">
+                f_handdate = #{f_handdate},
+            </if>
+            <if test="shifoujiaofei != null and shifoujiaofei != ''">
+                shifoujiaofei = #{shifoujiaofei},
+            </if>
+            <if test="f_endjfdate != null and f_endjfdate != ''">
+                f_endjfdate = #{f_endjfdate},
             </if>
-            <if test="month != null and month != ''">
-                month = #{month},
+            <if test="f_state != null and f_state != ''">
+                f_state = #{f_state},
             </if>
-            <if test="economyType != null and economyType != ''">
-                economyType = #{economyType},
+            <if test="f_sellid != null and f_sellid != ''">
+                f_sellid = #{f_sellid},
             </if>
-            <if test="number != null and number != ''">
-                number = #{number},
+            <if test="f_zhinajin != null and f_zhinajin != ''">
+                f_zhinajin = #{f_zhinajin},
             </if>
-            <if test="yearOnYear != null and yearOnYear != ''">
-                yearOnYear = #{yearOnYear},
+            <if test="f_zhinajindate != null and f_zhinajindate != ''">
+                f_zhinajindate = #{f_zhinajindate},
             </if>
-            <if test="cityProportion != null and cityProportion != ''">
-                cityProportion = #{cityProportion},
+            <if test="f_zhinajintianshu != null and f_zhinajintianshu != ''">
+                f_zhinajintianshu = #{f_zhinajintianshu},
             </if>
         </trim>
         where id = #{id}