|
@@ -17,33 +17,42 @@
|
|
|
<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)
|
|
|
+ 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>
|
|
|
- #{plantName}, #{plantAddress}, #{plantHectare}, #{produceTons}, #{produceValue}, #{plantYear})
|
|
|
+ #{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_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 test="VC_UI_CODE != null and VC_UI_CODE != ''">
|
|
|
+ VC_UI_CODE = #{VC_UI_CODE},
|
|
|
</if>
|
|
|
- <if test="plantAddress != null and plantAddress != ''">
|
|
|
- plantAddress = #{plantAddress},
|
|
|
+ <if test="VC_UI_NAME != null and VC_UI_NAME != ''">
|
|
|
+ VC_UI_NAME = #{VC_UI_NAME},
|
|
|
</if>
|
|
|
- <if test="plantHectare != null and plantHectare != ''">
|
|
|
- plantHectare = #{plantHectare},
|
|
|
+ <if test="VC_UI_STATE != null and VC_UI_STATE != ''">
|
|
|
+ VC_UI_STATE = #{VC_UI_STATE},
|
|
|
</if>
|
|
|
- <if test="produceTons != null and produceTons != ''">
|
|
|
- produceTons = #{produceTons},
|
|
|
+ <if test="VC_UI_ADDR != null and VC_UI_ADDR != ''">
|
|
|
+ VC_UI_ADDR = #{VC_UI_ADDR},
|
|
|
</if>
|
|
|
- <if test="produceValue != null and produceValue != ''">
|
|
|
- produceValue = #{produceValue},
|
|
|
+ <if test="VC_UI_TEL != null and VC_UI_TEL != ''">
|
|
|
+ VC_UI_TEL = #{VC_UI_TEL},
|
|
|
</if>
|
|
|
- <if test="plantYear != null and plantYear != ''">
|
|
|
- plantYear = #{plantYear},
|
|
|
+ <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}
|
|
@@ -53,36 +62,60 @@
|
|
|
<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)
|
|
|
+ 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>
|
|
|
- #{platformName}, #{constructingUnit}, #{constructingDate}, #{platformAddress}, #{platformAddressExt}, #{platformLevel}, #{platformType})
|
|
|
+ #{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_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 test="VC_MI_USERGUID != null and VC_MI_USERGUID != ''">
|
|
|
+ VC_MI_USERGUID = #{VC_MI_USERGUID},
|
|
|
</if>
|
|
|
- <if test="constructingUnit != null and constructingUnit != ''">
|
|
|
- constructingUnit = #{constructingUnit},
|
|
|
+ <if test="VC_MI_NO != null and VC_MI_NO != ''">
|
|
|
+ VC_MI_NO = #{VC_MI_NO},
|
|
|
</if>
|
|
|
- <if test="constructingDate != null and constructingDate != ''">
|
|
|
- constructingDate = #{constructingDate},
|
|
|
+ <if test="VC_MI_CARDNO != null and VC_MI_CARDNO != ''">
|
|
|
+ VC_MI_CARDNO = #{VC_MI_CARDNO},
|
|
|
</if>
|
|
|
- <if test="platformAddress != null and platformAddress != ''">
|
|
|
- platformAddress = #{platformAddress},
|
|
|
+ <if test="VC_MI_DIRECTION != null and VC_MI_DIRECTION != ''">
|
|
|
+ VC_MI_DIRECTION = #{VC_MI_DIRECTION},
|
|
|
</if>
|
|
|
- <if test="platformAddressExt != null and platformAddressExt != ''">
|
|
|
- platformAddressExt = #{platformAddressExt},
|
|
|
+ <if test="VC_MI_TIMA != null and VC_MI_TIMA != ''">
|
|
|
+ VC_MI_TIMA = #{VC_MI_TIMA},
|
|
|
</if>
|
|
|
- <if test="platformLevel != null and platformLevel != ''">
|
|
|
- platformLevel = #{platformLevel},
|
|
|
+ <if test="VC_MI_CHAOBIAO != null and VC_MI_CHAOBIAO != ''">
|
|
|
+ VC_MI_CHAOBIAO = #{VC_MI_CHAOBIAO},
|
|
|
</if>
|
|
|
- <if test="platformType != null and platformType != ''">
|
|
|
- platformType = #{platformType},
|
|
|
+ <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}
|
|
@@ -92,36 +125,42 @@
|
|
|
<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)
|
|
|
+ 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>
|
|
|
- #{projectName}, #{projectOrgName}, #{projectAddress}, #{projectStatus}, #{projectTotalInvestment}, #{projectStart}, #{projectEnd})
|
|
|
+ #{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_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 test="VC_SG_USERGUID != null and VC_SG_USERGUID != ''">
|
|
|
+ VC_SG_USERGUID = #{VC_SG_USERGUID},
|
|
|
</if>
|
|
|
- <if test="projectOrgName != null and projectOrgName != ''">
|
|
|
- projectOrgName = #{projectOrgName},
|
|
|
+ <if test="N_SG_BEFOREAMOUNT != null and N_SG_BEFOREAMOUNT != ''">
|
|
|
+ N_SG_BEFOREAMOUNT = #{N_SG_BEFOREAMOUNT},
|
|
|
</if>
|
|
|
- <if test="projectAddress != null and projectAddress != ''">
|
|
|
- projectAddress = #{projectAddress},
|
|
|
+ <if test="N_SG_SHOULDAMOUNT != null and N_SG_SHOULDAMOUNT != ''">
|
|
|
+ N_SG_SHOULDAMOUNT = #{N_SG_SHOULDAMOUNT},
|
|
|
</if>
|
|
|
- <if test="projectStatus != null and projectStatus != ''">
|
|
|
- projectStatus = #{projectStatus},
|
|
|
+ <if test="N_SG_FACTAMOUNT != null and N_SG_FACTAMOUNT != ''">
|
|
|
+ N_SG_FACTAMOUNT = #{N_SG_FACTAMOUNT},
|
|
|
</if>
|
|
|
- <if test="projectTotalInvestment != null and projectTotalInvestment != ''">
|
|
|
- projectTotalInvestment = #{projectTotalInvestment},
|
|
|
+ <if test="N_SG_LASTAMOUNT != null and N_SG_LASTAMOUNT != ''">
|
|
|
+ N_SG_LASTAMOUNT = #{N_SG_LASTAMOUNT},
|
|
|
</if>
|
|
|
- <if test="projectStart != null and projectStart != ''">
|
|
|
- projectStart = #{projectStart},
|
|
|
+ <if test="VC_SG_IVNO != null and VC_SG_IVNO != ''">
|
|
|
+ VC_SG_IVNO = #{VC_SG_IVNO},
|
|
|
</if>
|
|
|
- <if test="projectEnd != null and projectEnd != ''">
|
|
|
- projectEnd = #{projectEnd},
|
|
|
+ <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}
|