@SuppressWarnings("unchecked")
public List<LogisticsOrderType> getAllLogisticsOrderType() {
String sql = "from LogisticsOrderType t where t.status='A' and t.warehouseUsed=null";
return hibernateTemplate.find(sql + " order by t.id asc");
}
	List<LogisticsOrderType> olist = logisticsOrdersTypeService.getAllLogisticsOrderType();
List<LogisticsOrderType> nlist = new ArrayList<LogisticsOrderType>();
if (olist != null && olist.size() > 0) {
for (LogisticsOrderType logisticsOrderType : olist) {
if (logisticsOrderType.getTypeName() != null
&& (logisticsOrderType.getTypeCode().contains("bjfh01"))||(logisticsOrderType.getTypeCode().contains("bjfh02"))) {
nlist.add(logisticsOrderType);
}
}
}

怎么讲感觉写得是有点烦了,大概意思是是获得一个List 再筛选里面的item 再放入一个list中

最新文章

  1. 关于Java数组
  2. C++ STL之查找算法
  3. weblogic目录结构
  4. Jquery 常用总结
  5. 查找及修改日程管理系统中的bug
  6. Diagnostics: File file:/tmp/spark-95cbb984-da28-4784-8b99-eb83ad74437f/__spark_libs__1421840316395076250.zip does not exist
  7. FPGA-VHDL课堂学习笔记*01
  8. 汇编语言--微机CPU的指令系统(五)(循环指令)
  9. 虚拟环境jupyter notebook使用【virtualenv环境】
  10. fft ocean注解
  11. PAT 乙级 1072 开学寄语(20 分)
  12. 让maven使用国内镜像和archetypeCatalog
  13. 《shiro框架》
  14. 【JDK1.8】JUC——ReentrantLock
  15. DevExpress TextEdit Focus问题
  16. 我的zsh 配置
  17. java知识回顾
  18. 3DMax脚本插件--改动材质&amp;amp;贴图名称
  19. java常见错误--Access restriction: The type BASE64Encoder
  20. 洛谷P1434 滑雪

热门文章

  1. 浅谈web前端性能优化
  2. Codeforces 669D Little Artem and Dance (胡搞 + 脑洞)
  3. MyEclipse常用快捷键及快捷键大全
  4. 125 Valid Palindrome 验证回文字符串
  5. 150 Evaluate Reverse Polish Notation 逆波兰表达式求值
  6. 【学习笔记】深入理解js闭包
  7. canvas防画图工具
  8. Scala 学习记录(一)
  9. JavaScript 的垃圾回收与内存泄露
  10. 解决jenkins插件列表为空的问题