|
@ -746,23 +746,23 @@ public class ArticleDao {
|
|
|
StringBuffer param = new StringBuffer();
|
|
|
StringBuffer pageParam = new StringBuffer();
|
|
|
if (StringUtil.isNotEmpty(vo.getFirstLevelCategoryId())) {
|
|
|
param.append(" and FirstLevelCategoryId = ? ");
|
|
|
param.append(" and m.FirstLevelCategoryId = ? ");
|
|
|
sql.addParamValue(vo.getFirstLevelCategoryId());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getSecondLevelCategoryId())) {
|
|
|
param.append(" and SecondLevelCategoryId = ? ");
|
|
|
param.append(" and m.SecondLevelCategoryId = ? ");
|
|
|
sql.addParamValue(vo.getSecondLevelCategoryId());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getStartTime())) {
|
|
|
param.append(" and InsertTime >= ? ");
|
|
|
param.append(" and m.InsertTime >= ? ");
|
|
|
sql.addParamValue(vo.getStartTime());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getEndTime())) {
|
|
|
param.append(" and InsertTime <= ? ");
|
|
|
param.append(" and m.InsertTime <= ? ");
|
|
|
sql.addParamValue(vo.getEndTime());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getArticlelevel())) {
|
|
|
param.append(" and Articlelevel = ? ");
|
|
|
param.append(" and m.Articlelevel = ? ");
|
|
|
sql.addParamValue(vo.getArticlelevel());
|
|
|
}
|
|
|
if (vo.getIsAuthentication() != null ) {
|
|
@ -791,27 +791,27 @@ public class ArticleDao {
|
|
|
StringBuffer param2 = new StringBuffer();
|
|
|
StringBuffer pageParam = new StringBuffer();
|
|
|
if (StringUtil.isNotEmpty(vo.getFirstLevelCategoryId())) {
|
|
|
param.append(" and FirstLevelCategoryId = ? ");
|
|
|
param.append(" and m.FirstLevelCategoryId = ? ");
|
|
|
sql.addParamValue(vo.getFirstLevelCategoryId());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getSecondLevelCategoryId())) {
|
|
|
param.append(" and SecondLevelCategoryId = ? ");
|
|
|
param.append(" and m.SecondLevelCategoryId = ? ");
|
|
|
sql.addParamValue(vo.getSecondLevelCategoryId());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getStartTime())) {
|
|
|
param.append(" and InsertTime >= ? ");
|
|
|
param.append(" and m.InsertTime >= ? ");
|
|
|
sql.addParamValue(vo.getStartTime());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getEndTime())) {
|
|
|
param.append(" and InsertTime <= ? ");
|
|
|
param.append(" and m.InsertTime <= ? ");
|
|
|
sql.addParamValue(vo.getEndTime());
|
|
|
}
|
|
|
if (vo.getIsAuthentication() != null ) {
|
|
|
param.append(" and IsAuthentication = ? ");
|
|
|
param.append(" and m.IsAuthentication = ? ");
|
|
|
sql.addParamValue(vo.getIsAuthentication());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getOperatorRoleLevel())) {
|
|
|
param.append(" and OperatorRoleLevel = ? ");
|
|
|
param.append(" and m.OperatorRoleLevel = ? ");
|
|
|
sql.addParamValue(vo.getOperatorRoleLevel());
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getArticleTitle())) {
|
|
@ -819,7 +819,7 @@ public class ArticleDao {
|
|
|
sql.addParamValue("%"+vo.getArticleTitle()+"%");
|
|
|
}
|
|
|
if (StringUtil.isNotEmpty(vo.getOperatorRoleCode())) {
|
|
|
param.append(" and OperatorRoleCode ='"+vo.getOperatorRoleCode()+"' ");
|
|
|
param.append(" and m.OperatorRoleCode ='"+vo.getOperatorRoleCode()+"' ");
|
|
|
}
|
|
|
sql.addVar("@Condition", param.toString());
|
|
|
sql.addVar("@PageParam", pageParam.toString());
|