Browse Source

fixed bug

fushengqian 1 year ago
parent
commit
dc40c6cadd

+ 1 - 1
fuint-application/src/main/java/com/fuint/common/service/impl/CateServiceImpl.java

@@ -210,7 +210,7 @@ public class CateServiceImpl extends ServiceImpl<MtGoodsCateMapper, MtGoodsCate>
         if (reqDto.getSort() != null) {
             mtCate.setSort(reqDto.getSort());
         }
-        if (reqDto.getMerchantId() != null) {
+        if (reqDto.getMerchantId() != null && reqDto.getMerchantId() > 0) {
             mtCate.setMerchantId(reqDto.getMerchantId());
         }
         if (reqDto.getStoreId() != null) {