Merge branch 'hotfixa' into develop

master
wangning 7 years ago
commit 4cb5afca1a

@ -432,12 +432,12 @@ public class RetailAppServiceImp implements RetailAppService {
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);
} }
@ -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