|
|
@@ -11,6 +11,7 @@ import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.mapper.*;
|
|
|
import com.cyksj.mapper.manage.statistics.*;
|
|
|
+import com.cyksj.mapper.mirrorshop.UserMirrorShopMapper;
|
|
|
import com.cyksj.mapper.shop.YhShopMapper;
|
|
|
import com.cyksj.mapper.sys.SysConfigMapper;
|
|
|
import com.cyksj.model.dto.MonthlyUserOrderDetailDto;
|
|
|
@@ -89,6 +90,8 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
|
|
|
private final SysConfigMapper sysConfigMapper;
|
|
|
|
|
|
+ private final UserMirrorShopMapper userMirrorShopMapper;
|
|
|
+
|
|
|
private static final GlobalThreadPoolTaskExecutor TASK_POOL = GlobalThreadPoolTaskExecutor.getInstance();
|
|
|
|
|
|
@Override
|
|
|
@@ -444,7 +447,26 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
|
|
|
@Override
|
|
|
public void userMirrorShopDistribute(BackgroundDataView backgroundDataView, Date startDate, Date endDate) {
|
|
|
+ //店铺数量
|
|
|
+ //注册用户
|
|
|
+ Map<String, Object> yhShopDetail = userMirrorShopMapper.selectUserMIrrorShopDetail(startDate, endDate);
|
|
|
+ backgroundDataView.setNumOfYhShop(Integer.parseInt(yhShopDetail.get("numOfYhShop").toString()));
|
|
|
+ backgroundDataView.setNumOfYhShopRegisterUser(Integer.parseInt(yhShopDetail.get("numOfRegisterYhShopUser").toString()));
|
|
|
+ //销售单数
|
|
|
+ //销售金额
|
|
|
+ Map<String, Object> yhShopOrderDetail = orderDonMapper.selectUserMIrrorShopDistributeOrderDetail(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 = userMirrorShopMapper.selectUserMirrorShopTakeMoney(startDate, endDate);
|
|
|
+ backgroundDataView.setYhShopTakeMoney(yhShopTakeMoney.divide(BigDecimal.valueOf(100)));
|
|
|
+
|
|
|
|
|
|
+ Map<String, Object> yhShopApplyDetail = userMirrorShopMapper.selectUserMirrorShopApplyMoney(startDate, endDate);
|
|
|
+ //已提现
|
|
|
+ backgroundDataView.setDistributeGotMoney(BigDecimal.valueOf(Long.parseLong(yhShopApplyDetail.get("s").toString())).divide(BigDecimal.valueOf(100)));
|
|
|
+ //待审核
|
|
|
+ backgroundDataView.setDistributeVerifyingMoney(BigDecimal.valueOf(Long.parseLong(yhShopApplyDetail.get("vf").toString())).divide(BigDecimal.valueOf(100)));
|
|
|
}
|
|
|
|
|
|
private void getUnbindChannelOrderData(GroupsDataStatisticsView groupsDataStatisticsView, String startDate, String endDate) {
|