This commit is contained in:
xiezhiwen 2018-10-17 17:28:34 +08:00
commit 777c2aa26f

View File

@ -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";
}
}