Эх сурвалжийг харах

fix 修改店铺返回id为string,解决精度丢失问题

chenchen 5 сар өмнө
parent
commit
733a28c18c

+ 3 - 0
application-webadmin/src/main/java/com/tourism/webadmin/app/wechat/controller/TakeOutProjectController.java

@@ -212,6 +212,9 @@ public class TakeOutProjectController {
         queryWrapper.eq("id",id);
         queryWrapper.eq("enable",1);
         RestaurantInfo restaurantInfo = restaurantInfoService.getOne(queryWrapper);
+        if (restaurantInfo == null) {
+            return ResponseResult.success(null);
+        }
         RestaurantInfoVo restaurantInfoVo = MyModelUtil.copyTo(restaurantInfo, RestaurantInfoVo.class);
         if(StringUtils.isNotEmpty(restaurantInfoVo.getUrl())) {
             List<String> arrayList2 = UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), restaurantInfoVo.getUrl());