liujc преди 2 години
родител
ревизия
928f6f9d45
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantInfoServiceImpl.java

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantInfoServiceImpl.java

@@ -32,7 +32,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
      */
 	@Override
     public TenantInfo detail(Long id) {
-        if (id == null && id == -1) {
+        if (id == null || id == -1) {
             return null;
         }