insert into coupon_property_user( coupon_name,to_type,validity_day,coupon_id,user_name,user_id,cpp_id,tel,state,stock,community_id,value,start_time ) values ( #{couponName},#{toType},#{validityDay},#{couponId},#{userName},#{userId},#{cppId},#{tel},#{state},#{stock},#{communityId},#{value},#{startTime} ) update coupon_property_user t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.coupon_name= #{couponName} , t.to_type= #{toType} , t.validity_day= #{validityDay} , t.user_name= #{userName} , t.user_id= #{userId} , t.cpp_id= #{cppId} , t.tel= #{tel} , t.state= #{state} , t.stock= #{stock} , t.value= #{value} , t.start_time= #{startTime} where 1=1 and t.coupon_id= #{couponId} and t.community_id= #{communityId}