Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37629 4 d 7 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ feat(mail): wire inactive-recipient filter and clean hardcoded addresses

Wire MailRecipientFilter into googleMailSender and gmailRelaySender. Remove inactive/unknown addresses from recipient and access lists, fix typo addresses, bulk uploader gate to akhil.kumar, V2 brand fee gate to kamini.sharma.
 
37354 31 d 7 h aman /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ AI lead intake: pool is BGC L1 (category 20), not Sales L1 - BGC is the desk that works AI leads  
37353 31 d 7 h aman /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ AI lead intake: assign new leads to a random active Sales L1 instead of fixed auth id 53  
37130 60 d 3 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ rating api issue fix  
37029 74 d 6 h aman /trunk/ AI lead intake - conform to chatbot spec: accept & store 'state' (canonical, nullable) from payload; default status to 'pending' so leads land in the Open/New view (was followUp); return 401 (not 403) on bad Auth-Token; show Outlet/Shop Name column in lead search results  
37027 74 d 7 h aman /trunk/ AI leads: fix /add/lead 500 (set NOT-NULL 'state' + null-safe last_name/city/address so voice/chat leads persist instead of crashing) and add call-recording support - new user.lead.recording_url column mapped on Lead, recordingUrl accepted on AiLeadRequest and stored in aiLead(), Recording play button in lead management (main dashboard + search/closed results). Prod needs: ALTER TABLE user.lead ADD COLUMN recording_url VARCHAR(1024) NULL;  
36957 81 d 6 h aman /trunk/ Add AI assistant lead intake endpoint (POST /add/lead) tagging source=AI Assistant in Lead Management  
36930 86 d 3 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ rbm rating weekly -> monthly  
36860 94 d 22 h ranu /trunk/ code committed by some bug fix in pjp  
36853 95 d 5 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ code committed by some bug fix in pjp  
36827 101 d 0 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ code committed for buy mode(v2)  
36771 108 d 0 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ code commit for self lead creation  
36723 114 d 7 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Franchise visit activity response  
36722 114 d 8 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Franchise visit activity response  
36678 116 d 7 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Checkout Error  
36677 116 d 8 h vikas /trunk/ Checkout Error  
36661 119 d 2 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ Location Tracking Report: Add Travel Row and added Company Office Repository Implementation  
36400 145 d 5 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ Replace mailSender (SendGrid) with gmailRelaySender - SendGrid API key expired/revoked  
36336 150 d 8 h ranu /trunk/ sales dispostion updated  
36286 156 d 0 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ sales dispostion updated  
36267 158 d 4 h ranu /trunk/ sales dispostion updated  
36211 165 d 2 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ rbm l1,l2,l3 layer introduce  
36114 172 d 3 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ rating system updated ..weekly rating  
35968 195 d 19 h ranu /trunk/ bm asm filter added in sales escalation  
35920 201 d 4 h ranu /trunk/ now inactive partners also showing on target page  
35853 206 d 0 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ no ans will come after 4 hrs  
35835 207 d 8 h ranu /trunk/ new remark has been updated (schedule time and date for call)  
35781 214 d 0 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Remove unused AuthUserPartnerMappingRepository injection from controllers  
35725 221 d 5 h ranu /trunk/ now recording also fetching  
35708 222 d 1 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ now recording also fetching  
35650 228 d 5 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ call target related changes  
35649 228 d 7 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ call target related changes  
35632 231 d 7 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ call target related changes  
35630 232 d 1 h aman /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Fix:Error handling  
35469 272 d 0 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Leads Follow ups  
35467 272 d 1 h amit /trunk/ Optimize /lead-description endpoint

- Add null check for authUser to prevent NPE
- Move visitRequests query inside followUp block
- Move Comparator outside loop
- Rewrite selectLeadsScheduledBetweenDate using Criteria API with Predicates
- Single query joins Lead + LeadActivity with filters in DB
- Remove in-memory filtering of assignTo
 
35458 272 d 23 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
 
35435 274 d 8 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Add @Transactional(readOnly = true) to GET methods in controllers

Added @Transactional(readOnly = true) to all read-only GET methods across 14 controllers:
- RetailerController (10 methods)
- UserController (16 methods)
- WalletController (5 methods)
- CartController (2 methods)
- StoreController (25 methods)
- DealsController (20 methods)
- ShopController (1 method)
- CustomerController (2 methods)
- NotificationController (3 methods)
- SolrSearchController (2 methods)
- InsuranceController (1 method)
- GatewayController (1 method)
- LeadController (13 methods)
- RechargeController (4 methods)

Total: 105 methods updated

All methods verified to only set @Transient fields on entities, ensuring no dirty writes.
 
35415 276 d 5 h amit /trunk/ Commit Changes  
35397 276 d 18 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance