Merge #11 into master from cc_20251114_minor_req
fix:数据看板日营业数据字段修改
* cc_20251114_minor_req: (8 commits squashed)
- fix:门店日营销数据
- fix:jackson反序列化配置忽略未定义字段
- fix:菜品市场数据新增字段
- fix:菜品市场数据新增字段
- Merge branch 'master' into cc_20251114_minor_req
# Conflicts:
#	coolstore-partner-model/src/main/java/com/cool/store/dto/recipe/RevenueDataDTO.java
#	coolstore-partner-model/src/main/java/com/cool/store/vo/recipe/RevenueDataVO.java
- fix:数据看板日营业数据字段修改
- fix:根据手机号获取门店列表 开放接口
- Merge branch 'refs/heads/master' into cc_20251114_minor_req
# Conflicts:
#	coolstore-partner-web/src/main/java/com/cool/store/controller/webb/OpenApiController.java
Signed-off-by: 王非凡 <accounts_67eba0c5fee9c49c80c8e2b4@mail.teambition.com>
Reviewed-by: 苏竹红 <570057076@qq.com>
Merged-by: 苏竹红 <570057076@qq.com>
CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/11
This commit is contained in:
@@ -111,6 +111,8 @@ public interface ShopService {
|
||||
|
||||
ShopResponse getShopNameAndCode(Long shopId,Long lineId);
|
||||
|
||||
ShopResponse getShopNameAndCodeByMobile(String mobile, Long shopId);
|
||||
|
||||
String getFranchiseBrandName(Long shopId);
|
||||
//处理shop表省市区
|
||||
Integer dateHandler(Integer pageNum, Integer pageSize);
|
||||
|
||||
@@ -703,6 +703,15 @@ public class ShopServiceImpl implements ShopService {
|
||||
return response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ShopResponse getShopNameAndCodeByMobile(String mobile, Long shopId) {
|
||||
LineInfoDO lineInfo = lineInfoDAO.getLineByMobile(mobile);
|
||||
if (Objects.isNull(lineInfo)) {
|
||||
throw new ServiceException(LINE_ID_IS_NOT_EXIST);
|
||||
}
|
||||
return getShopNameAndCode(shopId, lineInfo.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFranchiseBrandName(Long shopId) {
|
||||
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(shopId);
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ThirdFoodServiceImpl implements ThirdFoodService {
|
||||
if (Objects.isNull(storeDO)) {
|
||||
throw new ServiceException(ErrorCodeEnum.STORE_NOT_FIND);
|
||||
}
|
||||
SalesVolumeDayQueryDTO queryDTO = new SalesVolumeDayQueryDTO(request.getBusinessDate(), storeDO.getStoreNum());
|
||||
SalesVolumeDayQueryDTO queryDTO = new SalesVolumeDayQueryDTO(request.getBusinessDate(), request.getBusinessDateFrom(), request.getBusinessDateTo(), storeDO.getStoreNum());
|
||||
String url = "/v1/store/business/day";
|
||||
List<RevenueDataDTO> list = executeApiCall(url, queryDTO, List.class);
|
||||
return BeanUtil.toList(list, RevenueDataVO.class, CopyOptions.create().setFieldMapping(Collections.singletonMap("storeCode", "storeNum")));
|
||||
|
||||
Reference in New Issue
Block a user