@At
@Ok("json")
//String sql="select distinct type from t_dict";
public NutMap getFaultTypes() {
List<FaultDict> list = dao.query(FaultDict.class, Cnd.where("isDeleted", "=", false).groupBy("type"));
System.out.println();
return NutMap.NEW().addv("typeList", list);
/*Sql sql = Sqls.create("select distinct type from t_dict");
dao.execute(sql);
System.out.println("sql.getList(String.class):"+sql.getList(String.class));
return NutMap.NEW().addv("typeList", sql.getList(String.class));*/
}
提示语句不对