This commit is contained in:
zhouyahui 2018-08-01 09:22:31 +08:00
parent e55f5c9836
commit 810bde88ba

View File

@ -24,7 +24,8 @@ public class AutoBuckle implements Job{
String plan_date = DateAssistant.getToday();
try {
tx = JBOFactory.createJBOTransaction();
List<BizObject> bos = JBOFactory.getBizObjectManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME, tx).createQuery("O.COLLECT_STATUS IN ('未收款', '部分收款') and O.PLAN_DATE <= '"+plan_date+"' and O.BATCH_STATUS<>'process' and (O.rent<>'' or O.rent<>'0' or O.rent<>'0.0')").getResultList(true);
//and (O.rent<>'' or O.rent<>'0' or O.rent<>'0.0')
List<BizObject> bos = JBOFactory.getBizObjectManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME, tx).createQuery("O.COLLECT_STATUS IN ('未收款', '部分收款') and O.PLAN_DATE <= '"+plan_date+"' and O.BATCH_STATUS<>'process' ").getResultList(true);
StringBuffer ids = new StringBuffer();
for (BizObject bo : bos) {
ids.append(bo.getAttribute("id").getString()+"@");