item_id, acc_item_type, object_id, org_id, staff_id, biznis_type, biznis_id, biznis_no, acc_date, rec_status, amt_rec, amt_pay, amt_should, amt_handle, amt_waive, amt_residue, remarks, make_staff, make_time, flg_valid
AND acc_item_type = #{accItemType}
AND object_id = #{objectId}
AND org_id = #{orgId}
AND staff_id = #{staffId}
AND biznis_type = #{biznisType}
AND biznis_id = #{biznisId}
AND biznis_no = #{biznisNo}
AND acc_date = #{accDate}
AND rec_status = #{recStatus}
AND amt_rec = #{amtRec}
AND amt_pay = #{amtPay}
AND amt_should = #{amtShould}
AND amt_handle = #{amtHandle}
AND amt_waive = #{amtWaive}
AND amt_residue = #{amtResidue}
AND remarks = #{remarks}
AND make_staff = #{makeStaff}
AND make_time = #{makeTime}
AND flg_valid = #{flgValid}
AND cp_id = #{cpId}
AND op_create_time = #{opCreateTime}
AND op_create_user_id = #{opCreateUserId}
AND op_update_time = #{opUpdateTime}
AND op_update_user_id = #{opUpdateUserId}
AND op_app_code = #{opAppCode}
AND op_timestamp = #{opTimestamp}
AND op_db_user = #{opDbUser}
WHERE item_id in
#{item}
insert into dkic_b.t_mac_account_item
(
acc_item_type,
object_id,
org_id,
staff_id,
biznis_type,
biznis_id,
biznis_no,
acc_date,
rec_status,
amt_rec,
amt_pay,
amt_should,
amt_handle,
amt_waive,
amt_residue,
remarks,
make_staff,
make_time,
cp_id,
op_app_code,
)
values
(
#{item.accItemType},
#{item.objectId}::uuid,
#{item.orgId}::uuid,
#{item.staffId}::uuid,
#{item.biznisType},
#{item.biznisId}::uuid,
#{item.biznisNo},
#{item.accDate},
#{item.recStatus},
#{item.amtRec},
#{item.amtPay},
#{item.amtShould},
#{item.amtHandle},
#{item.amtWaive},
#{item.amtResidue},
#{item.remarks},
#{item.makeStaff}::uuid,
#{item.makeTime},
#{item.cpId},
#{item.opAppCode},
)
DELETE FROM dkic_b.t_mac_account_item
WHERE item_id = #{id}::uuid;