1.完善罚息减免移除定时任务
This commit is contained in:
parent
51740ea72a
commit
d2bfe30c7a
@ -5,7 +5,6 @@ import java.util.List;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_RENT_INCOME;
|
||||
import jbo.app.tenwa.calc.VI_LC_RENT_PLAN;
|
||||
import jbo.com.tenwa.lease.carbrand.lb_automatic_compensatory;
|
||||
import jbo.com.tenwa.lease.comm.CONFIGURATE;
|
||||
|
||||
import org.quartz.Job;
|
||||
@ -18,9 +17,6 @@ import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.tenwa.reckon.util.UUIDUtil;
|
||||
|
||||
|
||||
@ -42,7 +38,8 @@ public class ReductionPenaltyRemove implements Job{
|
||||
for(BizObject lriBo:lriBoList){
|
||||
String planId = lriBo.getAttribute("plan_id").toString();
|
||||
BizObject clrpBo= JBOFactory.getBizObjectManager(VI_LC_RENT_PLAN.CLASS_NAME, tx).createQuery("id=:id and (rent_over>0 or penalty_over>0)").setParameter("id", planId).getSingleResult(false);
|
||||
if(clrpBo.getAttribute("id")!=null){
|
||||
if(clrpBo !=null ){
|
||||
System.out.println("罚息减免撤销的plan_id:"+lriBo.getAttribute("PLAN_ID").toString());
|
||||
BizObject boLRi = bomLri.newObject();
|
||||
boLRi.setAttributeValue("ID", UUIDUtil.getUUID());
|
||||
boLRi.setAttributeValue("PROJECT_ID", lriBo.getAttribute("PROJECT_ID").toString());
|
||||
@ -74,8 +71,23 @@ public class ReductionPenaltyRemove implements Job{
|
||||
}
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
if (tx != null) {
|
||||
try {
|
||||
tx.rollback();
|
||||
tx=null;
|
||||
} catch (JBOException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
}finally{
|
||||
try {
|
||||
if(tx !=null){
|
||||
|
||||
tx.commit();
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user