Commit 46f2211f authored by caluka's avatar caluka

For add mode division get from maxversion id condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101059 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5cd2bdcf
...@@ -1776,7 +1776,8 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1776,7 +1776,8 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
sql = "select table_no from org_structure where pos_code=? and emp_code=? "; sql = "select table_no from org_structure where pos_code=? and emp_code=?" +
" and version_id in (select max(version_id) from org_structure ) ";
pstmt1 = conn.prepareStatement(sql); pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, positionCode); pstmt1.setString(1, positionCode);
pstmt1.setString(2, spCode); pstmt1.setString(2, spCode);
......
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