insert into t_integral_detail
id,
type,
integralSource,
integralWater,
balanc,
createTime,
createUser,
companyId,
userId,
userType,
remark,
#{id,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{integralSource,jdbcType=VARCHAR},
#{integralWater,jdbcType=DOUBLE},
#{balanc,jdbcType=DOUBLE},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{companyId,jdbcType=VARCHAR},
#{userId,jdbcType=VARCHAR},
#{userType,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
on duplicate key update
type = #{type,jdbcType=INTEGER},
integralSource = #{integralSource,jdbcType=VARCHAR},
integralWater = #{integralWater,jdbcType=DOUBLE},
balanc = #{balanc,jdbcType=DOUBLE},
createTime = #{createTime,jdbcType=TIMESTAMP},
createUser = #{createUser,jdbcType=VARCHAR},
companyId = #{companyId,jdbcType=VARCHAR},
userId = #{userId,jdbcType=VARCHAR},
userType = #{userType,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
insert into t_integral_account
id,
userId,
totalIntegral,
accumulateIntegral,
totalConsumption,
createTime,
createUser,
updateTime,
updateUser,
userType,
#{id,jdbcType=VARCHAR},
#{userId,jdbcType=VARCHAR},
#{totalIntegral,jdbcType=DOUBLE},
#{accumulateIntegral,jdbcType=DOUBLE},
#{totalConsumption,jdbcType=DOUBLE},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{updateUser,jdbcType=VARCHAR},
#{userType,jdbcType=INTEGER},
on duplicate key update
totalIntegral = #{totalIntegral,jdbcType=DOUBLE},
accumulateIntegral = #{accumulateIntegral,jdbcType=DOUBLE},
totalConsumption = #{totalConsumption,jdbcType=DOUBLE},
createTime=#{createTime,jdbcType=TIMESTAMP},
createUser = #{createUser,jdbcType=VARCHAR},
updateTime = #{updateTime,jdbcType=TIMESTAMP},
updateUser = #{updateUser,jdbcType=VARCHAR},
userType = #{userType,jdbcType=INTEGER},
update t_integral_detail set isUse = 0 where id = #{id,jdbcType=VARCHAR}