|
@@ -23,7 +23,7 @@ public class ParamMgrService {
|
|
|
|
|
|
|
|
|
public List<Map<String,Object>> loadAll(){
|
|
|
- return dao.queryForList("select param_name,param_code,param_unit from tzl_param_define where del_if=false order by param_type,param_code");
|
|
|
+ return dao.queryForList("select param_name,param_code,param_unit from tzl_param_define where del_if=false order by param_name");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -41,7 +41,7 @@ public class ParamMgrService {
|
|
|
sqlParams.add("%"+args.get("paramName")+"%");
|
|
|
}
|
|
|
|
|
|
- sql.append(" order by param_type,param_code");
|
|
|
+ sql.append(" order by param_name,param_code");
|
|
|
|
|
|
Object[] sqlArgs=sqlParams.size()>0?sqlParams.toArray():null;
|
|
|
return dao.queryForPagedData(sql.toString(),pageNo, pageSize,ParamDefineVO.class,sqlArgs);
|
|
@@ -75,8 +75,8 @@ public class ParamMgrService {
|
|
|
return dao.update(param, "tzl_param_define", "id")>0;
|
|
|
}
|
|
|
|
|
|
- public List<ParamDefineVO> loadByType(String type){
|
|
|
- return dao.queryForList("select * from tzl_param_define where del_if=false and param_type=? order by param_code", ParamDefineVO.class, type);
|
|
|
+ public List<ParamDefineVO> loadByTable(String table){
|
|
|
+ return dao.queryForList("select * from tzl_param_define where del_if=false and source_table=? order by param_name", ParamDefineVO.class, table);
|
|
|
}
|
|
|
|
|
|
/**
|