Commit 1c288672 authored by skumbhar's avatar skumbhar

changed condition for J2L2 and J2


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97798 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 618f8101
...@@ -32,7 +32,33 @@ public class PayAprvActivityStatus ...@@ -32,7 +32,33 @@ public class PayAprvActivityStatus
String activityId1 = "", roleCode1 = ""; String activityId1 = "", roleCode1 = "";
String activityId2 = "", roleCode2 = ""; String activityId2 = "", roleCode2 = "";
if("First".equalsIgnoreCase(keyFlag)) if("CHKUSRCOND".equalsIgnoreCase(keyFlag))
{
sql = "select ROLE_CODE__SIGN from OBJ_SIGN_TRANS "
+ "WHERE ltrim(rtrim(REF_SER)) = 'M-PAY' AND ltrim(rtrim(REF_ID)) = ? AND ltrim(rtrim(ROLE_CODE__SIGN)) IN('RLCDJ2L5KF','RLCDJ2L5KS','RLCDJ2L1F','RLCDJ2L1S','RLCDJ2L2F','RLCDJ2L2S','RLCDJ2L5F','RLCDJ2L5S')";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if (!rs.next())
{
retString = "1";
}
else
{
retString = "0";
}
System.out.println("retString = " + retString);
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
else
{
if("First".equalsIgnoreCase(keyFlag))
{ {
activityId1 = "J2_SIGN"; roleCode1 = "RLCDJ2F"; activityId1 = "J2_SIGN"; roleCode1 = "RLCDJ2F";
activityId2 = "J21_SIGN"; roleCode2 = "RLCDJ2S"; activityId2 = "J21_SIGN"; roleCode2 = "RLCDJ2S";
...@@ -87,6 +113,7 @@ public class PayAprvActivityStatus ...@@ -87,6 +113,7 @@ public class PayAprvActivityStatus
{ {
retString = "0"; retString = "0";
} }
}
} }
catch (Exception e) catch (Exception e)
{ {
......
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