修改
This commit is contained in:
@@ -43,6 +43,6 @@ public interface CoolStoreStartFlowService {
|
||||
* @Date: 2024/4/25
|
||||
* @description:获取订货金
|
||||
*/
|
||||
ResponseResult getFirstOrder(String shopCode);
|
||||
Boolean getFirstOrder(String shopCode);
|
||||
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ public class CoolStoreStartFlowServiceImpl implements CoolStoreStartFlowService
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResponseResult getFirstOrder(String shopCode) {
|
||||
public Boolean getFirstOrder(String shopCode) {
|
||||
log.info("getFirstOrder shopCode:{}", shopCode);
|
||||
if (Objects.isNull(shopCode)) {
|
||||
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||
@@ -139,11 +139,8 @@ public class CoolStoreStartFlowServiceImpl implements CoolStoreStartFlowService
|
||||
String url = xfsgUrl + Constants.FRANCHISEE_STORE_NUM + "?storeCode=" + shopCode;
|
||||
JSONObject jsonObject = httpRestTemplateService.getForObject(url, JSONObject.class, new HashMap<>());
|
||||
log.info("get url:{},jsonObject:{}", url, jsonObject);
|
||||
String string = jsonObject.getString("data");
|
||||
if (string == null) {
|
||||
throw new ServiceException(ErrorCodeEnum.GET_FIRST_ORDER);
|
||||
}
|
||||
return ResponseResult.success(string);
|
||||
Boolean flag = (Boolean) jsonObject.get("data");
|
||||
return flag;
|
||||
} catch (Exception e) {
|
||||
log.error("获取鲜丰订货金异常", e);
|
||||
throw new ServiceException(ErrorCodeEnum. GET_FIRST_ORDER);
|
||||
|
||||
Reference in New Issue
Block a user