add 获取高级查询条件
This commit is contained in:
+7
@@ -199,4 +199,11 @@ public interface ILawsCommonService {
|
||||
* @Description: 标准文本弹框
|
||||
**/
|
||||
List<SarFileSplitInfoEO> getSplitsByStandardNumber(String standardNumber);
|
||||
|
||||
/**
|
||||
* 获取高级检索条件
|
||||
* @param moduleValue
|
||||
* @return
|
||||
*/
|
||||
List<LawsTag> getAdvancedQueryCondition(String moduleValue);
|
||||
}
|
||||
|
||||
+18
@@ -2204,6 +2204,24 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
return sarFileSplitInfoEOList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<LawsTag> getAdvancedQueryCondition(String module) {
|
||||
// 获取操作语言
|
||||
LanguageEnum language = MessageUtils.getLanguage();
|
||||
// 获取要操作的表名
|
||||
String tableName = TableNameEnum.getTableName(module);
|
||||
// 获取全部字段
|
||||
List<LawsTag> fieldList = lawsCommonMapper.getFieldList(tableName);
|
||||
fieldList = fieldList.stream().filter(lawsTag -> YesOrNoEnum.YES.getInteger()
|
||||
.equals(lawsTag.getIsShowSearch())).collect(Collectors.toList());
|
||||
for (LawsTag lawsTag : fieldList) {
|
||||
if (LanguageEnum.EN.equals(language)) {
|
||||
lawsTag.setDbFieldTxt(lawsTag.getDbFieldEnName());
|
||||
}
|
||||
}
|
||||
return fieldList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建企标导入模板的Workbook
|
||||
*
|
||||
|
||||
+8
@@ -97,6 +97,14 @@ public class LawsDomesticController {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-获取高级查询条件")
|
||||
@ApiOperation(value="国内法规标准-获取高级查询条件", notes="国内法规标准-获取高级查询条件")
|
||||
@GetMapping(value = "getAdvancedQueryCondition")
|
||||
@ApiOperationSupport(order = 5)
|
||||
public Result<List<LawsTag>> getAdvancedQueryCondition() {
|
||||
return Result.OK(lawsCommonService.getAdvancedQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内法规标准-获取表单模型")
|
||||
@ApiOperation(value="国内法规标准-获取表单模型", notes="国内法规标准-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
|
||||
+8
@@ -116,6 +116,14 @@ public class LawsEnterpriseController {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-获取高级查询条件")
|
||||
@ApiOperation(value="企业法规标准-获取高级查询条件", notes="企业法规标准-获取高级查询条件")
|
||||
@GetMapping(value = "getAdvancedQueryCondition")
|
||||
@ApiOperationSupport(order = 5)
|
||||
public Result<List<LawsTag>> getAdvancedQueryCondition() {
|
||||
return Result.OK(lawsCommonService.getAdvancedQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业法规标准-获取表单模型")
|
||||
@ApiOperation(value="企业法规标准-获取表单模型", notes="企业法规标准-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
|
||||
+8
@@ -97,6 +97,14 @@ public class LawsOverseasController {
|
||||
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-获取高级查询条件")
|
||||
@ApiOperation(value="海外法规标准-获取高级查询条件", notes="海外法规标准-获取高级查询条件")
|
||||
@GetMapping(value = "getAdvancedQueryCondition")
|
||||
@ApiOperationSupport(order = 5)
|
||||
public Result<List<LawsTag>> getAdvancedQueryCondition() {
|
||||
return Result.OK(lawsCommonService.getAdvancedQueryCondition(MODULE_VALUE));
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外法规标准-获取表单模型")
|
||||
@ApiOperation(value="海外法规标准-获取表单模型", notes="海外法规标准-获取表单模型")
|
||||
@GetMapping(value = "getFormModel")
|
||||
|
||||
Reference in New Issue
Block a user