|
@@ -382,9 +382,9 @@ public class MerchantServiceImpl extends ServiceImpl<MerchantMapper, Merchant> i
|
|
* @return 经营报表信息
|
|
* @return 经营报表信息
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public Map<String,Object> operatReport(){
|
|
|
|
|
|
+ public List<Map<String,Object>> operatReport(){
|
|
Long merchantId = null;
|
|
Long merchantId = null;
|
|
- Map<String,Object> map = new HashMap<>();
|
|
|
|
|
|
+ List<Map<String,Object>> mapList = new ArrayList<>();
|
|
Long userId = SessionContextHolder.getId();
|
|
Long userId = SessionContextHolder.getId();
|
|
Scope scope = com.chelvc.framework.common.util.StringUtils.ifEmpty(SessionContextHolder.getScope(), Scope::parse);
|
|
Scope scope = com.chelvc.framework.common.util.StringUtils.ifEmpty(SessionContextHolder.getScope(), Scope::parse);
|
|
if (scope == Scope.ADMIN) {
|
|
if (scope == Scope.ADMIN) {
|
|
@@ -395,21 +395,8 @@ public class MerchantServiceImpl extends ServiceImpl<MerchantMapper, Merchant> i
|
|
}
|
|
}
|
|
merchantId = merchants.get(0);
|
|
merchantId = merchants.get(0);
|
|
}
|
|
}
|
|
- map = this.baseMapper.operatConditions(merchantId);
|
|
|
|
- List<String> months = new ArrayList<>();
|
|
|
|
- months.add("01");
|
|
|
|
- months.add("02");
|
|
|
|
- months.add("03");
|
|
|
|
- months.add("04");
|
|
|
|
- months.add("05");
|
|
|
|
- months.add("06");
|
|
|
|
- months.add("07");
|
|
|
|
- months.add("08");
|
|
|
|
- months.add("09");
|
|
|
|
- months.add("10");
|
|
|
|
- months.add("11");
|
|
|
|
- months.add("12");
|
|
|
|
|
|
+ mapList = this.baseMapper.operatReport(merchantId);
|
|
|
|
|
|
- return map;
|
|
|
|
|
|
+ return mapList;
|
|
}
|
|
}
|
|
}
|
|
}
|