required: true,maxlength:20,remote:{
type:"post",dataType:"json",data:{versionCode:function () { return $("#versionCode").val();},oldversionCode:function () { return $("#oldversionCode").val();}
},url:"${base}/admin/road/app/validateversionCode.do"
}
},'versionName': {
required: true,maxlength:40,data:{versionName:function () { return $("#versionName").val();},oldversionName:function () { return $("#oldversionName").val();}
},url:"${base}/admin/road/app/validateversionName.do"
}
},'updateLog': {
required: true,maxlength:125
}
},messages:{
'versionCode':{
required: "
必填",remote:"
版本号重复",maxlength:"
最大不能超过10位"
},'versionName':{
required: "
必填",remote:"
版本名称重复",maxlength:"
最大不能超过40位"
},'updateLog':{
required: "
必填",maxlength:"
最大不能超过120位"
}
}
});
});
});
0)?false:true;
}
@Override
public boolean validateversionName(String versionName){
int count = dbcAppVersionMapper.validateversionName(versionName);
return (count>0)?false:true;
}