标签:create values nbsp 重复 creat tty ram uid parameter
<insert id="insertTankStatisticData" parameterType="java.util.Map"> <selectKey keyProperty="count" resultType="int" order="BEFORE"> select count(*) AS count from rpt_jiayouzhouqibiao where KehuID=#{KehuID} </selectKey> <if test="count>0"> UPDATE rpt_jiayouzhouqibiao SET KehuName = #{KehuName}, Yewuyuan = #{Yewuyuan}, Chanpin = #{Chanpin}, LastTankDate = #{LastTankDate}, BeforeLastTankDate = #{BeforeLastTankDate}, Shuliang = #{Shuliang}, Pingjunshuliang = #{Pingjunshuliang}, NextTankDate = #{NextTankDate}, TankPeroid = #{TankPeroid}, UpdateTime = getDate() WHERE KehuID = #{KehuID} </if> <if test="count==0"> INSERT INTO rpt_jiayouzhouqibiao( KehuID, KehuName, Yewuyuan, Chanpin, LastTankDate, BeforeLastTankDate, Shuliang, Pingjunshuliang, NextTankDate, TankPeroid, CreateTime ) VALUES ( #{KehuID}, #{KehuName}, #{Yewuyuan}, #{Chanpin}, #{LastTankDate}, #{BeforeLastTankDate}, #{Shuliang}, #{Pingjunshuliang}, #{NextTankDate}, #{TankPeroid}, getDate() ) </if> </insert>
标签:create values nbsp 重复 creat tty ram uid parameter
原文地址:https://www.cnblogs.com/dahei96/p/11933185.html