select id, code, name, number, image_url, category_number, specifications_model, abc_category, manage_status, user_department, department, responsible_person, location_number, property, purchase_date, commissioning_date, original_value, durable_years, net_value, residual_value, accumulated_depreciation, last_depreciation_date, depreciation_method, contract_number, factory_number, manufacturer, supplier, purpose, maintenance_date, maintenance_tel, maintenance_user, corporation, record_status, remark, create_by, create_time, update_by, update_time, is_whitelist, quantity, units, payment_receiving_time, epc, epc_replenish_length, epc_pre_supplement, life_expectancy, life_units, start_date from tb_asset_information SELECT a.id, a.code, a.name, a.number, a.image_url imageUrl, a.category_number categoryNumber, a.specifications_model specificationsModel, a.abc_category abcCategory, a.manage_status manageStatus, a.user_department userDepartment, a.department, a.responsible_person responsiblePerson, a.location_number locationNumber, a.property, a.purchase_date purchaseDate, a.commissioning_date commissioningDate, a.original_value originalValue, a.durable_years durableYears, a.net_value netValue, a.residual_value residualValue, a.accumulated_depreciation accumulatedDepreciation, a.last_depreciation_date lastDepreciationDate, a.depreciation_method depreciationMethod, a.contract_number contractNumber, a.factory_number factoryNumber, a.manufacturer, a.supplier, a.purpose, a.maintenance_tel maintenanceTel, a.maintenance_date maintenanceDate, a.maintenance_user maintenanceUser, a.corporation, a.record_status recordStatus, a.remark, a.create_by createBy, a.create_time createTime, a.update_by updateBy, a.update_time updateTime, a.is_whitelist isWhitelist, a.quantity, a.units, a.payment_receiving_time paymentReceivingTime, a.epc, a.epc_replenish_length epcReplenishLength, a.epc_pre_supplement epcPreSupplement, a.life_expectancy lifeExpectancy, a.life_units lifeUnits, a.start_date startDate, b.id locationId, b.name locationName, b.label locationLabel, g.id parentLocationId, g.name parentLocationName, g.label parentLocationLabel, h.id ancestorLocationId, h.name ancestorLocationName, h.label ancestorLocationLabel, c.id categoryId, c.name categoryName, d.dept_name userDepartmentName, e.dept_name departmentName, f.dept_name corporationName FROM `tb_asset_information` a LEFT JOIN tb_location b ON a.location_number = b.number LEFT JOIN tb_location g ON b.parent_id = g.id LEFT JOIN tb_location h ON g.parent_id = h.id LEFT JOIN tb_asset_category c ON a.category_number = c.number LEFT JOIN sys_dept d ON a.user_department = d.dept_id LEFT JOIN sys_dept e ON a.department = e.dept_id LEFT JOIN sys_dept f ON a.corporation = f.dept_id insert into tb_asset_information code, name, number, image_url, category_number, specifications_model, abc_category, manage_status, user_department, department, responsible_person, location_number, property, purchase_date, commissioning_date, original_value, durable_years, net_value, residual_value, accumulated_depreciation, last_depreciation_date, depreciation_method, contract_number, factory_number, manufacturer, supplier, purpose, maintenance_date, maintenance_tel, maintenance_user, corporation, record_status, remark, create_by, create_time, update_by, update_time, is_whitelist, quantity, units, payment_receiving_time, epc, epc_replenish_length, epc_pre_supplement, life_expectancy, life_units, start_date, #{code}, #{name}, #{number}, #{imageUrl}, #{categoryNumber}, #{specificationsModel}, #{abcCategory}, #{manageStatus}, #{userDepartment}, #{department}, #{responsiblePerson}, #{locationNumber}, #{property}, #{purchaseDate}, #{commissioningDate}, #{originalValue}, #{durableYears}, #{netValue}, #{residualValue}, #{accumulatedDepreciation}, #{lastDepreciationDate}, #{depreciationMethod}, #{contractNumber}, #{factoryNumber}, #{manufacturer}, #{supplier}, #{purpose}, #{maintenanceDate}, #{maintenanceTel}, #{maintenanceUser}, #{corporation}, #{recordStatus}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{isWhitelist}, #{quantity}, #{units}, #{paymentReceivingTime}, #{epc}, #{epcReplenishLength}, #{epcPreSupplement}, #{lifeExpectancy}, #{lifeUnits}, #{startDate}, update tb_asset_information code = #{code}, name = #{name}, number = #{number}, image_url = #{imageUrl}, category_number = #{categoryNumber}, specifications_model = #{specificationsModel}, abc_category = #{abcCategory}, manage_status = #{manageStatus}, user_department = #{userDepartment}, department = #{department}, responsible_person = #{responsiblePerson}, location_number = #{locationNumber}, property = #{property}, purchase_date = #{purchaseDate}, commissioning_date = #{commissioningDate}, original_value = #{originalValue}, durable_years = #{durableYears}, net_value = #{netValue}, residual_value = #{residualValue}, accumulated_depreciation = #{accumulatedDepreciation}, last_depreciation_date = #{lastDepreciationDate}, depreciation_method = #{depreciationMethod}, contract_number = #{contractNumber}, factory_number = #{factoryNumber}, manufacturer = #{manufacturer}, supplier = #{supplier}, purpose = #{purpose}, maintenance_date = #{maintenanceDate}, maintenance_tel = #{maintenanceTel}, maintenance_user = #{maintenanceUser}, corporation = #{corporation}, record_status = #{recordStatus}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, is_whitelist = #{isWhitelist}, quantity = #{quantity}, units = #{units}, payment_receiving_time = #{paymentReceivingTime}, epc= #{epc}, epc_replenish_length = #{epcReplenishLength}, epc_pre_supplement = #{epcPreSupplement}, life_expectancy = #{lifeExpectancy}, life_units = #{lifeUnits}, start_date = #{startDate}, where id = #{id} update tb_asset_information set manage_status = #{manageStatus} where number = #{number} delete from tb_asset_information where id = #{id} delete from tb_asset_information where id in #{id}