|
@@ -337,24 +337,24 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
public void yhShopDistribute(BackgroundDataView backgroundDataView, Date startDate, Date endDate) {
|
|
public void yhShopDistribute(BackgroundDataView backgroundDataView, Date startDate, Date endDate) {
|
|
|
//店铺数量
|
|
//店铺数量
|
|
|
//注册用户
|
|
//注册用户
|
|
|
- Map<String, Integer> yhShopDetail = yhShopMapper.selectYhShopDetail(startDate, endDate);
|
|
|
|
|
- backgroundDataView.setNumOfYhShop(yhShopDetail.get("numOfYhShop"));
|
|
|
|
|
- backgroundDataView.setNumOfYhShopRegisterUser(yhShopDetail.get("numOfRegisterYhShopUser"));
|
|
|
|
|
|
|
+ Map<String, Object> yhShopDetail = yhShopMapper.selectYhShopDetail(startDate, endDate);
|
|
|
|
|
+ backgroundDataView.setNumOfYhShop(Integer.parseInt(yhShopDetail.get("numOfYhShop").toString()));
|
|
|
|
|
+ backgroundDataView.setNumOfYhShopRegisterUser(Integer.parseInt(yhShopDetail.get("numOfRegisterYhShopUser").toString()));
|
|
|
//销售单数
|
|
//销售单数
|
|
|
//销售金额
|
|
//销售金额
|
|
|
- Map<String, Integer> yhShopOrderDetail = orderDonMapper.selectYhShopDistributeOrderDetail(startDate, endDate);
|
|
|
|
|
- backgroundDataView.setNumOfYhShopDsOrders(yhShopOrderDetail.get("numOfDsOrder"));
|
|
|
|
|
- backgroundDataView.setYhShopAmount(BigDecimal.valueOf(yhShopOrderDetail.get("dsMoney")).divide(BigDecimal.valueOf(100)));
|
|
|
|
|
|
|
+ Map<String, Object> yhShopOrderDetail = orderDonMapper.selectYhShopDistributeOrderDetail(startDate, endDate);
|
|
|
|
|
+ backgroundDataView.setNumOfYhShopDsOrders(Integer.parseInt(yhShopOrderDetail.get("numOfDsOrder").toString()));
|
|
|
|
|
+ backgroundDataView.setYhShopAmount(BigDecimal.valueOf(Long.parseLong(yhShopOrderDetail.get("dsMoney").toString())).divide(BigDecimal.valueOf(100)));
|
|
|
//提成金额
|
|
//提成金额
|
|
|
BigDecimal yhShopTakeMoney = yhShopMapper.selectYhShopTakeMoney(startDate, endDate);
|
|
BigDecimal yhShopTakeMoney = yhShopMapper.selectYhShopTakeMoney(startDate, endDate);
|
|
|
backgroundDataView.setYhShopTakeMoney(yhShopTakeMoney.divide(BigDecimal.valueOf(100)));
|
|
backgroundDataView.setYhShopTakeMoney(yhShopTakeMoney.divide(BigDecimal.valueOf(100)));
|
|
|
|
|
|
|
|
|
|
|
|
|
- Map<String,Integer> yhShopApplyDetail = yhShopMapper.selectYhShopApplyMoney(startDate, endDate);
|
|
|
|
|
|
|
+ Map<String,Object> yhShopApplyDetail = yhShopMapper.selectYhShopApplyMoney(startDate, endDate);
|
|
|
//已提现
|
|
//已提现
|
|
|
- backgroundDataView.setDistributeGotMoney(BigDecimal.valueOf(yhShopApplyDetail.get("s")).divide(BigDecimal.valueOf(100)));
|
|
|
|
|
|
|
+ backgroundDataView.setDistributeGotMoney(BigDecimal.valueOf(Long.parseLong(yhShopApplyDetail.get("s").toString())).divide(BigDecimal.valueOf(100)));
|
|
|
//待审核
|
|
//待审核
|
|
|
- backgroundDataView.setDistributeVerifyingMoney(BigDecimal.valueOf(yhShopApplyDetail.get("vf")).divide(BigDecimal.valueOf(100)));
|
|
|
|
|
|
|
+ backgroundDataView.setDistributeVerifyingMoney(BigDecimal.valueOf(Long.parseLong(yhShopApplyDetail.get("vf").toString())).divide(BigDecimal.valueOf(100)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void exportAllTypeData(List<ExcelSheetAndData> excelSheetDataList, String startDate, String endDate) {
|
|
public void exportAllTypeData(List<ExcelSheetAndData> excelSheetDataList, String startDate, String endDate) {
|