设置全局scenario值

This commit is contained in:
wangwenhua 2025-09-21 02:42:11 +08:00
parent d0789c5a7c
commit 357bb500f2

View File

@ -102,6 +102,12 @@ public class ScenarioServiceImpl implements ScenarioService {
staffList = fightpowerstaffService.queryByOrgIds(orgList);
if(CollectionUtil.isEmpty(staffList)){
staffList = new ArrayList<>();
}else{
int sum = staffList.stream()
.mapToInt(Fightpowerstaff::getNumber)
.sum();
scenarioInfo.getPerson().setCurrent(sum);
scenarioInfo.getPerson().setTotal(sum);
}
//获取物资信息
suppliers = orgSupplierService.selectByOrgIds(orgList);
@ -248,6 +254,12 @@ public class ScenarioServiceImpl implements ScenarioService {
staffList = fightpowerstaffService.queryByOrgIds(orgList);
if(CollectionUtil.isEmpty(staffList)){
staffList = new ArrayList<>();
}else{
int sum = staffList.stream()
.mapToInt(Fightpowerstaff::getNumber)
.sum();
scenarioInfo.getJbxx().getPerson().setCurrent(sum);
scenarioInfo.getJbxx().getPerson().setTotal(sum);
}
//获取物资信息
suppliers = orgSupplierService.selectByOrgIds(orgList);