Browse Source

fixed 用户反馈的bug修复

fushengqian 9 tháng trước cách đây
mục cha
commit
b2e6f07318

+ 1 - 1
fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendGoodsController.java

@@ -541,7 +541,7 @@ public class BackendGoodsController extends BaseController {
         if (StringUtil.isNotEmpty(description)) {
             mtGoods.setDescription(description);
         }
-        if (storeId != null) {
+        if (storeId != null && param.get("storeId") != null) {
             mtGoods.setStoreId(storeId);
         }
         if (images.size() > 0) {

+ 1 - 1
fuint-application/src/main/java/com/fuint/module/clientApi/controller/ClientSystemController.java

@@ -107,7 +107,7 @@ public class ClientSystemController extends BaseController {
         }
 
         // 取距离最近的
-        if (StringUtil.isNotEmpty(latitude) && StringUtil.isNotEmpty(longitude) && mtUser == null) {
+        if (storeInfo == null && StringUtil.isNotEmpty(latitude) && StringUtil.isNotEmpty(longitude) && mtUser == null) {
             List<MtStore> storeList = storeService.queryByDistance(merchantNo, "", latitude, longitude);
             if (storeList.size() > 0) {
                 storeInfo = storeList.get(0);