|
|
@ -68,13 +68,23 @@ public class JobGroupController { |
|
|
|
if (xxlJobGroup.getAppname().length()<4 || xxlJobGroup.getAppname().length()>64) { |
|
|
|
if (xxlJobGroup.getAppname().length()<4 || xxlJobGroup.getAppname().length()>64) { |
|
|
|
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_appname_length") ); |
|
|
|
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_appname_length") ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (xxlJobGroup.getAppname().contains(">") || xxlJobGroup.getAppname().contains("<")) { |
|
|
|
|
|
|
|
return new ReturnT<String>(500, "AppName"+I18nUtil.getString("system_unvalid") ); |
|
|
|
|
|
|
|
} |
|
|
|
if (xxlJobGroup.getTitle()==null || xxlJobGroup.getTitle().trim().length()==0) { |
|
|
|
if (xxlJobGroup.getTitle()==null || xxlJobGroup.getTitle().trim().length()==0) { |
|
|
|
return new ReturnT<String>(500, (I18nUtil.getString("system_please_input") + I18nUtil.getString("jobgroup_field_title")) ); |
|
|
|
return new ReturnT<String>(500, (I18nUtil.getString("system_please_input") + I18nUtil.getString("jobgroup_field_title")) ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (xxlJobGroup.getTitle().contains(">") || xxlJobGroup.getTitle().contains("<")) { |
|
|
|
|
|
|
|
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_title")+I18nUtil.getString("system_unvalid") ); |
|
|
|
|
|
|
|
} |
|
|
|
if (xxlJobGroup.getAddressType()!=0) { |
|
|
|
if (xxlJobGroup.getAddressType()!=0) { |
|
|
|
if (xxlJobGroup.getAddressList()==null || xxlJobGroup.getAddressList().trim().length()==0) { |
|
|
|
if (xxlJobGroup.getAddressList()==null || xxlJobGroup.getAddressList().trim().length()==0) { |
|
|
|
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_addressType_limit") ); |
|
|
|
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_addressType_limit") ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (xxlJobGroup.getAddressList().contains(">") || xxlJobGroup.getAddressList().contains("<")) { |
|
|
|
|
|
|
|
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_registryList")+I18nUtil.getString("system_unvalid") ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String[] addresss = xxlJobGroup.getAddressList().split(","); |
|
|
|
String[] addresss = xxlJobGroup.getAddressList().split(","); |
|
|
|
for (String item: addresss) { |
|
|
|
for (String item: addresss) { |
|
|
|
if (item==null || item.trim().length()==0) { |
|
|
|
if (item==null || item.trim().length()==0) { |
|
|
|