|
@@ -18,21 +18,23 @@ public class JtBusinessServiceWithCategoryMapperImpl extends BaseMybatisDao<Jt
|
|
|
@Override
|
|
@Override
|
|
|
public Pagination<JtBusinessCategory> getCategoryListByCondition(JtBusinessCategory jtBusinessCategory,Integer pageNo,Integer pageSize) {
|
|
public Pagination<JtBusinessCategory> getCategoryListByCondition(JtBusinessCategory jtBusinessCategory,Integer pageNo,Integer pageSize) {
|
|
|
|
|
|
|
|
- Map<String, Object>params=disposeCategoryParams(jtBusinessCategory.getName(), jtBusinessCategory.getLayer());
|
|
|
|
|
|
|
+ Map<String, Object>params=disposeCategoryParams(jtBusinessCategory.getName(), jtBusinessCategory.getLayer(),jtBusinessCategory.getModule());
|
|
|
if(pageNo==null ||pageNo<1)pageNo=1;
|
|
if(pageNo==null ||pageNo<1)pageNo=1;
|
|
|
if(pageSize==null ||pageSize<1)pageSize=10;
|
|
if(pageSize==null ||pageSize<1)pageSize=10;
|
|
|
// TODO Auto-generated method stub
|
|
// TODO Auto-generated method stub
|
|
|
return (Pagination<JtBusinessCategory>)findPage("getCategoryListByCondition", "getCategoryCountByCondition", params, pageNo, pageSize);
|
|
return (Pagination<JtBusinessCategory>)findPage("getCategoryListByCondition", "getCategoryCountByCondition", params, pageNo, pageSize);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private Map<String, Object> disposeCategoryParams(String name,Integer layer ) {
|
|
|
|
|
|
|
+ private Map<String, Object> disposeCategoryParams(String name,Integer layer ,Integer module) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
|
|
|
|
|
if (layer!=null) {
|
|
if (layer!=null) {
|
|
|
params.put("layer", layer);
|
|
params.put("layer", layer);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (module!=null) {
|
|
|
|
|
+ params.put("module", module);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(name)) {
|
|
if (StringUtils.isNotBlank(name)) {
|