|
|
|
@ -24,6 +24,7 @@ public class BoardReportServiceImpl implements IBoardReportService {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 看板通用接口List
|
|
|
|
|
*
|
|
|
|
|
* @param paramMap
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
@ -32,9 +33,49 @@ public class BoardReportServiceImpl implements IBoardReportService {
|
|
|
|
|
return boardReportMapper.generalInterfaceList(paramMap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 首页接口
|
|
|
|
|
*
|
|
|
|
|
* @param paramMap
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public HashMap<String, Object> homePageInterface(HashMap<String, String> paramMap) {
|
|
|
|
|
|
|
|
|
|
HashMap<String, Object> result = new HashMap<>();
|
|
|
|
|
List<HashMap<String, Object>> todayOrderList = boardReportMapper.homePageInterface(paramMap);
|
|
|
|
|
result.put("todayOrderList", todayOrderList);
|
|
|
|
|
if (todayOrderList.size() > 0) {
|
|
|
|
|
Long planOrderSum = 0L;
|
|
|
|
|
Long prodOrderSum = 0L;
|
|
|
|
|
Long planProductSum = 0L;
|
|
|
|
|
Long compProductSum = 0L;
|
|
|
|
|
for (HashMap<String, Object> map : todayOrderList) {
|
|
|
|
|
planOrderSum++;
|
|
|
|
|
if (Integer.parseInt(String.valueOf(map.get("COMPLETE_AMOUNT"))) > 0) {
|
|
|
|
|
prodOrderSum++;
|
|
|
|
|
}
|
|
|
|
|
Long orderAmount = Long.parseLong(String.valueOf(map.get("ORDER_AMOUNT")));
|
|
|
|
|
planProductSum += orderAmount;
|
|
|
|
|
Long completeAmount = Long.parseLong(String.valueOf(map.get("COMPLETE_AMOUNT")));
|
|
|
|
|
compProductSum += completeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result.put("planOrderSum", planOrderSum);
|
|
|
|
|
result.put("prodOrderSum", prodOrderSum);
|
|
|
|
|
result.put("planProductSum", planProductSum);
|
|
|
|
|
result.put("compProductSum", compProductSum);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<HashMap<String, Object>> columnarList = boardReportMapper.homeColumnarInterface(paramMap);
|
|
|
|
|
result.put("columnarList", columnarList);
|
|
|
|
|
List<HashMap<String, Object>> lineList = boardReportMapper.homeLineInterface(paramMap);
|
|
|
|
|
result.put("lineList", lineList);
|
|
|
|
|
List<HashMap<String, Object>> pieList = boardReportMapper.homePieChartInterface(paramMap);
|
|
|
|
|
result.put("pieList", pieList);
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|