insert into import_fee_detail(
amount,unit_num,fee_id,floor_num,room_id,room_num,ifd_id,fee_name,start_time,end_time,state,community_id
) values (
#{amount},#{unitNum},#{feeId},#{floorNum},#{roomId},#{roomNum},#{ifdId},#{feeName},#{startTime},#{endTime},#{state},#{communityId}
)
update import_fee_detail t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.amount= #{amount}
, t.unit_num= #{unitNum}
, t.fee_id= #{feeId}
, t.floor_num= #{floorNum}
, t.room_id= #{roomId}
, t.room_num= #{roomNum}
, t.fee_name= #{feeName}
, t.start_time= #{startTime}
, t.end_time= #{endTime}
, t.state= #{state}
, t.community_id= #{communityId}
where 1=1
and t.ifd_id= #{ifdId}
insert into import_fee_detail(
amount,unit_num,fee_id,floor_num,room_id,room_num,ifd_id,fee_name,start_time,end_time,state,community_id
) values
(#{amount},#{unitNum},#{feeId},#{floorNum},#{roomId},#{roomNum},#{ifdId},#{feeName},#{startTime},#{endTime},#{state},#{communityId})