feat: There is no way the Buss advanced query

This commit is contained in:
super_liu
2021-08-23 17:48:44 +08:00
parent 38f4fc3674
commit 316fde8563
@@ -207,8 +207,6 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
page.setAdvanceSearchStr(null); page.setAdvanceSearchStr(null);
} }
} }
}
page.setOrderBy("SAR_BUSSIONESS_STAND.issue_time is null,SAR_BUSSIONESS_STAND.issue_time desc,SAR_BUSSIONESS_STAND.id");
List<String> getMenuIdList = new ArrayList<>(); List<String> getMenuIdList = new ArrayList<>();
if(userId != null){ if(userId != null){
getMenuIdList= tsUserService.getResourceUserId(userId); getMenuIdList= tsUserService.getResourceUserId(userId);
@@ -227,16 +225,13 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
if (ids != null && !ids.isEmpty()) { if (ids != null && !ids.isEmpty()) {
page.setMenuAllChildrenIdList(ids); page.setMenuAllChildrenIdList(ids);
} }
if (StringUtils.isNotBlank(page.getAdvanceSearchVOStr())) {
List<SarAdvanceSearchVO> searchList = com.alibaba.fastjson.JSONObject.parseArray(page.getAdvanceSearchVOStr(), SarAdvanceSearchVO.class);
String advanceStr = SarAdvanceSearchUtil.createSql(searchList);
if (StringUtils.isNotBlank(advanceStr)) {
page.setAdvanceSearchStr(advanceStr);
} else {
page.setAdvanceSearchStr(null);
}
} }
page.setOrderBy("SAR_BUSSIONESS_STAND.issue_time is null,SAR_BUSSIONESS_STAND.issue_time desc,SAR_BUSSIONESS_STAND.id");
if(userId != null){
page.setUserId(userId); page.setUserId(userId);
}else {
page.setUserId(LoginUserUtil.getUserId());
}
List<SarBussionessStand> getList = sarBussionessStandEODao.getSarBussionessStand(page); List<SarBussionessStand> getList = sarBussionessStandEODao.getSarBussionessStand(page);
attrInfoShow(getList); attrInfoShow(getList);
return getList; return getList;