1、maat配置userRegion不能为空;
2、回调类配置都加上opTime
This commit is contained in:
@@ -107,7 +107,10 @@ public enum RestBusinessCode {
|
||||
* 编译配置的的endTime不能为空
|
||||
*/
|
||||
EndTimeIsNull(4001011, "Maat配置的endTime不能为空"),
|
||||
|
||||
/**
|
||||
* 配置的userRegion不能为空
|
||||
*/
|
||||
UserRegionIsNull(4001012, "配置userRegion属性不能为空"),
|
||||
/**
|
||||
* 配置的isValid不能为空
|
||||
*/
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user