Merge #6 into master from cc_20251203_bugfix

feat:getPosToken

* cc_20251203_bugfix: (1 commits squashed)

  - feat:getPosToken

Signed-off-by: 苏竹红 <accounts_68551bf01395375227aee211@mail.teambition.com>
Merged-by: 苏竹红 <accounts_68551bf01395375227aee211@mail.teambition.com>

CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/6
This commit is contained in:
苏竹红
2025-12-09 03:12:33 +00:00
parent 2237ed3f4a
commit d7c8dd21fd
2 changed files with 4 additions and 1 deletions

View File

@@ -213,8 +213,10 @@ public class PushServiceImpl implements PushService {
userRoleIds.contains(UserRoleEnum.SERVICE_PACKAGE_DEDICATED.getCode()) ||
userRoleIds.contains(UserRoleEnum.REGION_MANAGER.getCode())) {
StoreDO store = storeDao.getByStoreNum(dto.getShopCode());
if (store != null&&store.getTelephone()!=null){
if (store != null&&StringUtils.isNotEmpty(store.getTelephone())){
dto.setMobile(store.getTelephone());
}else {
throw new ServiceException(ErrorCodeEnum.STORE_MOBILE_NOT_EXIST);
}
}
}