insert into apply_room_discount(
apply_type,ard_id,create_user_name,create_user_tel,create_remark,check_user_id,check_remark,room_id,room_name,review_user_id,review_remark,start_time,end_time,state,community_id,discount_id
) values (
#{applyType},#{ardId},#{createUserName},#{createUserTel},#{createRemark},#{checkUserId},#{checkRemark},#{roomId},#{roomName},#{reviewUserId},#{reviewRemark},#{startTime},#{endTime},#{state},#{communityId},#{discountId}
)
update apply_room_discount t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.apply_type= #{applyType}
, t.create_user_tel = #{createUserTel}
, t.check_user_id= #{checkUserId}
, t.check_remark= #{checkRemark}
, t.room_id= #{roomId}
, t.room_name= #{roomName}
, t.review_user_id= #{reviewUserId}
, t.review_remark= #{reviewRemark}
, t.start_time= #{startTime}
, t.end_time= #{endTime}
, t.state= #{state}
, t.community_id= #{communityId}
, t.discount_id= #{discountId}
where 1=1
and t.ard_id= #{ardId}