Merge branch 'develop' of http://10.0.6.99/common/maat_service.git into develop

This commit is contained in:
RenKaiGe-Office
2018-08-27 19:13:19 +08:00
3 changed files with 12 additions and 7 deletions

View File

@@ -107,7 +107,10 @@ public enum RestBusinessCode {
* 编译配置的的endTime不能为空
*/
EndTimeIsNull(4001011, "Maat配置的endTime不能为空"),
/**
* 配置的userRegion不能为空
*/
UserRegionIsNull(4001012, "配置userRegion属性不能为空"),
/**
* 配置的userRegion不能为空
*/

View File

@@ -489,10 +489,11 @@ public class CompileVal {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中endTime不能为空",
RestBusinessCode.EndTimeIsNull.getValue());
}
// if (null == configCompile.getUserRegion() ||
// configCompile.getUserRegion().equals("")) {
// return "编译配置id为" + compileId + "的编译配置中userRegion不能为空";
// }
if (null == configCompile.getUserRegion() ||
configCompile.getUserRegion().equals("")) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中userRegion不能为空",
RestBusinessCode.UserRegionIsNull.getValue());
}
if (null == configCompile.getIsValid()) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中isValid不能为空",
RestBusinessCode.IsValidIsNull.getValue());