📄 userhistoryqueryvalue.java
字号:
package com.gctech.sms.voice.dao; /* author:lijz@gctech.com.cn */ public class UserHistoryQueryValue extends UserHistoryValueObject { //-----Codes below generated by dao public UserHistoryQueryValue() { super(); } public String toSql() { StringBuffer sql = new StringBuffer() ; if(this.getId()!=null){ sql.append(" and A.ID=").append(this.getId()); } if(this.getUserId()!=null){ sql.append(" and A.USER_ID=").append(this.getUserId()); } if(this.getVoiceId()!=null){ sql.append(" and A.VOICE_ID=").append(this.getVoiceId()); } if(this.getConsumeDate()!=null){ sql.append(" and A.CONSUME_DATE=to_date('"+(this.getConsumeDate().getYear()+1900)+"/"+(this.getConsumeDate().getMonth()+1)+"/"+this.getConsumeDate().getDate()+"','YYYY/MM/DD')"); } if(this.getType()!=null){ sql.append(" and A.TYPE=").append(this.getType()); } if(this.getPrice()!=null){ sql.append(" and A.PRICE=").append(this.getPrice()); } return sql.toString(); } //-----Codes above generated by dao }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -