insert into item_release_res(
res_name,ir_id,community_id,res_id,amount
) values (
#{resName},#{irId},#{communityId},#{resId},#{amount}
)
insert into item_release_res(
res_name,ir_id,community_id,res_id,amount
) values
(#{item.resName},#{item.irId},#{item.communityId},#{item.resId},#{item.amount})
update item_release_res t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.res_name= #{resName}
, t.amount= #{amount}
where 1=1
and t.res_id= #{resId}
and t.ir_id= #{irId}
and t.community_id= #{communityId}