Sql.append ( "select FDATAVALUE_L2 bb from T_BAS_UserDefinedDataEntry where fid in (select FdynProp02 from CT_WFB_XTLC_00023 where fid='"+billID+"')") ;
java . sql . Connection con = com . kingdee . bos . framework . ejb . EJBFactory . getConnection ( __bosContext ) ;
java . sql . Statement st = con . createStatement ( ) ;
java . sql . ResultSet rs = st . executeQuery ( Sql . toString ( ) ) ;
if ( rs . next ( ) )
{
java.text.SimpleDateFormat dateformat1=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
java.util.Date synchronousDate = new java.util.Date();
java . lang . StringBuffer sql = new java . lang . StringBuffer ( ) ;
sql = "update CT_RR_LeaveApplyPermission set FBillStatus=30, FDIRECTSUPERIORID='"+authorId.toString()+"',FSuperAuditTime={ts'"+dateformat1.format(synchronousDate)+"'} where fid='" + billId.toString() + "'" ;
java . sql . Connection con = com . kingdee . bos . framework . ejb . EJBFactory . getConnection ( __bosContext ) ;
java . sql . Statement batchStatement = con . createStatement ( ) ;
batchStatement . execute ( sql . toString ( ) ) ;
com . kingdee . util . db . SQLUtils . cleanup ( batchStatement , con ) ;
com . kingdee . util . db . SQLUtils . cleanup ( con ) ;