Commit 85bda354 authored by hongguangwu's avatar hongguangwu

MVP1.7.18-法大大公司主体相关

parent e7e73f80
...@@ -102,24 +102,35 @@ public class TFascCompanyController { ...@@ -102,24 +102,35 @@ public class TFascCompanyController {
} }
private R<Boolean> judgeFieldMust(TFascCompany tFascCompany) { private R<Boolean> judgeFieldMust(TFascCompany tFascCompany) {
if (Common.isEmpty(tFascCompany.getAppId())) { if (Common.isEmpty(tFascCompany.getAppId())) {
return R.failed("请填写appId!"); return R.failed("请填写appId!");
} else if (tFascCompany.getAppId().length() > CommonConstants.INTEGER_HUNDRED) {
return R.failed("appId不能超过100个字符!");
} }
if (Common.isEmpty(tFascCompany.getAppSecret())) { if (Common.isEmpty(tFascCompany.getAppSecret())) {
return R.failed("请填写appSecret!"); return R.failed("请填写appSecret!");
} else if (tFascCompany.getAppSecret().length() > CommonConstants.INTEGER_HUNDRED) {
return R.failed("appSecret不能超过100个字符!");
} }
if (Common.isEmpty(tFascCompany.getAppUrl())) { if (Common.isEmpty(tFascCompany.getAppUrl())) {
return R.failed("请填写AppUrl!"); return R.failed("请填写appUrl!");
} else if (tFascCompany.getAppUrl().length() > CommonConstants.INTEGER_HUNDRED) {
return R.failed("appUrl不能超过100个字符!");
} }
if (Common.isEmpty(tFascCompany.getOpenId())) { if (Common.isEmpty(tFascCompany.getOpenId())) {
return R.failed("请填写openCorpId!"); return R.failed("请填写openCorpId!");
} else if (tFascCompany.getOpenId().length() > CommonConstants.INTEGER_HUNDRED) {
return R.failed("openCorpId不能超过100个字符!");
} }
if (Common.isEmpty(tFascCompany.getAppUrl())) { if (Common.isEmpty(tFascCompany.getAppUrl())) {
return R.failed("请填写appUrl!"); return R.failed("请填写appUrl!");
} else if (tFascCompany.getAppUrl().length() > CommonConstants.INTEGER_HUNDRED) {
return R.failed("appUrl不能超过100个字符!");
} }
if (Common.isEmpty(tFascCompany.getBusinessId())) { if (Common.isEmpty(tFascCompany.getBusinessId())) {
return R.failed("请填写businessId!"); return R.failed("请填写businessId!");
} else if (tFascCompany.getBusinessId().length() > CommonConstants.INTEGER_HUNDRED) {
return R.failed("businessId不能超过100个字符!");
} }
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment