From a22477de19a9f176cb465d89beea9d5746968f08 Mon Sep 17 00:00:00 2001 From: 58261 <58261@DESKTOP-AAAC71Q> Date: Wed, 17 Oct 2018 17:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=82=AC=E6=94=B6=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tenwa/apzl/comm/As_saveForCuiJin.java | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 src_tenwa/com/tenwa/apzl/comm/As_saveForCuiJin.java diff --git a/src_tenwa/com/tenwa/apzl/comm/As_saveForCuiJin.java b/src_tenwa/com/tenwa/apzl/comm/As_saveForCuiJin.java new file mode 100644 index 000000000..baa1deb49 --- /dev/null +++ b/src_tenwa/com/tenwa/apzl/comm/As_saveForCuiJin.java @@ -0,0 +1,82 @@ +package com.tenwa.apzl.comm; + +import jbo.com.tenwa.lease.comm.DAY_DISTRIBUTE; + +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.BizObjectQuery; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.jbo.JBOTransaction; + +public class As_saveForCuiJin { + + private String a; + private String b; + private String c; + private String d; + private String e; + + + public String getA() { + return a; + } + + + public void setA(String a) { + this.a = a; + } + + + public String getB() { + return b; + } + + + public void setB(String b) { + this.b = b; + } + + + public String getC() { + return c; + } + + + public void setC(String c) { + this.c = c; + } + + + public String getD() { + return d; + } + + + public void setD(String d) { + this.d = d; + } + + + public String getE() { + return e; + } + + + public void setE(String e) { + this.e = e; + } + + + public String As_save(JBOTransaction tx)throws Exception{ + + BizObjectManager bo=JBOFactory.getBizObjectManager(DAY_DISTRIBUTE.CLASS_NAME); + tx.join(bo); + + BizObjectQuery bq=bo.createQuery("update O set begin_day='"+this.getA()+"',end_day='"+this.getB()+"' where role='轻催组'"); + bq.executeUpdate(); + BizObjectQuery bq2=bo.createQuery("update O set begin_day='"+this.getC()+"',end_day='"+this.getD()+"' where role='中催组'"); + bq2.executeUpdate(); + BizObjectQuery bq3=bo.createQuery("update O set begin_day='"+this.getE()+"',end_day='0' where role='重催组'"); + bq3.executeUpdate(); + return "success"; + } +}