修改非maat配置新增时,number类型格式不正确时返回的错误信息

This commit is contained in:
zhangdongxu
2018-06-05 16:15:13 +08:00
parent d748537492
commit 3f1f4b6d75
2 changed files with 2 additions and 2 deletions

View File

@@ -2479,7 +2479,7 @@ public class ConfigSourcesService extends BaseService {
if(!StringUtil.isNumeric(dstStr)){
logger1.error(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());
}
break;

View File

@@ -26,7 +26,7 @@
<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="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 serviceIds="265,266,393,394">
<t:field fieldType="String" srcName="service" dstName="service" isRequired="true"/>