登录返回行政区划名称

master
徐杰盟 2024-05-30 11:15:49 +08:00
parent 000fd0cddf
commit 00918b0d5a
2 changed files with 4 additions and 2 deletions

View File

@ -249,7 +249,7 @@ public class AddressBookController {
if (StringUtils.isBlank(adcd)){ if (StringUtils.isBlank(adcd)){
adcd = byId.getAdcd(); adcd = byId.getAdcd();
} }
model.setRole(byId.getRole()); model.setRole(user.getRole());
versionsService.saveInfo(model, VersionsType.UPDATE,adcd); versionsService.saveInfo(model, VersionsType.UPDATE,adcd);
boolean data = service.updateById(model); boolean data = service.updateById(model);
if (data) { if (data) {

View File

@ -238,7 +238,9 @@ public class WarningController {
} }
} }
return respList;
return respList.stream().sorted(Comparator.comparing(WarningListVo::getPublishTime).reversed())
.collect(Collectors.toList());
} }
/** /**