@@ -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) {
@@ -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);