String select = "select distinct project.*,(select name from syscode where id = express.order_status) as orderStatus ";
String sqlExceptSelect = " from operator,project left join express on express.express_number = project.express_number where project.isdeleted = 0 and project.id = operator.operator_id and operator.operator_type = '"+OperatorType.PROJECT_ADD+"' and operator.operator_user_id = "+userId+" and project.status = '"+OrderState.OPEN+"' ";
String totalRowSql = "select count(*) " + sqlExceptSelect + where;
where +=" order by project.id desc";
log.info("新建项目---查询的sql为:" + select + sqlExceptSelect + where);
return Db.paginateByFullSql(pageNumber, pageSize, totalRowSql, select + sqlExceptSelect + where, paras.toArray());