insert into t_big_device
big_device_id,
big_device_Name,
big_device_model,
big_number,
big_type,
big_position,
big_state,
purchase_time,
supplier_id,
use_life,
key_cabinet,
user_id,
big_notes,
safety_code,
is_certificate,
is_use,
create_time,
create_user,
company_id,
manufacturer,
date_of_production,
use_year_month,
shape_size,
total_power,
total_weight,
original_value,
year_depreciation_rate,
accumulated_depreciation,
net_worth,
use_status,
is_need,
device_source,
device_nexus,
fixed_person,
admin_phone,
#{bigDeviceId,jdbcType=VARCHAR},
#{bigDeviceName,jdbcType=VARCHAR},
#{bigDeviceModel,jdbcType=VARCHAR},
#{bigNumber,jdbcType=VARCHAR},
#{bigType,jdbcType=VARCHAR},
#{bigPosition,jdbcType=VARCHAR},
#{bigState,jdbcType=INTEGER},
#{purchaseTime,jdbcType=TIMESTAMP},
#{supplierId,jdbcType=VARCHAR},
#{useLife,jdbcType=VARCHAR},
#{keyCabinet,jdbcType=VARCHAR},
#{userId,jdbcType=VARCHAR},
#{bigNotes,jdbcType=VARCHAR},
#{safetyCode,jdbcType=INTEGER},
#{isCertificate,jdbcType=INTEGER},
#{isUse,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{companyId,jdbcType=VARCHAR},
#{manufacturer,jdbcType=VARCHAR},
#{dateOfProduction,jdbcType=TIMESTAMP},
#{useYearMonth,jdbcType=TIMESTAMP},
#{shapeSize,jdbcType=VARCHAR},
#{totalPower},
#{totalWeight,jdbcType=VARCHAR},
#{originalValue,jdbcType=VARCHAR},
#{yearDepreciationRate,jdbcType=VARCHAR},
#{accumulatedDepreciation,jdbcType=VARCHAR},
#{netWorth,jdbcType=VARCHAR},
#{useStatus,jdbcType=INTEGER},
#{isNeed,jdbcType=INTEGER},
#{deviceSource,jdbcType=VARCHAR},
#{deviceNexus,jdbcType=VARCHAR},
#{fixedPerson,jdbcType=VARCHAR},
#{adminPhone,jdbcType=VARCHAR},
insert into t_big_path
id,
big_device_id,
file_type,
file_path,
#{id,jdbcType=VARCHAR},
#{bigDeviceId,jdbcType=VARCHAR},
#{fileType,jdbcType=INTEGER},
#{filePath,jdbcType=VARCHAR},
update t_big_device set
is_use=2
where big_device_id=#{bigDeviceId}
delete from t_big_path where big_device_id=#{bigDeviceId}
update t_big_device
big_device_Name = #{bigDeviceName,jdbcType=VARCHAR},
big_device_model = #{bigDeviceModel,jdbcType=VARCHAR},
big_number = #{bigNumber,jdbcType=VARCHAR},
big_type = #{bigType,jdbcType=VARCHAR},
big_position = #{bigPosition,jdbcType=VARCHAR},
big_state = #{bigState,jdbcType=INTEGER},
purchase_time = #{purchaseTime,jdbcType=TIMESTAMP},
supplier_id = #{supplierId,jdbcType=VARCHAR},
use_life = #{useLife,jdbcType=VARCHAR},
key_cabinet = #{keyCabinet,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
big_notes = #{bigNotes,jdbcType=VARCHAR},
safety_code = #{safetyCode,jdbcType=INTEGER},
is_certificate = #{isCertificate,jdbcType=INTEGER},
is_use = #{isUse,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
manufacturer = #{manufacturer,jdbcType=VARCHAR},
date_of_production = #{dateOfProduction,jdbcType=TIMESTAMP},
use_year_month = #{useYearMonth,jdbcType=TIMESTAMP},
shape_size = #{shapeSize,jdbcType=VARCHAR},
total_power = #{totalPower},
total_weight = #{totalWeight,jdbcType=VARCHAR},
original_value = #{originalValue,jdbcType=VARCHAR},
year_depreciation_rate = #{yearDepreciationRate,jdbcType=VARCHAR},
accumulated_depreciation = #{accumulatedDepreciation,jdbcType=VARCHAR},
net_worth = #{netWorth,jdbcType=VARCHAR},
use_status = #{useStatus,jdbcType=INTEGER},
is_need = #{isNeed,jdbcType=INTEGER},
device_source = #{deviceSource,jdbcType=VARCHAR},
device_nexus = #{deviceNexus,jdbcType=VARCHAR},
fixed_person = #{fixedPerson,jdbcType=VARCHAR},
admin_phone = #{adminPhone,jdbcType=VARCHAR},
where big_device_id = #{bigDeviceId,jdbcType=VARCHAR}