修改非maat配置新增时,number类型格式不正确时返回的错误信息
This commit is contained in:
@@ -2479,7 +2479,7 @@ public class ConfigSourcesService extends BaseService {
|
|||||||
if(!StringUtil.isNumeric(dstStr)){
|
if(!StringUtil.isNumeric(dstStr)){
|
||||||
logger1.error(commonSourceFieldCfg.getSrcName()+"参数不能格式不正确,必需是数值型");
|
logger1.error(commonSourceFieldCfg.getSrcName()+"参数不能格式不正确,必需是数值型");
|
||||||
thread.setExceptionInfo(commonSourceFieldCfg.getSrcName()+"参数不能格式不正确,必需是数值型");
|
thread.setExceptionInfo(commonSourceFieldCfg.getSrcName()+"参数不能格式不正确,必需是数值型");
|
||||||
throw new RestServiceException(thread, System.currentTimeMillis() - start,commonSourceFieldCfg.getSrcName()+"参数不能格式不正确",
|
throw new RestServiceException(thread, System.currentTimeMillis() - start,commonSourceFieldCfg.getSrcName()+"参数不能格式不正确,必需是数值型",
|
||||||
RestBusinessCode.missing_args.getValue());
|
RestBusinessCode.missing_args.getValue());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<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" range="0-1"/>
|
<t:field fieldType="Number" srcName="isValid" dstName="is_valid" isRequired="true" range="0-1"/>
|
||||||
<t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/>
|
<t:field fieldType="Date" srcName="opTime" dstName="op_time" isRequired="true"/>
|
||||||
<t:field fieldType="Number" srcName="" dstName="file_id" defaultVal="[dstFile]"/>
|
<t:field fieldType="String" srcName="" dstName="file_id" defaultVal="[dstFile]"/>
|
||||||
</t:commonSource>
|
</t:commonSource>
|
||||||
<t:commonSource serviceIds="265,266,393,394">
|
<t:commonSource serviceIds="265,266,393,394">
|
||||||
<t:field fieldType="String" srcName="service" dstName="service" isRequired="true"/>
|
<t:field fieldType="String" srcName="service" dstName="service" isRequired="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user