select id, product_id, name, count, unitprice, wholesale, installation_cost, op_cost, warranty_period,
extended_warranty_price, expected_service_life, depreciation_rate, brand, product_specifications,
create_by, create_time, update_by, update_time
from property
insert into property (
product_id,
name,
count,
unitprice,
wholesale,
installation_cost,
op_cost,
warranty_period,
extended_warranty_price,
expected_service_life,
depreciation_rate,
brand,
product_specifications,
create_by,
create_time
)values(
#{productId},
#{name},
#{count},
#{unitprice},
#{wholesale},
#{installationCost},
#{opCost},
#{warrantyPeriod},
#{extendedWarrantyPrice},
#{expectedServiceLife},
#{depreciationRate},
#{brand},
#{productSpecifications},
#{createBy},
sysdate()
)
update property
product_id = #{productId},
name = #{name},
count = #{count},
unitprice = #{unitprice},
wholesale = #{wholesale},
installation_cost = #{installationCost},
op_cost = #{opCost},
warranty_period = #{warrantyPeriod},
extended_warranty_price = #{extendedWarrantyPrice},
expected_service_life = #{expectedServiceLife},
depreciation_rate = #{depreciationRate},
brand = #{brand},
product_specifications = #{productSpecifications},
update_by = #{updateBy},
update_time = sysdate()
where id = #{id}
delete from property where id = #{id}
delete from property where id in
#{id}