Subversion Repositories SmartDukaan

Rev

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

Rev 31704 Rev 31718
Line 836... Line 836...
836
                .forEach(x -> LOGGER.info("{} to be deducted from {}({}) for wrongly disbursed due to technical error.",
836
                .forEach(x -> LOGGER.info("{} to be deducted from {}({}) for wrongly disbursed due to technical error.",
837
                        x.getValue(), userNameMap.get(x.getKey())));
837
                        x.getValue(), userNameMap.get(x.getKey())));
838
 
838
 
839
        ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
839
        ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
840
        Utils.sendMailWithAttachment(googleMailSender,
840
        Utils.sendMailWithAttachment(googleMailSender,
841
                new String[]{"amit.gupta@shop2020.in", "adeel.yazdani@smartdukaan.com"}, null,
841
                new String[]{"amit.gupta@shop2020.in"}, null,
842
                "Partner Excess Amount", "PFA", "ListofSchemes.csv", new ByteArrayResource(baos.toByteArray()));
842
                "Partner Excess Amount", "PFA", "ListofSchemes.csv", new ByteArrayResource(baos.toByteArray()));
843
 
843
 
844
    }
844
    }
845
 
845
 
846
    public void fetchParnterStats() throws Exception {
846
    public void fetchParnterStats() throws Exception {
Line 3125... Line 3125...
3125
 
3125
 
3126
                    }
3126
                    }
3127
                    sbbuilder.append("</tbody></table><br><br>");
3127
                    sbbuilder.append("</tbody></table><br><br>");
3128
 
3128
 
3129
                    this.sendMailOfHtmlFormat(authUser.getEmailId(), sbbuilder.toString(), null, subject);
3129
                    this.sendMailOfHtmlFormat(authUser.getEmailId(), sbbuilder.toString(), null, subject);
3130
                    break;
-
 
3131
                }
3130
                }
3132
 
3131
 
3133
            }
3132
            }
3134
        }
3133
        }
3135
    }
3134
    }