StringBuffer sql1=new StringBuffer("SELECT r.receive_state,f.file_id,f.provide_count,c.empname,r.receive_departid,r.receive_id,f.provide_departid,d.departid,f.provide_staffid,d.departname,f.provide_date FROM tm_file_recelve r LEFT JOIN tm_dtl_file_provide f ON r.file_id=f.file_id LEFT JOIN tab_department d ON r.receive_departid=d.departid LEFT JOIN tab_employee c ON f.provide_staffid=c.empid WHERE 1=1 and r.receive_id='"+reaciveid+"'");
StringBuffer sql1=new StringBuffer("SELECT r.receive_state,f.file_id,f.provide_count,c.empname,r.receive_departid,r.receive_id,f.provide_departid,d.departid,f.provide_staffid,d.departname,f.provide_date FROM tm_file_recelve r LEFT JOIN tm_dtl_file_provide f ON r.file_id=f.file_id LEFT JOIN tab_department d ON r.receive_departid=d.departid LEFT JOIN tab_employee c ON f.provide_staffid=c.empid WHERE 1=1 and r.receive_id="+reaciveid+"");
Stringsql="update tab_department set departstate='0',departstatdate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where departid=?";
Stringsql="update tab_department set departstate='0',departstatdate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where departid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -538,7 +538,7 @@ public class DeptManageServlet extends DispatchServlet {
if(!Common.isNull(qj)){
sql.append(" and td.areaid='").append(qj).append("'");
}
sql.append(" group by ta.AREADEF");
sql.append(" group by ta.AREADEF,tf.FRAMEWORKNAME,td.AREAID,td.FRAMEWORKID");
"empemail=?,sex=?,birthday=str_to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,UPDATE_TIME=sysdate(),UPDATE_TEACHER_ID=?,UPDATE_SCHOOL_ID=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?, chooisestate=? where empid=?";
"empemail=?,sex=?,birthday=to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,UPDATE_TIME=now(),UPDATE_TEACHER_ID=?,UPDATE_SCHOOL_ID=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?, chooisestate=? where empid=?";
Connectionconn=null;
PreparedStatementprep=null;
@ -329,7 +329,7 @@ public class EmpManageServlet extends DispatchServlet {
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
"empemail=?,sex=?,birthday=str_to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=sysdate(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?,examintname=?,examintstate=?,examinttime=str_to_date(?,'%Y-%m-%d'),examintaddress=?,examintadvince=? where empid=?";
"empemail=?,sex=?,birthday=to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=now(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?,examintname=?,examintstate=?,examinttime=to_date(?,'%Y-%m-%d'),examintaddress=?,examintadvince=? where empid=?";
Connectionconn=null;
PreparedStatementprep=null;
@ -299,8 +299,8 @@ public class ExamineServlet extends DispatchServlet {
"empemail=?,sex=?,birthday=str_to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=sysdate(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?, chooisestate=?,examintname=?,examintstate=?,examinttime=str_to_date(?,'%Y-%m-%d'),updatedepartment=?,updateuserid=?,examintdepartment=? where empid=?";
"empemail=?,sex=?,birthday=to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=now(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?, chooisestate=?,examintname=?,examintstate=?,examinttime=to_date(?,'%Y-%m-%d'),updatedepartment=?,updateuserid=?,examintdepartment=? where empid=?";
Connectionconn=null;
PreparedStatementprep=null;
@ -374,7 +374,7 @@ public class ExamineServlet extends DispatchServlet {
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Connectionconn=null;
PreparedStatementprep=null;
@ -519,7 +519,7 @@ public class ExamineServlet extends DispatchServlet {
Stringsql="update tab_employee e set e.examintstate='1',e.updatedepartment=?,e.updateuserid=?,e.updatedate=sysdate(),e.examintname=?,e.examintdepartment=?,e.examinttime=sysdate() where e.empid=?";
Stringsql="update tab_employee e set e.examintstate='1',e.updatedepartment=?,e.updateuserid=?,e.updatedate=now(),e.examintname=?,e.examintdepartment=?,e.examinttime=now() where e.empid=?";
// StringBuffer sql = new StringBuffer("select a.empid,a.empname,a.emppwd,a.empstate,a.empstatedate,a.emplvl,a.empcontaddr,a.empcontphone,a.empcontmobphone,a.empfaxnum,a.empidbegindate,a.empidenddate,a.emppwdexpdate,a.date1,a.number1,a.flag1,a.string1,a.empemail,a.sex,a.birthday,a.departid,a.frameworkid,a.areaid,a.nationstate"+
// ",a.empage,a.emphabby,a.empjob,a.empeducational,a.empfamname,a.empfamage,a.empfamrelate,a.empfamjob,a.empschool,a.emppolitics,a.emphomeAddress,a.examintname,a.examintstate,a.examinttime,a.examintaddress,a.examintadvince from tab_employee a WHERE ");
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -525,7 +525,7 @@ public class EmpManageServlet extends DispatchServlet {
"empemail=?,sex=?,birthday=str_to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=sysdate(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?,examintname=?,examintstate=?,examinttime=str_to_date(?,'%Y-%m-%d'),examintaddress=?,examintadvince=? where empid=?";
"empemail=?,sex=?,birthday=to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=now(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?,examintname=?,examintstate=?,examinttime=to_date(?,'%Y-%m-%d'),examintaddress=?,examintadvince=? where empid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -173,8 +173,8 @@ public class ExamineManageServlet extends DispatchServlet {
"empemail=?,sex=?,birthday=str_to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=sysdate(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?, chooisestate=?,examintname=?,examintstate=?,examinttime=str_to_date(?,'%Y-%m-%d'),updatedepartment=?,updateuserid=?,examintdepartment=? where empid=?";
"empemail=?,sex=?,birthday=to_date(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=now(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?, chooisestate=?,examintname=?,examintstate=?,examinttime=to_date(?,'%Y-%m-%d'),updatedepartment=?,updateuserid=?,examintdepartment=? where empid=?";
Connectionconn=null;
PreparedStatementprep=null;
@ -245,7 +245,7 @@ public class ExamineManageServlet extends DispatchServlet {
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -447,7 +447,7 @@ public class ExamineManageServlet extends DispatchServlet {
"update td_leave a set a.leave_date=sysdate(),a.empid=?,a.depart_id=?,a.leave_reason1=?,a.workreason=?,a.leave_state=?,a.leave_secret=? where a.leave_Id=?";
"update td_leave a set a.leave_date=now(),a.empid=?,a.depart_id=?,a.leave_reason1=?,a.workreason=?,a.leave_state=?,a.leave_secret=? where a.leave_Id=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -349,7 +349,7 @@ public class LeaveManageServlet extends DispatchServlet {
"empemail=?,sex=?,birthday=date_format(?,'%Y-%m-%d'),a.areaid=?,a.departid=?,update_time=sysdate(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?,examintname=?,examintstate=?,examinttime=str_to_date(?,'%Y-%m-%d'),examintaddress=?,examintadvince=? where empid=?";
"empemail=?,sex=?,birthday=?,a.areaid=?,a.departid=?,update_time=now(),update_teacher_id=?,update_school_id=?,nationstate=?,empage=?,emphabby=?,empjob=?,empeducational=?,empfamname=?,empfamage=?,empfamrelate=?,empfamjob=?,empschool=?,emppolitics=?,emphomeAddress=?,examintname=?,examintstate=?,examinttime=to_date(?,'%Y-%m-%d'),examintaddress=?,examintadvince=? where empid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -145,7 +145,7 @@ public class RecordManageServlet extends DispatchServlet {
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -260,7 +260,7 @@ public class RecordManageServlet extends DispatchServlet {
Stringsql="update tab_employee e set e.rexamintstate='0',e.updatedepartment=?,e.updateuserid=?,e.recordtime=sysdate(),e.examintname=?,e.examintdepartment=?,e.examinttime=sysdate() where e.empid=?";
Stringsql="update tab_employee e set e.rexamintstate='0',e.updatedepartment=?,e.updateuserid=?,e.recordtime=now(),e.examintname=?,e.examintdepartment=?,e.examinttime=now() where e.empid=?";
PreparedStatementpstmt=null;
Connectionconn=null;
try{
@ -304,7 +304,7 @@ public class RecordManageServlet extends DispatchServlet {
.append("date_format(empstatedate,'%Y-%m-%d') as empstatedate,frameworkid,empcontaddr,empcontphone,")
.append("empcontmobphone,empfaxnum,date_format(empidbegindate,'%Y-%m-%d') as empidbegindate,")
.append("date_format(empidenddate,'%Y-%m-%d') as empidenddate,")
.append("emppwdexpdate,empemail,sex,date_format(birthday,'%Y-%m-%d') as birthday,departid,nationstate,")
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=sysdate(),update_time=sysdate(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Stringsql="update tab_employee a set a.empstate='0',a.empstatedate=now(),update_time=now(),update_teacher_id = ?,update_school_id = ? where a.empid=?";
Connectionconn=null;
PreparedStatementprep=null;
try{
@ -95,7 +95,7 @@ public class RexamineManageServlet extends DispatchServlet {
.append("date_format(a.empstatedate,'%Y-%m-%d') as empstatedate,a.areaid,a.frameworkid,a.empcontaddr,a.empcontphone,")
.append("a.empcontmobphone,a.empfaxnum,date_format(a.empidbegindate,'%Y-%m-%d') as empidbegindate,")
.append("date_format(a.empidenddate,'%Y-%m-%d') as empidenddate,")
.append("a.emppwdexpdate,a.empemail,a.sex,date_format(a.birthday ,'%Y-%m-%d') as birthday,a.departid,a.nationstate,")
Stringsql="update tab_employee e set e.rexamintstate='0',e.updatedepartment=?,e.updateuserid=?,e.updatedate=sysdate(),e.examintname=?,e.examintdepartment=?,e.examinttime=sysdate() where e.empid=?";
Stringsql="update tab_employee e set e.rexamintstate='0',e.updatedepartment=?,e.updateuserid=?,e.updatedate=now(),e.examintname=?,e.examintdepartment=?,e.examinttime=now() where e.empid=?";
PreparedStatementpstmt=null;
Connectionconn=null;
try{
@ -190,7 +190,7 @@ public class RexamineManageServlet extends DispatchServlet {
.append("date_format(empstatedate,'%Y-%m-%d') as empstatedate,frameworkid,empcontaddr,empcontphone,")
.append("empcontmobphone,empfaxnum,date_format(empidbegindate,'%Y-%m-%d') as empidbegindate,")
.append("date_format(empidenddate,'%Y-%m-%d') as empidenddate,")
.append("emppwdexpdate,empemail,sex,date_format(birthday,'%Y-%m-%d') as birthday,departid,nationstate,")
Stringsql="update tm_dtl_property_info e set e.DESTORY_STATE='1',e.DESTORY_DEPARTID=?,e.DESTORY_STAFFID=?,e.DESTORY_DATE=sysdate() ,e.DESTORY_TYPE=? where e.id=?";
Stringsql="update tm_dtl_property_info e set e.DESTORY_STATE='1',e.DESTORY_DEPARTID=?,e.DESTORY_STAFFID=?,e.DESTORY_DATE=now() ,e.DESTORY_TYPE=? where e.id=?";
Stringsql="update tm_dtl_property_info e set e.MAINTAIN_STATE='1',e.WAITER=?,e.REMARK=?,e.MAINTAIN_DATE=sysdate(),e.MAINTAIN_DEPARTID=?,e.MAINTAIN_STAFFID=? where e.id=?";
Stringsql="update tm_dtl_property_info e set e.MAINTAIN_STATE='1',e.WAITER=?,e.REMARK=?,e.MAINTAIN_DATE=now(),e.MAINTAIN_DEPARTID=?,e.MAINTAIN_STAFFID=? where e.id=?";
StringupdateSql="update tr_property_operate set provide_state='2',receive_state='0',recover_state='0',maintain_state='2',extract_state='1',hold_departid=?,hold_staffid=?,hold_date=sysdate() where use_id=?";
StringupdateSql="update tr_property_operate set provide_state='2',receive_state='0',recover_state='0',maintain_state='2',extract_state='1',hold_departid=?,hold_staffid=?,hold_date=now() where use_id=?";
" from tm_dtl_property_maintain m left join tr_property_operate o on m.use_id=o.use_id left join td_indenture i on m.indenture_id=i.indenture_id left join tm_dtl_property_use u "+
StringupdateState="update tr_property_operate set provide_state='1',provide_departid=?,provide_staffid=?,provide_date=sysdate(),hold_departid=?,hold_staffid=?,hold_date=sysdate() where use_id='"+useId+"'";
StringupdateState="update tr_property_operate set provide_state='1',provide_departid=?,provide_staffid=?,provide_date=now(),hold_departid=?,hold_staffid=?,hold_date=now() where use_id='"+useId+"'";
@ -144,7 +144,7 @@ public class PropertyTmaManageServlet extends DispatchServlet {
Stringschool=request.getParameter("school");
Stringqj=request.getParameter("qj");
Stringsj=request.getParameter("sj");
StringBufferquerySql=newStringBuffer("SELECT tma.TMA_ID,d.DEPARTNAME,tma.TMA_STAFFID,date_format(tma.TMA_DATE ,'%Y-%m-%d') as TMA_DATE,c.FRAMEWORKNAME,b.AREADEF,tma.TMA_SECURITY,tma.TERMINAL,tma.PART,TMA_MANAGER from tm_dtl_property_tma tma " +
StringBufferquerySql=newStringBuffer("SELECT tma.TMA_ID,d.DEPARTNAME,tma.TMA_STAFFID,tma.TMA_DATE ,c.FRAMEWORKNAME,b.AREADEF,tma.TMA_SECURITY,tma.TERMINAL,tma.PART,TMA_MANAGER from tm_dtl_property_tma tma " +
"left join tab_area b on tma.AREA_ID=b.AREAID left join tab_framework c on tma.FRAMEWORK_ID=c.FRAMEWORKID"+
" left join tab_department d on tma.TMA_RECOVERDEPARTID=d.DEPARTID where 1=1");
Stringsql="insert into tm_dtl_property_use(framework_id,area_id,use_id,use_staffid,use_departid,use_date,recover_departid,recover_staffid,recover_date,"+
Stringsql="update td_question1 a set q_subject=?,optiona=?, optionb=?,optionc=?,optiond=?,note=?,createdate=date_forma(?,'%Y-%m-%d'),createperson=? where id=?";
Stringsql="update td_question1 a set q_subject=?,optiona=?, optionb=?,optionc=?,optiond=?,note=?,createdate=now(),createperson=? where id=?";
conn=DbConn.getConn();
prep=conn.prepareStatement(sql);
prep.setString(1,qsubject);
prep.setString(2,optiona);
prep.setString(3,optionb);
prep.setString(4,optionc);
prep.setString(5,optiond);
prep.setString(6,note);
prep.setString(7,createdate);
prep.setString(8,createperson);
prep.setString(9,id);
prep.setString(1,id);
prep.setString(2,qsubject);
prep.setString(3,optiona);
prep.setString(4,optionb);
prep.setString(5,optionc);
prep.setString(6,optiond);
prep.setString(7,note);
prep.setString(8,createdate);
prep.setString(9,createperson);
prep.execute();
//oracle数据库手动提交,mysql中 自动提交autoCommit();
conn.commit();
}elseif(tklxtype.equals("2")){
Stringsql="update td_question a set q_subject=?,optiona=?, optionb=?,optionc=?,optiond=?,note=?,createdate=date_forma(?,'%Y-%m-%d'),createperson=? where id=?";
Stringsql="update td_question a set q_subject=?,optiona=?, optionb=?,optionc=?,optiond=?,note=?,createdate=now(),createperson=? where id=?";
sql.append("group by a.use_id ,a.USE_DEPARTID,a.RECOVER_DEPARTID,bb.property_name,a.USE_DATE,a.RECOVER_STAFFID,a.framework_id,a.use_staffid,c.frameworkname,d.areadef");
@ -110,7 +110,7 @@ public class TybookTjManageServlet extends DispatchServlet {
Connectionconn=null;
try{
StringBuffersql=
newStringBuffer("select a.EMPID,a.EMPNAME,tf.FRAMEWORKNAME,ta.AREADEF,td.DEPARTNAME,t.radioResult,t.type,date_format(t.radioResult1,'%Y-%m-%d %H:%i:%s') as Result from tab_examnum t left join tab_employee a on t.empid=a.EMPID ")
newStringBuffer("select a.EMPID,a.EMPNAME,tf.FRAMEWORKNAME,ta.AREADEF,td.DEPARTNAME,t.radioResult,t.type,t.radioResult1 from tab_examnum t left join tab_employee a on t.empid=a.EMPID ")
.append(" left join tab_framework tf on a.FRAMEWORKID=tf.FRAMEWORKID ")
.append(" left join tab_area ta on a.AREAID=ta.AREAID left join tab_department td on a.DEPARTID=td.DEPARTID where 1=1");
@ -941,7 +941,7 @@ public class StatWltjManageServlet extends DispatchServlet {
"left join tm_dtl_property_netinfo b on a.NET_ID=b.NET_ID "+
"left join tab_area cc on cc.areaid=a.area_id "+
"left join tab_framework dd on dd.frameworkid=a.framework_id left join tab_department dept on a.NET_RECOVERDEPARTID=dept.DEPARTID where 1=1 ");
sql.append("group by a.FRAMEWORK_ID,a.AREA_ID,a.NET_Security,a.Terminal,a.NET_RECOVERDEPARTID,b.net_name");
sql.append("group by a.FRAMEWORK_ID,a.AREA_ID,a.NET_Security,a.Terminal,a.NET_RECOVERDEPARTID,b.net_name,a.NET_ID,dd.FRAMEWORKNAME,cc.AREADEF,dept.DEPARTNAME");
StringBuffersql=newStringBuffer("SELECT tma.TMA_ID,d.DEPARTNAME,td.DEPARTNAME as recover_deparname,tma.TMA_STAFFID,date_format(tma.TMA_DATE ,'%Y-%m-%d')as TMA_DATE,c.FRAMEWORKNAME,b.AREADEF,tma.TMA_SECURITY," +
StringBuffersql=newStringBuffer("SELECT tma.TMA_ID,d.DEPARTNAME,td.DEPARTNAME as recover_deparname,tma.TMA_STAFFID,tma.TMA_DATE,c.FRAMEWORKNAME,b.AREADEF,tma.TMA_SECURITY," +
Stringsql="insert into tm_dtl_file_destory(DESTORY_ADDRESS,DESTORY_COUNT,DESTORY_FILENAME,REMARK,DESTORY_DEPARTID,DESTORY_STAFFID,DESTORY_DATE,RECEIVE_ID)"+
Stringsql="update tab_file f set f.file_state='1',f.update_date=sysdate(),f.update_staffid = ?,f.update_departid=?,f.examine_departid=?,f.examine_staffid=?,f.examine_date=sysdate() where f.file_id=?";
Stringsql="update tab_file f set f.file_state='1',f.update_date=now(),f.update_staffid = ?,f.update_departid=?,f.examine_departid=?,f.examine_staffid=?,f.examine_date=now() where f.file_id=?";
StringfileId=request.getParameter("fileId");
try{
conn=DbConn.getConn();
@ -242,10 +242,10 @@ public class FileExtractManageServlet extends DispatchServlet {
StringcountSql="select receive_file_count from tm_dtl_file_receive where provide_id=? and receive_departid=?";
StringupdateSql="update tr_file_operate set extract_state='1',extract_departid=?,extract_staffid=?,extract_date=sysdate(),hold_departid=?,hold_staffid=?,hold_date=sysdate() where operate_id=?";
StringupdateSql="update tr_file_operate set extract_state='1',extract_departid=?,extract_staffid=?,extract_date=now(),hold_departid=?,hold_staffid=?,hold_date=now() where operate_id=?";
Stringsql="insert into tm_dtl_file_extract(extract_id,provide_id,extract_departid,extract_staffid,extract_date,"+
StringcountSql="select borrow_count from tm_dtl_file_borrow where borrow_id=? and borrow_departid=? and borrow_staffid=?";
StringupdateSql="update tr_file_operate set borrow_state='0',recover_state='1',recover_date=sysdate(),recover_departid=?,recover_staffid=?,hold_departid=?,hold_staffid=?,hold_date=sysdate() where operate_id=?";
StringupdateSql="update tr_file_operate set borrow_state='0',recover_state='1',recover_date=now(),recover_departid=?,recover_staffid=?,hold_departid=?,hold_staffid=?,hold_date=now() where operate_id=?";
Stringsql="insert into tm_dtl_file_recover(recover_id,borrow_id,give_departid,give_staffid,give_date,remark,update_departid,update_staffid,update_date,recover_departid,recover_staffid,recover_date,recover_count)"+
Stringsql="update tab_file f set f.file_state='1',f.update_date=sysdate(),f.update_staffid = ?,f.update_departid=?,f.examine_departid=?,f.examine_staffid=?,f.examine_date=sysdate() where f.file_id=?";
Stringsql="update tab_file f set f.file_state='1',f.update_date=now(),f.update_staffid = ?,f.update_departid=?,f.examine_departid=?,f.examine_staffid=?,f.examine_date=now() where f.file_id=?";
StringfileId=request.getParameter("fileId");
try{
conn=DbConn.getConn();
@ -193,9 +193,9 @@ public class FileWriteServlet extends DispatchServlet {
Stringsql="insert into tab_file(file_id,file_name,file_purpose,file_title,"+
StringinsertSql="insert into tr_file_operate(operate_id,file_id,provide_state,receive_state,borrow_state,recover_state,extract_state,destory_state,hold_departid,hold_staffid,hold_date)"+