标签:std rac ISE criteria 日期 info isnull 等于 date
if (StringUtils.isEmpty(date)) {
date = DateUtil.Date2String(new Date(), DateUtil.YYYYMMDD);
}
StkInnerStockInfoExample example = new StkInnerStockInfoExample();
StkInnerStockInfoExample.Criteria createCriteria = example.createCriteria();
createCriteria.andDelistDateIsNull();
createCriteria.andContractTypeEqualTo(0);
createCriteria.andListDateLessThanOrEqualTo(date);
StkInnerStockInfoExample.Criteria createCriteria2 = example.createCriteria();
//createCriteria2.andDelistDateGreaterThanOrEqualTo(date);
createCriteria2.andDelistDateGreaterThan(date);//不能等于,退市那个日期是摘牌日
createCriteria.andContractTypeEqualTo(0);
createCriteria2.andListDateLessThanOrEqualTo(date);
example.or(createCriteria2);
return stkInnerStockInfoMapper.selectByExample(example);
标签:std rac ISE criteria 日期 info isnull 等于 date
原文地址:https://www.cnblogs.com/redBack/p/12956809.html