Commit 2a2634ac authored by 周健威's avatar 周健威

修改pid

parent cda41e2a
......@@ -69,13 +69,27 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM
* @param indexShow 是否首页展示
* @return
*/
public ObjectRestResponse<List<IndustryApplicationType>> getAll(Integer indexShow) {
public ObjectRestResponse<List<IndustryApplicationType>> getAll(Integer indexShow){
return getAll(indexShow, null);
}
/**
* 查询所有首页展示
* @param indexShow 是否首页展示
* @return
*/
public ObjectRestResponse<List<IndustryApplicationType>> getAll(Integer indexShow, Integer pid) {
Example example = new Example(IndustryApplicationType.class);
Example.Criteria criteria = example.createCriteria();
criteria.andEqualTo("isDel", 0).andEqualTo("status", 1);
if (indexShow != null) {
example.createCriteria().andEqualTo("isDel", 0).andEqualTo("status", 1).andEqualTo("indexShow",indexShow);
} else {
example.createCriteria().andEqualTo("isDel", 0).andEqualTo("status", 1);
criteria.andEqualTo("indexShow",indexShow);
}
if(null != pid) {
criteria.andEqualTo("pid",pid);
}
example.orderBy("rank");
return ObjectRestResponse.succ(mapper.selectByExample(example));
}
......
......@@ -24,8 +24,8 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp
@GetMapping(value = "/app/unauth/getAll")
@IgnoreUserToken
public ObjectRestResponse getAll(Integer indexShow) {
return baseBiz.getAll(indexShow);
public ObjectRestResponse getAll(Integer indexShow, Integer pid) {
return baseBiz.getAll(indexShow, pid);
}
......
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