feature(tools):切换工具类

This commit is contained in:
doufenghu
2018-10-18 19:19:59 +08:00
parent 7f392422ef
commit e8e9d093f3
59 changed files with 720 additions and 652 deletions

View File

@@ -16,6 +16,7 @@ import com.nis.listener.SystemConfigListener;
import com.nis.restful.RestBusinessCode;
import com.nis.restful.RestServiceException;
import com.nis.web.service.restful.ConfigSourcesService;
import com.zdjizhi.utils.StringUtil;
public class CompileVal {
@@ -63,10 +64,11 @@ public class CompileVal {
}
if (!isUpdate) {
if (configCompile.getIsValid() != 1)
if (configCompile.getIsValid() != 1) {
throw new RestServiceException("编译配置id为" + configCompile.getCompileId() + "的配置在添加时不能为无效",
RestBusinessCode.IsValidIsT.getValue());
{
}
} else {
throw new RestServiceException("编译配置id为" + configCompile.getCompileId() + "的配置在修改时不能为有效",