|  |  |  | 
|---|
|  |  |  | invalid_time, | 
|---|
|  |  |  | pay_methods, | 
|---|
|  |  |  | is_infinite, | 
|---|
|  |  |  | achieve_rule_id | 
|---|
|  |  |  |  | 
|---|
|  |  |  | achieve_rule_id, | 
|---|
|  |  |  | is_cooperate | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | VALUES ( | 
|---|
|  |  |  | #{id}, | 
|---|
|  |  |  | 
|---|
|  |  |  | #{invalidTime}, | 
|---|
|  |  |  | #{payMethods}, | 
|---|
|  |  |  | #{isInfinite}, | 
|---|
|  |  |  | #{achieveRuleId} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #{achieveRuleId}, | 
|---|
|  |  |  | #{isCooperate} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="isPresent != null and isPresent !='' "> | 
|---|
|  |  |  | is_present = #{isPresent}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="isOnce != null and isOnce !='' "> | 
|---|
|  |  |  | <if test="isOnce != null  "> | 
|---|
|  |  |  | is_once = #{isOnce}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="salePlatform != null and salePlatform !='' "> | 
|---|
|  |  |  | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <if | 
|---|
|  |  |  | test="(carMaxSaleCount != null and carMaxSaleCount !='') or carMaxSaleCount==0"> | 
|---|
|  |  |  | test="carMaxSaleCount != null"> | 
|---|
|  |  |  | car_max_sale_count = #{carMaxSaleCount}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="carIsAll != null and carIsAll !='' "> | 
|---|
|  |  |  | car_is_all = #{carIsAll}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="(carUseCount != null and carUseCount !='') or carUseCount==0 "> | 
|---|
|  |  |  | <if test="carUseCount != null "> | 
|---|
|  |  |  | car_use_count = #{carUseCount}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="isVipCar != null and isVipCar !='' "> | 
|---|