Commit dd81cafb authored by vishalt's avatar vishalt

Added the sql query for sales person in opportunityStageValue method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105751 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e07565f3
...@@ -358,6 +358,23 @@ OpportunityStageSummaryRemote { ...@@ -358,6 +358,23 @@ OpportunityStageSummaryRemote {
conn = connection.getConnectDB(dataSourceName); conn = connection.getConnectDB(dataSourceName);
sql = "select sales_pers from sales_pers where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginCode);
rs = pstmt.executeQuery();
while(rs.next()){
salesPersEmpCode = rs.getString("sales_pers");
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
sql = "SELECT opp.oppr_id," sql = "SELECT opp.oppr_id,"
+ "opp.oppr_name," + "opp.oppr_name,"
+ "opp.oppr_type," + "opp.oppr_type,"
...@@ -407,7 +424,7 @@ OpportunityStageSummaryRemote { ...@@ -407,7 +424,7 @@ OpportunityStageSummaryRemote {
+ "order by oppr_date,ass_date"; + "order by oppr_date,ass_date";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginCode); pstmt.setString(1, salesPersEmpCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
while (rs.next()) { while (rs.next()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment