insert into fee_receipt(
amount,obj_id,remark,obj_name,community_id,receipt_id,obj_type,pay_obj_id,pay_obj_name,receipt_code
,create_time
) values (
#{amount},#{objId},#{remark},#{objName},#{communityId},#{receiptId},#{objType},#{payObjId},#{payObjName},#{receiptCode}
,#{createTime}
)
insert into fee_receipt(
amount,obj_id,remark,obj_name,community_id,receipt_id,obj_type,pay_obj_id,pay_obj_name,receipt_code
) values
(#{item.amount},#{item.objId},#{item.remark},#{item.objName},#{item.communityId},#{item.receiptId},#{item.objType},#{item.payObjId},#{item.payObjName},#{item.receiptCode})
update fee_receipt t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.amount= #{amount}
, t.obj_id= #{objId}
, t.remark= #{remark}
, t.obj_name= #{objName}
, t.community_id= #{communityId}
, t.obj_type= #{objType}
where 1=1
and t.receipt_id= #{receiptId}