Insert Into STORAGE_LIST (
storage_id,
plan_list_id,
storage_list_quantity,
goods_id,
entry_time,
update_time,
storage_list_remark,
box_barcode,
goods_property1,
goods_property2,
goods_property3,
goods_property4,
goods_property5,
goods_property6,
goods_property7,
goods_property8,
goods_property9
)Values(
#STORAGE_ID#,
#PLAN_LIST_ID#,
#STORAGE_LIST_QUANTITY#,
#GOODS_ID#,
#ENTRY_TIME#,
#UPDATE_TIME#,
#STORAGE_LIST_REMARK#,
#BOX_BARCODE#,
#GOODS_PROPERTY1#,
#GOODS_PROPERTY2#,
#GOODS_PROPERTY3#,
#GOODS_PROPERTY4#,
#GOODS_PROPERTY5#,
#GOODS_PROPERTY6#,
#GOODS_PROPERTY7#,
#GOODS_PROPERTY8#,
#GOODS_PROPERTY9#
)
select @@IDENTITY as value
Update STORAGE_LIST Set
storage_id=#STORAGE_ID#,
plan_list_id=#PLAN_LIST_ID#,
storage_list_quantity=#STORAGE_LIST_QUANTITY#,
goods_id=#GOODS_ID#,
entry_time=#ENTRY_TIME#,
update_time=#UPDATE_TIME#,
storage_list_remark=#STORAGE_LIST_REMARK#,
box_barcode=#BOX_BARCODE#,
goods_property1=#GOODS_PROPERTY1#,
goods_property2=#GOODS_PROPERTY2#,
goods_property3=#GOODS_PROPERTY3#,
goods_property4=#GOODS_PROPERTY4#,
goods_property5=#GOODS_PROPERTY5#,
goods_property6=#GOODS_PROPERTY6#,
goods_property7=#GOODS_PROPERTY7#,
goods_property8=#GOODS_PROPERTY8#,
goods_property9=#GOODS_PROPERTY9#
storage_list_id=#STORAGE_LIST_ID#
Delete From STORAGE_LIST
storage_list_id=#STORAGE_LIST_ID#