Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36281 1 d 7 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Replace retailerBlockBrands with DMS code-based brand eligibility check in OrderController.createOrder - use partnerIneligibleBrands from partner_dealer_mapping instead of retailer_block_brands table  
36265 3 d 10 h aman /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Fix:Block first order through App  
36071 22 d 12 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Premium CD days: validate freeCreditDays per partner type, return partialCdDays/fullCdDays in gateway status API  
36066 23 d 5 h aman /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Fix:Block first order if FULL_STOCK_PAYMENT is not done  
35972 38 d 13 h aman /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Fix:Block 1st payment is fullstock payment is not done  
35863 50 d 6 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ fix: OrderController - fix refundedAmount accumulation bug, batch-fetch providers and image URLs, reuse OrderStatusGroups, remove verbose logging  
35859 50 d 8 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Fixed selectById issue  
35847 51 d 11 h amit /trunk/profitmandi-web/src/main/ fix: change order/create from GET to POST to enable duplicate order prevention via PostInterceptor idempotency check  
35834 53 d 5 h amit /trunk/ Optimize order creation: skip getSpilitStock N+1 (9s), batch-fetch items/tagListings/warehouses in TransactionServiceImpl  
35758 64 d 5 h vikas /trunk/ Removed tarun verma's email from trial service  
35689 67 d 17 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Optimize transaction order creation: restrict investment check to hard_limit partners, eliminate duplicate DB queries, batch-fetch categories and high-demand items, reuse pre-fetched data in focusedModelShortageValidation and transaction processing  
35652 73 d 5 h vikas /trunk/ PineLabs Offer and Create Order  
35575 88 d 22 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Return full CartResponse on cart validation failure

- Return cartValidationResponse instead of generic CART_CHANGED error
- Allows app to display specific price change messages to user
 
35494 114 d 2 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ N+1 query optimization for B2B order creation flow

- OrderController: Pre-fetch items and tagListings before cart line loop
- OrderController: Reuse brand stock data for both limit checks (3 queries instead of 6)

Performance improvement: ~20-30 DB queries reduced per order
 
35458 118 d 5 h amit /trunk/ Revert @Transactional(readOnly=true) - keep @Transactional only at Controller level

Changes:
- profitmandi-web: Controllers use @Transactional(rollbackFor = Throwable.class) at class level, removed method-level @Transactional(readOnly = true)
- profitmandi-fofo: Controllers use @Transactional(rollbackFor = Throwable.class) at class level, removed method-level @Transactional
- profitmandi-dao: Removed @Transactional from services/repositories

Exceptions (called from interceptors, need own transaction):
- RoleManager: @Transactional(readOnly = true) - called from interceptor for auth
- PartnerTypeChangeServiceImpl.getBestPartner(): @Transactional - called from JWTUtil via interceptor

Fixed javax.transaction.Transactional to org.springframework.transaction.annotation.Transactional
Fixed rollbackOn to rollbackFor for Spring compatibility
 
35455 118 d 8 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ order controller @Transaction roll back for current  
35428 120 d 5 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Refactor OrderController: Move from class-level to method-level @Transactional

- Removed class-level @Transactional(rollbackFor = Throwable.class) from OrderController
- Added method-level @Transactional to 13 write methods only:
- createOrder (GET & POST)
- partnerCancelOrder
- CancellableRequest
- createAddress
- NotifyColorChange
- NotifyHold
- cancelOrder
- cancelNotifyOrder
- raiseBypassRequest
- createSamsungUpgradeOffer
- changeOrderPricing
- createInsurance

Benefits:
- 21 read-only methods no longer hold database connections for entire request duration
- Connections are acquired per-query and released immediately for reads
- Reduces connection pool exhaustion under load
- Follows "validate then transact" pattern
 
35409 121 d 15 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Added PineLabs untracked file  
35368 128 d 9 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/checkout/ Added changes for trial user  
35323 142 d 10 h amit /trunk/ Fixed changes regarding to FofoStore having expired field now ignored  

Show All