在返回的sql语句中动态拼接
public String getProjectStaff(Query query){
BEGIN();
SELECT("DISTINCT(staffId)");
FROM("cost_note");
WHERE(getQueryWhere(query));
return SQL()+"limit "+query.getOffset()+","+query.getLimit();
}