feat(87795): 首页-高级检索-全部-最多展示十条数据
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ public interface LawsHomeSearchMapper extends BaseMapper<LawsHomeNormalSearchHis
|
||||
* @param queryConditionByEnterprise
|
||||
* @return
|
||||
*/
|
||||
IPage<Map<String, Object>> getAdvancedSearchAll(IPage page,
|
||||
IPage<Map<String, Object>> getAdvancedSearchAll(IPage<Object> page,
|
||||
@Param("selectFieldByDomestic") String selectFieldByDomestic,
|
||||
@Param("selectFieldByEnterprise") String selectFieldByEnterprise,
|
||||
@Param("queryConditionByDomestic") String queryConditionByDomestic,
|
||||
|
||||
+15
-5
@@ -1527,10 +1527,10 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
|
||||
Map<String, Object> parameterMapByEnterprise = new HashMap<>(parameterMap);
|
||||
|
||||
// 显示字段
|
||||
String selectFieldByDomestic = "standard_number, standard_name, null, " +
|
||||
"implementation_date, new_product_impl_date, new_auth_impl_date, create_time, 1 resource_type";
|
||||
String selectFieldByEnterprise = "standard_number, standard_name, " +
|
||||
"release_date, implementation_date, null, null, create_time, 3 resource_type";
|
||||
String selectFieldByDomestic = "standard_number, standard_name, null, implementation_date, " +
|
||||
"new_product_impl_date, new_auth_impl_date, standard_state, create_time, 1 resource_type";
|
||||
String selectFieldByEnterprise = "standard_number, standard_name, release_date, implementation_date, " +
|
||||
"null, null, standard_state, create_time, 3 resource_type";
|
||||
|
||||
// 构建搜索条件
|
||||
String orderBy = "order by create_time desc";
|
||||
@@ -1544,12 +1544,22 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
|
||||
// 分页参数
|
||||
long pageNo = Long.parseLong(String.valueOf(parameterMap.get("pageNo")));
|
||||
long pageSize = Long.parseLong(String.valueOf(parameterMap.get("pageSize")));
|
||||
IPage page = new Page(pageNo, pageSize);
|
||||
IPage<Object> page = new Page<>(pageNo, pageSize);
|
||||
|
||||
// 查询数据
|
||||
IPage<Map<String, Object>> advancedSearchAll =
|
||||
lawsHomeSearchMapper.getAdvancedSearchAll(page, selectFieldByDomestic, selectFieldByEnterprise,
|
||||
queryConditionByDomestic, queryConditionByEnterprise);
|
||||
|
||||
// 标准状态翻译
|
||||
for (Map<String, Object> data : advancedSearchAll.getRecords()) {
|
||||
String resourceType = String.valueOf(data.get("resource_type"));
|
||||
String standardState = String.valueOf(data.get(STANDARD_STATE));
|
||||
String code = LawsHomeSearchCommon.LAWS_DOMESTIC_STANDARD.equals(resourceType)
|
||||
? STANDARD_STATE : ENTERPRISE_STANDARD_STATE;
|
||||
String dictText = sysDictService.queryDictTextByKey(code, standardState);
|
||||
data.put("standard_state_dictText", dictText);
|
||||
}
|
||||
return Result.OK(advancedSearchAll);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -66,6 +66,6 @@ public class LawsHomeAdvancedSearchExportExcelVO implements Serializable {
|
||||
* 标准状态
|
||||
*/
|
||||
@ApiModelProperty(value = "标准状态")
|
||||
@Excel(name = "标准状态", width = 20, dicCode = "standard_state")
|
||||
private String standardState;
|
||||
@Excel(name = "标准状态", width = 20)
|
||||
private String standardStateDictText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user