From bb5402b75f90cd389d39d6f15f81f5f0c7841141 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Mon, 14 Jan 2019 20:10:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=B5=84=E6=96=99=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E7=82=B9=E5=87=BB=E4=B8=8A=E4=BC=A0=E5=B9=B6=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=85=B3=E9=97=AD=EF=BC=8C=E7=8A=B6=E6=80=81=E5=8F=98?= =?UTF-8?q?=E4=B8=BA=E2=80=98=E5=B7=B2=E6=8F=90=E4=BA=A4=E2=80=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/WEB-INF/etc/jbo/jbo_lease.xml | 24 ++++++++++++++++++- .../com/tenwa/doc/action/DocListAction.java | 6 ++++- 2 files changed, 28 insertions(+), 2 deletions(-) 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 ""; }