update 法规分页查询根据左侧树查询
This commit is contained in:
+4
-2
@@ -643,8 +643,10 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
|
||||
// 处理左侧树code查询
|
||||
String nodeCode = (String) parameterMap.get(FieldCommon.NODE_CODE); // 获取树节点code
|
||||
selectCondition.append(" and id in (select unique_relation_flag from laws_node_relation " +
|
||||
"where node_code like concat('" + nodeCode + "','%'))");
|
||||
if (StringUtils.isNotBlank(nodeCode) && nodeCode.length() > 3) {
|
||||
selectCondition.append(" and id in (select unique_relation_flag from laws_node_relation " +
|
||||
"where node_code like concat('" + nodeCode + "','%'))");
|
||||
}
|
||||
|
||||
//处理列表表头排序
|
||||
String orderByField = (String) parameterMap.get(FieldCommon.ORDER_BY_FIELD);
|
||||
|
||||
-4
@@ -40,10 +40,6 @@ public class LawsDomesticController {
|
||||
@PostMapping(value = "/getCommonPage")
|
||||
public Result<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
// 如果没有选择树节点,则是根节点
|
||||
if (Objects.isNull(parameterMap.get(FieldCommon.NODE_CODE))) {
|
||||
parameterMap.put(FieldCommon.NODE_CODE, "A02");
|
||||
}
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
|
||||
-4
@@ -40,10 +40,6 @@ public class LawsEnterpriseController {
|
||||
@PostMapping(value = "/getCommonPage")
|
||||
public Result<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
// 如果没有选择树节点,则是根节点
|
||||
if (Objects.isNull(parameterMap.get(FieldCommon.NODE_CODE))) {
|
||||
parameterMap.put(FieldCommon.NODE_CODE, "A01");
|
||||
}
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
|
||||
-4
@@ -40,10 +40,6 @@ public class LawsOverseasController {
|
||||
@PostMapping(value = "/getCommonPage")
|
||||
public Result<IPage<Map<String,Object>>> getCommonPage(@RequestBody Map<String,Object> parameterMap) {
|
||||
parameterMap.put(FieldCommon.MODULE, MODULE_VALUE);
|
||||
// 如果没有选择树节点,则是根节点
|
||||
if (Objects.isNull(parameterMap.get(FieldCommon.NODE_CODE))) {
|
||||
parameterMap.put(FieldCommon.NODE_CODE, "A03");
|
||||
}
|
||||
return Result.OK(lawsCommonService.getCommonPage(parameterMap));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user