|
|
|
@ -322,9 +322,9 @@ public class StorePromotionDataService {
|
|
|
|
|
switch (roleCode) {
|
|
|
|
|
// 店长
|
|
|
|
|
case Constants.WX_USER_ROLE_SHOP_MANAGER:
|
|
|
|
|
cusNum = storePromotionDataDOMapper.selectWxSumCusNumByCondition(null, storeId, null, null, Constants.STORE_SELLER_CUS_RELATION_TYPE_VALID);
|
|
|
|
|
newCusNum = storePromotionDataDOMapper.selectWxSumCusNumByCondition(null, storeId, startDate, endDate, Constants.STORE_SELLER_CUS_RELATION_TYPE_VALID);
|
|
|
|
|
newCusNumLast = storePromotionDataDOMapper.selectWxSumCusNumByCondition(null, storeId, lastStartDate, lastEndDate, Constants.STORE_SELLER_CUS_RELATION_TYPE_VALID);
|
|
|
|
|
cusNum = storePromotionDataDOMapper.selectWxSumCusNumByCondition(null, storeId, null, null, null);
|
|
|
|
|
newCusNum = storePromotionDataDOMapper.selectWxSumCusNumByCondition(null, storeId, startDate, endDate, null);
|
|
|
|
|
newCusNumLast = storePromotionDataDOMapper.selectWxSumCusNumByCondition(null, storeId, lastStartDate, lastEndDate, null);
|
|
|
|
|
// 店铺排名
|
|
|
|
|
List<StorePromotionDataDO> storeRankNoList = storePromotionDataDOMapper.selectStoreRankNo(startDate, endDate);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(storeRankNoList)) {
|
|
|
|
@ -350,9 +350,13 @@ public class StorePromotionDataService {
|
|
|
|
|
Long id = storeDO.getId();
|
|
|
|
|
if (null != staffCusNumMap && staffCusNumMap.get(id) != null) {
|
|
|
|
|
storeDO.setCusNum(staffCusNumMap.get(id));
|
|
|
|
|
} else {
|
|
|
|
|
storeDO.setCusNum(Constants.CUS_NUM_ZERO);
|
|
|
|
|
}
|
|
|
|
|
if (null != staffNewCusNumMap && staffNewCusNumMap.get(id) != null) {
|
|
|
|
|
storeDO.setNewCusNum(staffNewCusNumMap.get(id));
|
|
|
|
|
} else {
|
|
|
|
|
storeDO.setNewCusNum(Constants.CUS_NUM_ZERO);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (CollectionUtils.isNotEmpty(staffDOList)) {
|
|
|
|
@ -379,6 +383,10 @@ public class StorePromotionDataService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Date latestUpdate = storePromotionDataDOMapper.selectLatestUpdateTime(storeId);
|
|
|
|
|
if (null != latestUpdate) {
|
|
|
|
|
storePromotionDataDO.setLatestUpdate(latestUpdate);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|