Subversion Repositories SmartDukaan

Rev

Rev 34532 | Rev 34578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34532 Rev 34547
Line 38... Line 38...
38
import com.spice.profitmandi.dao.entity.transaction.*;
38
import com.spice.profitmandi.dao.entity.transaction.*;
39
import com.spice.profitmandi.dao.entity.user.*;
39
import com.spice.profitmandi.dao.entity.user.*;
40
import com.spice.profitmandi.dao.entity.warehouse.WarehouseInventoryItem;
40
import com.spice.profitmandi.dao.entity.warehouse.WarehouseInventoryItem;
41
import com.spice.profitmandi.dao.entity.warehouse.WarehouseScan;
41
import com.spice.profitmandi.dao.entity.warehouse.WarehouseScan;
42
import com.spice.profitmandi.dao.enumuration.auth.CollectionRemark;
42
import com.spice.profitmandi.dao.enumuration.auth.CollectionRemark;
43
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
-
 
44
import com.spice.profitmandi.dao.enumuration.catalog.StockTransactionType;
43
import com.spice.profitmandi.dao.enumuration.catalog.StockTransactionType;
45
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
44
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
46
import com.spice.profitmandi.dao.enumuration.dtr.RefferalStatus;
45
import com.spice.profitmandi.dao.enumuration.dtr.RefferalStatus;
47
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
46
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
48
import com.spice.profitmandi.dao.enumuration.fofo.PaymentStatus;
47
import com.spice.profitmandi.dao.enumuration.fofo.PaymentStatus;
Line 71... Line 70...
71
import com.spice.profitmandi.dao.repository.transaction.*;
70
import com.spice.profitmandi.dao.repository.transaction.*;
72
import com.spice.profitmandi.dao.repository.user.AddressRepository;
71
import com.spice.profitmandi.dao.repository.user.AddressRepository;
73
import com.spice.profitmandi.dao.repository.user.LoiFormRepository;
72
import com.spice.profitmandi.dao.repository.user.LoiFormRepository;
74
import com.spice.profitmandi.dao.repository.user.UserRepository;
73
import com.spice.profitmandi.dao.repository.user.UserRepository;
75
import com.spice.profitmandi.dao.repository.warehouse.*;
74
import com.spice.profitmandi.dao.repository.warehouse.*;
-
 
75
import com.spice.profitmandi.dao.service.LiquidationService;
76
import com.spice.profitmandi.dao.service.PurSaleService;
76
import com.spice.profitmandi.dao.service.PurSaleService;
77
import com.spice.profitmandi.dao.service.SidbiService;
77
import com.spice.profitmandi.dao.service.SidbiService;
78
import com.spice.profitmandi.dao.service.biuedart.BluedartAuthService;
78
import com.spice.profitmandi.dao.service.biuedart.BluedartAuthService;
79
import com.spice.profitmandi.dao.service.biuedart.BluedartService;
79
import com.spice.profitmandi.dao.service.biuedart.BluedartService;
80
import com.spice.profitmandi.dao.service.solr.FofoSolr;
80
import com.spice.profitmandi.dao.service.solr.FofoSolr;
Line 273... Line 273...
273
    private ServiceConfigRepository serviceConfigRepository;
273
    private ServiceConfigRepository serviceConfigRepository;
274
 
274
 
275
    @Autowired
275
    @Autowired
276
    private RetailerBlockBrandsRepository retailerBlockBrandsRepository;
276
    private RetailerBlockBrandsRepository retailerBlockBrandsRepository;
277
 
277
 
-
 
278
    @Autowired
-
 
279
    private LiquidationService liquidationService;
-
 
280
 
278
    private static final String[] STOCK_AGEING_MAIL_LIST = new String[]{"uday.singh@smartudkaan.com", "mohinder.mutreja@smartdukaan.com", "ankit.bhatia@smartdukaan.com", "tarun.verma@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "manish.gupta@smartdukaan.com"};
281
    private static final String[] STOCK_AGEING_MAIL_LIST = new String[]{"uday.singh@smartudkaan.com", "mohinder.mutreja@smartdukaan.com", "ankit.bhatia@smartdukaan.com", "tarun.verma@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "manish.gupta@smartdukaan.com"};
279
 
282
 
280
    private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[]{"kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "niranjan.kala@smartdukaan.com"};
283
    private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[]{"kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "niranjan.kala@smartdukaan.com"};
281
 
284
 
282
    private static final String[] INDENT_TERTIARY_MAIL_LIST = new String[]{"uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "nishant.ohri@smartdukaan.com", "vinay.p@smartdukaan.com", "deena.nath@smartdukaan.com", "shobhit.tandon@smartdukaan.com", "ritesh.chauhan1@smartdukaan.com"};
285
    private static final String[] INDENT_TERTIARY_MAIL_LIST = new String[]{"uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "nishant.ohri@smartdukaan.com", "vinay.p@smartdukaan.com", "deena.nath@smartdukaan.com", "shobhit.tandon@smartdukaan.com", "ritesh.chauhan1@smartdukaan.com"};
Line 1075... Line 1078...
1075
            }
1078
            }
1076
            schemeService.processSchemeOut(scanRecord.getOrderId(), scanRecord.getFofoId());
1079
            schemeService.processSchemeOut(scanRecord.getOrderId(), scanRecord.getFofoId());
1077
        }
1080
        }
1078
    }
1081
    }
1079
 
1082
 
1080
    //
-
 
1081
 
1083
 
1082
    public void test() throws Exception {
1084
    public void test() throws Exception {
1083
        this.processScheme(LocalDate.of(2025, 4, 29).atStartOfDay(), LocalDate.of(2025, 5, 2).atStartOfDay(), false);
-
 
1084
        //this.testWhatsapp();
1085
        this.whatsappTest();
1085
        //this.reverseOppoPayout();
1086
        //this.reverseOppoPayout();
1086
        //this.rolloutOppoPayout();
1087
        //this.rolloutOppoPayout();
1087
        //this.debitLoanAmountFromWallet();
1088
        //this.debitLoanAmountFromWallet();
1088
        //List<TotalLoanAmountDueModel> totalLoanAmountDueModels = loanRepository.getDueLoansByFofoId(175139438);
1089
        //List<TotalLoanAmountDueModel> totalLoanAmountDueModels = loanRepository.getDueLoansByFofoId(175139438);
1089
        //System.out.println(totalLoanAmountDueModels);
1090
        //System.out.println(totalLoanAmountDueModels);
Line 1098... Line 1099...
1098
        System.out.println(getSuggestedLimit(2000000d));
1099
        System.out.println(getSuggestedLimit(2000000d));
1099
        System.out.println(getSuggestedLimit(2500000d));*/
1100
        System.out.println(getSuggestedLimit(2500000d));*/
1100
        //Utils.sendMailWithAttachments(googleMailSender, new String[]{"amit.gupta@smartdukaan.com"}, null, "DTDC AWb", "PFA");
1101
        //Utils.sendMailWithAttachments(googleMailSender, new String[]{"amit.gupta@smartdukaan.com"}, null, "DTDC AWb", "PFA");
1101
    }
1102
    }
1102
 
1103
 
1103
    private void testWhatsapp() throws Exception {
1104
    private void whatsappTest() throws Exception {
1104
        System.out.println("Calling whatsapp test");
-
 
1105
        String message = "Hi HO SmartDukaan, Your bid for Oppo Reno 10 Pro 5G (12GB 256GB) has been placed successfully!";
-
 
1106
        notificationService.sendWhatsappMessage(message, null, "9990381569");
1105
        liquidationService.consolidatedBiddingMessage();
1107
    }
1106
    }
1108
 
1107
 
1109
    private void debitLoanAmountFromWallet() {
1108
    private void debitLoanAmountFromWallet() {
1110
        List l1 = Arrays.asList(1234, 1420, 2694, 8129, 12182, 12880, 16289, 16462, 16551, 16625, 16819, 17606, 18902, 19152, 19663, 22409, 22410, 23924, 24058, 24206, 24215, 24220, 24459, 25977, 30585, 31590);
1109
        List l1 = Arrays.asList(1234, 1420, 2694, 8129, 12182, 12880, 16289, 16462, 16551, 16625, 16819, 17606, 18902, 19152, 19663, 22409, 22410, 23924, 24058, 24206, 24215, 24220, 24459, 25977, 30585, 31590);
1111
        l1.addAll(Arrays.asList(11849, 12702, 14554, 14643, 19166, 19638, 32824, 33467, 33954, 34017, 34514, 35128, 35229, 35355, 36007, 36351, 36435, 36586, 36608, 36612, 36665, 37076, 37495, 37678, 38519, 38563, 38638, 38690, 38815, 38840, 39015, 39084, 39142, 39379, 39384, 39586, 39636, 39657, 39755, 39788, 39908, 40054, 40220, 40534, 41731, 41962, 42692));
1110
        l1.addAll(Arrays.asList(11849, 12702, 14554, 14643, 19166, 19638, 32824, 33467, 33954, 34017, 34514, 35128, 35229, 35355, 36007, 36351, 36435, 36586, 36608, 36612, 36665, 37076, 37495, 37678, 38519, 38563, 38638, 38690, 38815, 38840, 39015, 39084, 39142, 39379, 39384, 39586, 39636, 39657, 39755, 39788, 39908, 40054, 40220, 40534, 41731, 41962, 42692));