posts - 325,  comments - 25,  trackbacks - 0
StringBuffer buf = new StringBuffer();
   buf
     .append("select obj from  StoreOrder obj Where 1=1");
   if (obj.getAuditId()!= null) {
    buf.append(" and obj.auditId = ? ");
   }
   if (obj.getDeleteFlag() != null) {
    buf.append(" and obj.deleteFlag = ? ");
   }
   if (obj.getOrderId() != null) {
    buf.append(" and obj.orderId = ? ");
   }
   if (obj.getPayType() != null) {
    buf.append(" and obj.payType = ? ");
   }
   if (obj.getState() != null) {
    buf.append(" and obj.state = ? ");
   }
   if (obj.getUserId() != null) {
    buf.append(" and obj.userId = ? ");
   }
   if (obj.getPayer() != null) {
    buf.append(" and obj.payer like lower(?) ");
   }
   buf.append(" order by obj.orderId desc ");
posted on 2008-08-31 08:16 长春语林科技 阅读(156) 评论(0)  编辑  收藏 所属分类: java

只有注册用户登录后才能发表评论。


网站导航:
 
<2008年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

 

长春语林科技欢迎您!

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜