|
@@ -32,7 +32,7 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
@Service
|
|
|
public class MealApplicationsServiceImpl extends ServiceImpl<MealApplicationsMapper, MealApplications> implements MealApplicationsService {
|
|
public class MealApplicationsServiceImpl extends ServiceImpl<MealApplicationsMapper, MealApplications> implements MealApplicationsService {
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
|
|
+ @Resource
|
|
|
private HttpServletRequest request;
|
|
private HttpServletRequest request;
|
|
|
@Resource
|
|
@Resource
|
|
|
private MealApplicationsMapper mealApplicationsMapper;
|
|
private MealApplicationsMapper mealApplicationsMapper;
|
|
@@ -278,6 +278,7 @@ public class MealApplicationsServiceImpl extends ServiceImpl<MealApplicationsMap
|
|
|
|
|
|
|
|
mealList.addAll(totalList);
|
|
mealList.addAll(totalList);
|
|
|
|
|
|
|
|
|
|
+
|
|
|
List<Map<String,Object>> records= new ArrayList<>();
|
|
List<Map<String,Object>> records= new ArrayList<>();
|
|
|
if(!StringUtils.isEmpty(deptIds)){
|
|
if(!StringUtils.isEmpty(deptIds)){
|
|
|
String[] split = deptIds.split(",");
|
|
String[] split = deptIds.split(",");
|
|
@@ -286,7 +287,9 @@ public class MealApplicationsServiceImpl extends ServiceImpl<MealApplicationsMap
|
|
|
deptIdList.addAll(branchDepartment);
|
|
deptIdList.addAll(branchDepartment);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ User count = new User();//小计一栏
|
|
|
|
|
+ count.setId("0");
|
|
|
|
|
+ userList.add(count);
|
|
|
|
|
|
|
|
for(User itemUser:userList){
|
|
for(User itemUser:userList){
|
|
|
Map<String,Object> map=new HashMap<>();
|
|
Map<String,Object> map=new HashMap<>();
|
|
@@ -304,7 +307,7 @@ public class MealApplicationsServiceImpl extends ServiceImpl<MealApplicationsMap
|
|
|
|
|
|
|
|
List<Map<String,Object>> personList = new ArrayList<>();
|
|
List<Map<String,Object>> personList = new ArrayList<>();
|
|
|
if (personId!= null){
|
|
if (personId!= null){
|
|
|
- personList = totalList.stream().filter(p -> p.get("userId").equals(personId)).collect(Collectors.toList());
|
|
|
|
|
|
|
+ personList = mealList.stream().filter(p -> p.get("userId").equals(personId)).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
map.put("personList",personList);
|
|
map.put("personList",personList);
|
|
|
|
|
|