master
wangning 7 years ago
parent eff977631e
commit e27ec59a6a

@ -428,22 +428,24 @@ public class RetailAppServiceImp implements RetailAppService {
if (clientType.equals("iphone")) { if (clientType.equals("iphone")) {
res.put("skip_clearing", !res.getBoolean("skip_clearing")); res.put("skip_clearing", !res.getBoolean("skip_clearing"));
} }
res.put("refuse_remark",clientWithConfig.getString("refuse_remark")); if("4".equals(clientWithConfig.getString("source"))) {
res.put("base_info_lack", false); res.put("refuse_remark", clientWithConfig.getString("refuse_remark"));
res.put("compliance_info_lack", false); res.put("base_info_lack", false);
if(StringUtils.isEmpty(clientWithConfig.getString("business_structure"))|| res.put("compliance_info_lack", false);
StringUtils.isEmpty(clientWithConfig.getString("logo_url"))|| if (StringUtils.isEmpty(clientWithConfig.getString("business_structure")) ||
StringUtils.isEmpty(clientWithConfig.getString("description")) || StringUtils.isEmpty(clientWithConfig.getString("logo_url")) ||
("Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("acn")))|| StringUtils.isEmpty(clientWithConfig.getString("description")) ||
(!"Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("abn")))|| ("Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("acn"))) ||
(StringUtils.isEmpty(clientWithConfig.getString("company_website")) && StringUtils.isEmpty(clientWithConfig.getString("company_photo")) &&StringUtils.isEmpty(clientWithConfig.getString("store_photo")))) { (!"Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("abn"))) ||
res.put("base_info_lack", true); (StringUtils.isEmpty(clientWithConfig.getString("company_website")) && StringUtils.isEmpty(clientWithConfig.getString("company_photo")) && StringUtils.isEmpty(clientWithConfig.getString("store_photo")))) {
res.put("base_info_lack", true);
}
JSONObject file = clientManager.getAuthFiles(null, clientWithConfig.getString("client_moniker")); }
for (String s : fileName) { JSONObject file = clientManager.getAuthFiles(null, clientWithConfig.getString("client_moniker"));
if (file.getString(s) == null) { for (String s : fileName) {
res.put("compliance_info_lack", true); if (file.getString(s) == null) {
res.put("compliance_info_lack", true);
}
} }
} }
return res; return res;

Loading…
Cancel
Save