|
@@ -499,7 +499,7 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
|
|
|
|
|
|
(orderAddressVO == null || StringUtils.isBlank(orderAddressVO.getRealName())) ? "" : orderAddressVO.getRealName(),
|
|
(orderAddressVO == null || StringUtils.isBlank(orderAddressVO.getRealName())) ? "" : orderAddressVO.getRealName(),
|
|
(orderAddressVO == null || StringUtils.isBlank(orderAddressVO.getPhone())) ? "" : orderAddressVO.getPhone(),
|
|
(orderAddressVO == null || StringUtils.isBlank(orderAddressVO.getPhone())) ? "" : orderAddressVO.getPhone(),
|
|
- (orderAddressVO == null || StringUtils.isBlank(orderAddressVO.getDetail())) ? "" : orderAddressVO.getProvince()+orderAddressVO.getCity() + orderAddressVO.getDistrict()+orderAddressVO.getDetail(),
|
|
|
|
|
|
+ (orderAddressVO == null || StringUtils.isBlank(orderAddressVO.getDetail())) ? "" : orderAddressVO.getProvince() + orderAddressVO.getCity() + orderAddressVO.getDistrict() + orderAddressVO.getDetail(),
|
|
// vo.getRealName(),
|
|
// vo.getRealName(),
|
|
// vo.getUserPhone(),
|
|
// vo.getUserPhone(),
|
|
// vo.getUserAddress(),
|
|
// vo.getUserAddress(),
|
|
@@ -2428,8 +2428,8 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public Map<Integer, Integer> pendingRedDots() {
|
|
|
|
- Map<Integer, Integer> resultMap = new HashMap<>();
|
|
|
|
|
|
+ public PendingRedDotsVO pendingRedDots() {
|
|
|
|
+ // Map<Integer, Integer> resultMap = new HashMap<>();
|
|
Long tokenUserId = AuthService.getTokenUserId(null);
|
|
Long tokenUserId = AuthService.getTokenUserId(null);
|
|
if (ObjectUtils.isEmpty(tokenUserId)) {
|
|
if (ObjectUtils.isEmpty(tokenUserId)) {
|
|
throw new ServiceException("登陆用户不存在tokenUserId:" + tokenUserId);
|
|
throw new ServiceException("登陆用户不存在tokenUserId:" + tokenUserId);
|
|
@@ -2440,8 +2440,8 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
|
|
criteriaStorePinkToPay.andEqualTo("orderStatus", PinkOrderStatusEnum.GROUP_ORDER_TO_PAY.getKey());
|
|
criteriaStorePinkToPay.andEqualTo("orderStatus", PinkOrderStatusEnum.GROUP_ORDER_TO_PAY.getKey());
|
|
criteriaStorePinkToPay.andEqualTo("isDelete", 0);
|
|
criteriaStorePinkToPay.andEqualTo("isDelete", 0);
|
|
criteriaStorePinkToPay.andEqualTo("uid", tokenUserId);
|
|
criteriaStorePinkToPay.andEqualTo("uid", tokenUserId);
|
|
- int i = storePinkMapper.selectCountByCondition(conditionStoreStorePinkToPay);
|
|
|
|
- resultMap.put(1, i);
|
|
|
|
|
|
+ int toPayNum = storePinkMapper.selectCountByCondition(conditionStoreStorePinkToPay);
|
|
|
|
+ // resultMap.put(1, i);
|
|
|
|
|
|
// 中奖未填写收获地址数量
|
|
// 中奖未填写收获地址数量
|
|
Condition conditionStoreStorePinkPaid = new Condition(StorePink.class);
|
|
Condition conditionStoreStorePinkPaid = new Condition(StorePink.class);
|
|
@@ -2449,8 +2449,8 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
|
|
criteriaStorePinkPaid.andEqualTo("orderStatus", PinkOrderStatusEnum.GROUP_ORDER_PAID.getKey());
|
|
criteriaStorePinkPaid.andEqualTo("orderStatus", PinkOrderStatusEnum.GROUP_ORDER_PAID.getKey());
|
|
criteriaStorePinkPaid.andEqualTo("isDelete", 0);
|
|
criteriaStorePinkPaid.andEqualTo("isDelete", 0);
|
|
criteriaStorePinkPaid.andEqualTo("uid", tokenUserId);
|
|
criteriaStorePinkPaid.andEqualTo("uid", tokenUserId);
|
|
- int ii = storePinkMapper.selectCountByCondition(conditionStoreStorePinkPaid);
|
|
|
|
- resultMap.put(2, ii);
|
|
|
|
|
|
+ int successNum = storePinkMapper.selectCountByCondition(conditionStoreStorePinkPaid);
|
|
|
|
+ // resultMap.put(2, ii);
|
|
|
|
|
|
// 中奖未填写收获地址数量
|
|
// 中奖未填写收获地址数量
|
|
Condition conditionStoreStorePinkToShip = new Condition(StorePink.class);
|
|
Condition conditionStoreStorePinkToShip = new Condition(StorePink.class);
|
|
@@ -2460,11 +2460,15 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
|
|
criteriaStorePinkToShip.andIn("orderStatus", integers);
|
|
criteriaStorePinkToShip.andIn("orderStatus", integers);
|
|
criteriaStorePinkToShip.andEqualTo("isDelete", 0);
|
|
criteriaStorePinkToShip.andEqualTo("isDelete", 0);
|
|
criteriaStorePinkToShip.andEqualTo("uid", tokenUserId);
|
|
criteriaStorePinkToShip.andEqualTo("uid", tokenUserId);
|
|
- int iii = storePinkMapper.selectCountByCondition(conditionStoreStorePinkToShip);
|
|
|
|
- resultMap.put(4, iii);
|
|
|
|
|
|
+ int rewardNum = storePinkMapper.selectCountByCondition(conditionStoreStorePinkToShip);
|
|
|
|
+ // resultMap.put(4, iii);
|
|
|
|
|
|
|
|
|
|
- return resultMap;
|
|
|
|
|
|
+ return PendingRedDotsVO.builder()
|
|
|
|
+ .toPayNum(toPayNum)
|
|
|
|
+ .successNum(successNum)
|
|
|
|
+ .rewardNum(rewardNum)
|
|
|
|
+ .build();
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|