diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml index 99020edf2..8f0dea2a1 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml @@ -3917,7 +3917,7 @@ - + @@ -4919,6 +4919,28 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src_core/com/tenwa/doc/action/DocListAction.java b/src_core/com/tenwa/doc/action/DocListAction.java index fc7ec4106..8d207629c 100644 --- a/src_core/com/tenwa/doc/action/DocListAction.java +++ b/src_core/com/tenwa/doc/action/DocListAction.java @@ -92,7 +92,11 @@ public class DocListAction { //ҵ״̬ public String updateBussinessCheck(JBOTransaction tx) throws JBOException{ BizObjectManager bm=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME); - bm.createQuery("update O set BUSINESS_CHECK=:BussinessCheck where id=:id").setParameter("BussinessCheck", this.BussinessCheck).setParameter("id", this.library_id).executeUpdate(); + BizObjectManager bm1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME); + int count=bm1.createQuery("select * from O where library_id=:libid and deleteed is null").setParameter("libid", this.library_id).getTotalCount(); + if(count>0){ + bm.createQuery("update O set BUSINESS_CHECK=:BussinessCheck where id=:id").setParameter("BussinessCheck", this.BussinessCheck).setParameter("id", this.library_id).executeUpdate(); + } tx.commit(); return ""; }