Commit d14cfab1 authored by Quxl's avatar Quxl

x

parent 993142f2
......@@ -63,12 +63,15 @@ public class CategoryServiceImpl implements CategoryService {
}catch(Exception e) {
return Rjx.jsonErr().setCode(-1).setMessage(I18NUtils.getMessage(langID, "Msg_Catefory_queryError")).toJson();
}
}
public List<Map<String, Object>> queryCategoryByLevel(String orgNO, String scopeTypeID, Integer level) {
if(level == null) {
level = jdbcTemplate.queryForInt("select GoodsCategoryLevel = isnull((select Convert(int,sValue1) from tSystemCtrl where sCode = 'GoodsCategoryLevel'),0)");
}
String three="select categoryID=sCategoryNO,categoryName=sCategoryDesc,parentID=sUpCategoryNO from tOrgCategory where sOrgNO=? and sScopeTypeID=? and nCategoryLevel= ?";
List<Map<String,Object>> list3=jdbcTemplate.queryForList(three, orgNO, scopeTypeID, level);
return list3;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment