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不能为空 * 编译配置的的endTime不能为空
*/ */
EndTimeIsNull(4001011, "Maat配置的endTime不能为空"), EndTimeIsNull(4001011, "Maat配置的endTime不能为空"),
/**
* 配置的userRegion不能为空
*/
UserRegionIsNull(4001012, "配置userRegion属性不能为空"),
/** /**
* 配置的userRegion不能为空 * 配置的userRegion不能为空
*/ */

View File

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

View File

@@ -63,6 +63,7 @@
<t:field fieldType="String" srcName="description" dstName="description" isRequired="true"/> <t:field fieldType="String" srcName="description" dstName="description" isRequired="true"/>
<t:field fieldType="Number" srcName="level" dstName="level" range="0-100" defaultVal="0"/> <t:field fieldType="Number" srcName="level" dstName="level" range="0-100" defaultVal="0"/>
<t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/> <t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/>
<t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/>
</t:commonSource> </t:commonSource>
<!-- <!--
#0x340 IP复用地址池配置回调 832=0:IR_STATIC_IP_POOL_CB #0x340 IP复用地址池配置回调 832=0:IR_STATIC_IP_POOL_CB
@@ -141,7 +142,7 @@
<t:field fieldType="String" srcName="publicKeyAlgo" dstName="public_key_algo" isRequired="true"/> <t:field fieldType="String" srcName="publicKeyAlgo" dstName="public_key_algo" isRequired="true"/>
<t:field fieldType="String" srcName="crl" dstName="crl" defaultVal=""/> <t:field fieldType="String" srcName="crl" dstName="crl" defaultVal=""/>
<t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/> <t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/>
<!-- <t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/> --> <t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/>
</t:commonSource> </t:commonSource>
<!-- # 0x260 PXY 管控文件策略 608=0:PXY_OBJ_FILE --> <!-- # 0x260 PXY 管控文件策略 608=0:PXY_OBJ_FILE -->
@@ -153,7 +154,7 @@
<t:field fieldType="Number" srcName="contentLength" dstName="content_length" isRequired="true"/> <t:field fieldType="Number" srcName="contentLength" dstName="content_length" isRequired="true"/>
<t:field fieldType="String" srcName="filePath" dstName="file_path" isRequired="true"/> <t:field fieldType="String" srcName="filePath" dstName="file_path" isRequired="true"/>
<t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/> <t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" regexp="[1]"/>
<!-- <t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/> --> <t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/>
</t:commonSource> </t:commonSource>
</t:commonSources> </t:commonSources>