设置全局scenario值
This commit is contained in:
parent
d0789c5a7c
commit
357bb500f2
|
|
@ -102,6 +102,12 @@ public class ScenarioServiceImpl implements ScenarioService {
|
||||||
staffList = fightpowerstaffService.queryByOrgIds(orgList);
|
staffList = fightpowerstaffService.queryByOrgIds(orgList);
|
||||||
if(CollectionUtil.isEmpty(staffList)){
|
if(CollectionUtil.isEmpty(staffList)){
|
||||||
staffList = new ArrayList<>();
|
staffList = new ArrayList<>();
|
||||||
|
}else{
|
||||||
|
int sum = staffList.stream()
|
||||||
|
.mapToInt(Fightpowerstaff::getNumber)
|
||||||
|
.sum();
|
||||||
|
scenarioInfo.getPerson().setCurrent(sum);
|
||||||
|
scenarioInfo.getPerson().setTotal(sum);
|
||||||
}
|
}
|
||||||
//获取物资信息
|
//获取物资信息
|
||||||
suppliers = orgSupplierService.selectByOrgIds(orgList);
|
suppliers = orgSupplierService.selectByOrgIds(orgList);
|
||||||
|
|
@ -248,6 +254,12 @@ public class ScenarioServiceImpl implements ScenarioService {
|
||||||
staffList = fightpowerstaffService.queryByOrgIds(orgList);
|
staffList = fightpowerstaffService.queryByOrgIds(orgList);
|
||||||
if(CollectionUtil.isEmpty(staffList)){
|
if(CollectionUtil.isEmpty(staffList)){
|
||||||
staffList = new ArrayList<>();
|
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);
|
suppliers = orgSupplierService.selectByOrgIds(orgList);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user