Merge branch 'hotfixa' into develop

master
wangning 7 years ago
commit 4cb5afca1a

@ -168,7 +168,7 @@ public class RetailAppServiceImp implements RetailAppService {
private ClientModifySupport clientModifySupport; private ClientModifySupport clientModifySupport;
private Map<String, AppMsgSender> senderMap = new HashMap<>(); private Map<String, AppMsgSender> senderMap = new HashMap<>();
private final String fileName[] = { "client_bank_file", "client_id_file", "client_company_file"}; private final String fileName[] = { "client_bank_file", "client_id_file", "client_company_file" };
@Resource @Resource
public void setAppMsgSenders(AppMsgSender[] senders) { public void setAppMsgSenders(AppMsgSender[] senders) {
@ -428,16 +428,16 @@ 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"));
} }
if("4".equals(clientWithConfig.getString("source"))) { if ("4".equals(clientWithConfig.getString("source"))) {
res.put("refuse_remark", clientWithConfig.getString("refuse_remark")); res.put("refuse_remark", clientWithConfig.getString("refuse_remark"));
res.put("base_info_lack", false); res.put("base_info_lack", false);
res.put("compliance_info_lack", false); res.put("compliance_info_lack", false);
if (StringUtils.isEmpty(clientWithConfig.getString("business_structure")) || if (StringUtils.isEmpty(clientWithConfig.getString("business_structure")) || StringUtils.isEmpty(clientWithConfig.getString("logo_url"))
StringUtils.isEmpty(clientWithConfig.getString("logo_url")) || || StringUtils.isEmpty(clientWithConfig.getString("description"))
StringUtils.isEmpty(clientWithConfig.getString("description")) || || ("Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("acn")))
("Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("acn"))) || || (!"Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("abn")))
(!"Company".equals(clientWithConfig.getString("business_structure")) && StringUtils.isEmpty(clientWithConfig.getString("abn"))) || || (StringUtils.isEmpty(clientWithConfig.getString("company_website")) && StringUtils.isEmpty(clientWithConfig.getString("company_photo"))
(StringUtils.isEmpty(clientWithConfig.getString("company_website")) && StringUtils.isEmpty(clientWithConfig.getString("company_photo")) && StringUtils.isEmpty(clientWithConfig.getString("store_photo")))) { && StringUtils.isEmpty(clientWithConfig.getString("store_photo")))) {
res.put("base_info_lack", true); res.put("base_info_lack", true);
} }
@ -464,12 +464,12 @@ public class RetailAppServiceImp implements RetailAppService {
result.put("base_info_lack", false); result.put("base_info_lack", false);
result.put("compliance_info_lack", false); result.put("compliance_info_lack", false);
JSONObject client = clientMapper.findClient(device.getIntValue("client_id")); JSONObject client = clientMapper.findClient(device.getIntValue("client_id"));
if(StringUtils.isEmpty(client.getString("business_structure"))|| if (StringUtils.isEmpty(client.getString("business_structure")) || StringUtils.isEmpty(client.getString("logo_url"))
StringUtils.isEmpty(client.getString("logo_url"))|| || StringUtils.isEmpty(client.getString("description"))
StringUtils.isEmpty(client.getString("description")) || || ("Company".equals(client.getString("business_structure")) && StringUtils.isEmpty(client.getString("acn")))
("Company".equals(client.getString("business_structure")) && StringUtils.isEmpty(client.getString("acn")))|| || (!"Company".equals(client.getString("business_structure")) && StringUtils.isEmpty(client.getString("abn")))
(!"Company".equals(client.getString("business_structure")) && StringUtils.isEmpty(client.getString("abn")))|| || (StringUtils.isEmpty(client.getString("company_website")) && StringUtils.isEmpty(client.getString("company_photo"))
(StringUtils.isEmpty(client.getString("company_website")) && StringUtils.isEmpty(client.getString("company_photo")) &&StringUtils.isEmpty(client.getString("store_photo")))) { && StringUtils.isEmpty(client.getString("store_photo")))) {
result.put("base_info_lack", true); result.put("base_info_lack", true);
} }
@ -480,8 +480,8 @@ public class RetailAppServiceImp implements RetailAppService {
} }
} }
result.putAll(file); result.putAll(file);
result.put("approve_result",client.getString("approve_result")); result.put("approve_result", client.getString("approve_result"));
result.put("mail_confirm",client.getBoolean("mail_confirm")); result.put("mail_confirm", client.getBoolean("mail_confirm"));
return result; return result;
} }
@ -1290,6 +1290,10 @@ public class RetailAppServiceImp implements RetailAppService {
public JSONObject listDailyTransactions(String dateStr, String timezone, boolean thisDevOnly, JSONObject device, String app_client_ids) { public JSONObject listDailyTransactions(String dateStr, String timezone, boolean thisDevOnly, JSONObject device, String app_client_ids) {
try { try {
JSONObject client = clientManager.getClientInfo(device.getIntValue("client_id")); JSONObject client = clientManager.getClientInfo(device.getIntValue("client_id"));
if(client==null){
return null;
}
timezone = client.getString("timezone");
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
dateFormat.setTimeZone(TimeZone.getTimeZone(client.getString("timezone"))); dateFormat.setTimeZone(TimeZone.getTimeZone(client.getString("timezone")));
Date date = dateFormat.parse(dateStr); Date date = dateFormat.parse(dateStr);

Loading…
Cancel
Save