Commit e9d326ee authored by hezhuozhi's avatar hezhuozhi

Merge remote-tracking branch 'origin/developer' into developer

parents 788514ae 88714201
......@@ -513,8 +513,8 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
userDataJBDto.setUnallowModify("unallow");
} else {
// 有业务参与不可以编辑
userDataZHDto.setUnallowModify(hasOperationRecords ? "allow" : "unallow");
userDataJBDto.setUnallowModify(hasOperationRecords ? "allow" : "unallow");
userDataZHDto.setUnallowModify(hasOperationRecords ? "unallow" : "allow");
userDataJBDto.setUnallowModify(hasOperationRecords ? "unallow" : "allow");
}
return new UserDataDto( userDataZHDto, userDataJBDto , userDataZZDto);
......
......@@ -201,10 +201,10 @@ public class EnergyAccessServiceImpl implements EnergyAccessService {
});
pageIPage.setTotal(returnList.size());
int endIndex = newCurrent * newPageSize;
if (returnList.size() > endIndex) {
if (finalList.size() > endIndex) {
pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), endIndex));
} else {
pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), returnList.size()));
pageIPage.setRecords(finalList.subList(((newCurrent - 1) * newPageSize), finalList.size()));
}
logger.info("获取片区指标完成情况最终返回结果:{}", pageIPage.getRecords());
return pageIPage;
......
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