tabinfo搜索条件修复
This commit is contained in:
parent
0dea1b6ae4
commit
8e6bd9e90a
|
|
@ -39,8 +39,10 @@ public class LevelServiceImpl extends Service implements LevelService {
|
|||
|
||||
@Override
|
||||
public Map<String, Object> listPage(Map<String, Object> params) {
|
||||
System.out.println(params);
|
||||
OrganizationWeaTable<LevelTableVO> table = new OrganizationWeaTable<>(user, LevelTableVO.class);
|
||||
String sqlWhere = buildSqlWhere(params);
|
||||
System.out.println(sqlWhere);
|
||||
table.setSqlwhere(sqlWhere);
|
||||
WeaResultMsg result = new WeaResultMsg(false);
|
||||
result.putAll(table.makeDataResult());
|
||||
|
|
@ -166,10 +168,10 @@ public class LevelServiceImpl extends Service implements LevelService {
|
|||
if (StringUtils.isNotBlank(schemeId)) {
|
||||
sqlWhere += " AND t.scheme_id " + dbType.like(schemeId);
|
||||
}
|
||||
String viewCondition = (String) params.get("viewcondition");
|
||||
String viewCondition = (String) params.get("viewCondition");
|
||||
// -1:全部、0:启用、1:禁用
|
||||
if (StringUtils.isNotBlank(viewCondition) && !"-1".equalsIgnoreCase(viewCondition)) {
|
||||
sqlWhere += " AND t.forbidden_tag = '" + schemeId + "'";
|
||||
sqlWhere += " AND t.forbidden_tag = '" + viewCondition + "'";
|
||||
}
|
||||
return sqlWhere;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue