review code.
This commit is contained in:
@@ -68,7 +68,7 @@ public interface FileClient {
|
|||||||
// TODO getOutputStream
|
// TODO getOutputStream
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测文件是否存在
|
* 检查文件是否存在
|
||||||
*
|
*
|
||||||
* @param path path
|
* @param path path
|
||||||
* @return 是否存在
|
* @return 是否存在
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public class FileClientUtils {
|
|||||||
// TODO getOutputStream
|
// TODO getOutputStream
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测文件是否存在
|
* 检查文件是否存在
|
||||||
*
|
*
|
||||||
* @param path path
|
* @param path path
|
||||||
* @return 是否存在
|
* @return 是否存在
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class ValidateLambdaWrapper<T> extends LambdaQueryWrapper<T> {
|
|||||||
*/
|
*/
|
||||||
private boolean isIllegal(Object... objects) {
|
private boolean isIllegal(Object... objects) {
|
||||||
for (Object object : objects) {
|
for (Object object : objects) {
|
||||||
// 非 null 检测
|
// 非 null 检查
|
||||||
if (object == null) {
|
if (object == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class LocalFileClient extends AbstractFileClient<LocalFileClientConfig> {
|
|||||||
protected String doUpload(String path, InputStream in, boolean autoClose, boolean overrideIfExist) {
|
protected String doUpload(String path, InputStream in, boolean autoClose, boolean overrideIfExist) {
|
||||||
// 获取返回文件路径
|
// 获取返回文件路径
|
||||||
String returnPath = this.getReturnPath(path);
|
String returnPath = this.getReturnPath(path);
|
||||||
// 检测文件是否存在
|
// 检查文件是否存在
|
||||||
if (!overrideIfExist && this.isExists(returnPath)) {
|
if (!overrideIfExist && this.isExists(returnPath)) {
|
||||||
return returnPath;
|
return returnPath;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ public class ${table.serviceImplName} implements ${table.serviceName} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测对象是否存在
|
* 检查对象是否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -19,13 +19,12 @@
|
|||||||
@added="() => table.addedCallback()"
|
@added="() => table.addedCallback()"
|
||||||
@updated="() => table.updatedCallback()" />
|
@updated="() => table.updatedCallback()" />
|
||||||
#end
|
#end
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: '${vue.module}-${vue.feature}'
|
name: '${vue.moduleEntityFirstLower}${vue.featureEntity}'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ public class HostServiceImpl implements HostService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测 name 是否存在
|
* 检查 name 是否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
@@ -189,7 +189,7 @@ public class HostServiceImpl implements HostService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测 code 是否存在
|
* 检查 code 是否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ public class SystemRoleServiceImpl implements SystemRoleService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测名称是否存在
|
* 检查名称是否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
@@ -188,7 +188,7 @@ public class SystemRoleServiceImpl implements SystemRoleService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测编码是否存在
|
* 检查编码是否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ public class SystemUserServiceImpl implements SystemUserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测用户名否存在
|
* 检查用户名否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
@@ -217,7 +217,7 @@ public class SystemUserServiceImpl implements SystemUserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测花名是否存在
|
* 检查花名是否存在
|
||||||
*
|
*
|
||||||
* @param domain domain
|
* @param domain domain
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user