insert into pay_fee_config_discount(
config_discount_id,config_id,discount_id,community_id,start_time,end_time,paymax_end_time,pay_max_star_time
) values (
#{configDiscountId},#{configId},#{discountId},#{communityId},
NULL
#{startTime}
,
NULL
#{endTime}
,
NULL
#{payMaxEndTime}
,
NULL
#{payMaxStartTime}
)
update pay_fee_config_discount t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.config_id= #{configId}
, t.discount_id= #{discountId}
, t.community_id= #{communityId}
, t.pay_max_star_time= #{payMaxStarTime}
, t.paymax_end_time= #{payMaxEndTime}
where 1=1
and t.config_discount_id= #{configDiscountId}