Commit 25fdd2a4 authored by wujiang's avatar wujiang

提交代码

parent e3f34475
...@@ -52,8 +52,8 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> { ...@@ -52,8 +52,8 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
void deleteHhcByNo(String peasantHouseholdNo); void deleteHhcByNo(String peasantHouseholdNo);
List<PeasantHousehold> getInfoByIds(@Param(value = "ids") List<String> ids); List<PeasantHousehold> getInfoByIds(@Param(value = "ids") List<Long> ids);
List<PeasantHousehold> getInfoByIdsHistory(@Param(value = "ids") List<String> ids); List<PeasantHousehold> getInfoByIdsHistory(@Param(value = "ids") List<Long> ids);
/** /**
* 分页查询电站统计 * 分页查询电站统计
......
...@@ -899,13 +899,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -899,13 +899,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
@Override @Override
public List<PeasantHousehold> getInfoByIds(String ids) { public List<PeasantHousehold> getInfoByIds(String ids) {
List<String> strings = Arrays.asList(ids.split(",")); List<String> strings = Arrays.asList(ids.split(","));
return this.getBaseMapper().getInfoByIds(strings); //有bug string有时候会少查出一个
List<Long> list = strings.stream().map(Long::valueOf).collect(Collectors.toList());
return this.getBaseMapper().getInfoByIds(list);
} }
public List<PeasantHousehold> getInfoByIdsHistory(String ids) { public List<PeasantHousehold> getInfoByIdsHistory(String ids) {
List<String> strings = Arrays.asList(ids.split(",")); List<String> strings = Arrays.asList(ids.split(","));
return this.getBaseMapper().getInfoByIdsHistory(strings); List<Long> list = strings.stream().map(Long::valueOf).collect(Collectors.toList());
return this.getBaseMapper().getInfoByIdsHistory(list);
} }
......
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