添加补充查询条件,防止查询不到为null的结果

This commit is contained in:
jianghongdong 2018-08-02 11:35:06 +08:00
parent 5ff5998dec
commit f5f79a9a1e

View File

@ -26,7 +26,7 @@ public class AutoBuckle implements Job{
try {
tx = JBOFactory.createJBOTransaction();
//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);
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' or O.BATCH_STATUS is null)").getResultList(true);
StringBuffer ids = new StringBuffer();
if(bos.size()>0){
for (BizObject bo : bos) {