insert into eam_object
(Site, ObjectID, ObjectDesc, LocationID, FamilyID, GroupID, SupplierID, ManufacturerID, SeqNo, PurchessDate, Active, CreateDate, CreateBy, resourceID, update_date, update_by, dept_id, asset_no, asset_remark)
values(#{site}, #{objectID}, #{objectDesc}, #{locationID}, #{familyID}, #{groupID}, #{supplierID}, #{manufacturerID}, #{seqNo}, #{purchessDate}, #{active}, #{createDate}, #{createBy}, #{resourceID}, getDate(), #{updateBy}, #{deptID}, #{assetNo}, #{assetRemark})
update eam_object
set ObjectDesc = #{objectDesc},
LocationID = #{locationID},
FamilyID = #{familyID},
GroupID = #{groupID},
SupplierID = #{supplierID},
ManufacturerID = #{manufacturerID},
SeqNo = #{seqNo},
PurchessDate = #{purchessDate},
Active = #{active},
resourceID = #{resourceID},
update_date = getDate(),
update_by = #{updateBy},
dept_id = #{deptID}
where site = #{site}
AND ObjectID = #{objectID}
delete from eam_object
where site = #{site} AND ObjectID = #{objectID}