Changes between Version 2 and Version 3 of UseCase009
- Timestamp:
- 05/21/26 18:31:25 (6 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase009
v2 v3 17 17 {{{#!div style="margin-left: 20px;" 18 18 {{{ 19 SELECT product_id, format, price, stock, description, release_id20 FROM P roduct21 WHERE product_id = @selected_product_id;19 SELECT product_id, format, price, stock, product_description, release_id 20 FROM PRODUCTS 21 WHERE product_id = :selected_product_id; 22 22 }}} 23 23 }}} … … 31 31 {{{#!div style="margin-left: 20px;" 32 32 {{{ 33 UPDATE P roduct33 UPDATE PRODUCTS 34 34 SET 35 price = @new_price,36 stock = @new_stock,37 description = @new_description,38 format = @new_format39 WHERE product_id = @selected_product_id;35 price = :new_price, 36 stock = :new_stock, 37 product_description = :new_description, 38 format = :new_format 39 WHERE product_id = :selected_product_id; 40 40 }}} 41 41 }}} 42 42 43 6. System confirms the successful modification to the admin and updates the product information across the public catalog immediately.43 6. System logs the modification 44 44 45 45 {{{#!div style="margin-left: 20px;" 46 46 {{{ 47 SELECT * 48 FROM Product 49 WHERE product_id = @selected_product_id; 47 INSERT INTO MODIFICATIONS (modification_id, admin_id, date_modified, type_of_modification, discount) 48 VALUES (:new_modification_id, :authenticated_admin_id, CURRENT_DATE, 'UPDATE', NULL); 49 50 INSERT INTO MODIFICATION_PRODUCTS (modification_id, product_id) 51 VALUES (:new_modification_id, :selected_product_id); 52 }}} 53 }}} 54 55 7. System confirms the successful modification to the admin and updates the product information across the public catalog immediately. 56 57 {{{#!div style="margin-left: 20px;" 58 {{{ 59 SELECT * FROM PRODUCTS 60 WHERE product_id = :selected_product_id; 50 61 }}} 51 62 }}}
