소스 검색

fixed bug

fushengqian 2 년 전
부모
커밋
dc40c6cadd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fuint-application/src/main/java/com/fuint/common/service/impl/CateServiceImpl.java

+ 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) {