insert into account_bond_obj_detail(
bobj_id,obj_id,bond_type,detail_id,receivable_amount,remark,start_time,received_amount,state,end_time,obj_name
) values (
#{bobjId},#{objId},#{bondType},#{detailId},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime},#{objName}
)
update account_bond_obj_detail t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.bobj_id= #{bobjId}
, t.create_time= #{createTime}
, t.obj_id= #{objId}
, t.obj_name= #{objName}
, t.bond_type= #{bondType}
, t.receivable_amount= #{receivableAmount}
, t.remark= #{remark}
, t.start_time= #{startTime}
, t.received_amount= #{receivedAmount}
, t.state= #{state}
, t.end_time= #{endTime}
where 1=1
and t.detail_id= #{detailId}