master
wangning 7 years ago
parent effe1d79f6
commit f86c8c0b98

@ -1129,11 +1129,10 @@ public class RetailAppServiceImp implements RetailAppService {
int update_type = 0;// 0:不更新 1更新 2强制更新 int update_type = 0;// 0:不更新 1更新 2强制更新
String [] oldVersion = version.split("\\."); String [] oldVersion = version.split("\\.");
String [] newVersion = newAppVersion.split("\\."); String [] newVersion = newAppVersion.split("\\.");
JSONObject res = null; JSONObject res = new JSONObject();
res.put("update_content", updateContent);
for (int i = 0; i < newVersion.length; i++) { for (int i = 0; i < newVersion.length; i++) {
if(Integer.valueOf(newVersion[i])>Integer.valueOf(oldVersion[i])){ if(Integer.valueOf(newVersion[i])>Integer.valueOf(oldVersion[i])){
res = new JSONObject();
res.put("update_content", updateContent);
update_type = 1; update_type = 1;
if (isUpdate) { if (isUpdate) {
update_type = 2; update_type = 2;
@ -1142,6 +1141,7 @@ public class RetailAppServiceImp implements RetailAppService {
return res; return res;
} }
} }
res.put("update_type", update_type);
return res; return res;
} }

@ -78,6 +78,8 @@ public class ClientContractServiceImpl implements ClientContractService {
if (contract != null && contract.getBoolean("has_sign")) { if (contract != null && contract.getBoolean("has_sign")) {
return; return;
} }
getOrGenerateSourceAgreement(client_id, channel);
Date now = new Date(); Date now = new Date();
JSONObject account = clientAccountMapper.findById(account_id); JSONObject account = clientAccountMapper.findById(account_id);
contract.put("has_sign", 1); contract.put("has_sign", 1);
@ -86,7 +88,6 @@ public class ClientContractServiceImpl implements ClientContractService {
contract.put("confirm_time", now); contract.put("confirm_time", now);
contract.put("signatory", account.getString("display_name")); contract.put("signatory", account.getString("display_name"));
clientsContractMapper.update(contract); clientsContractMapper.update(contract);
getOrGenerateSourceAgreement(client_id, channel);
clientManager.setClientTaxInSurcharge(client.getString("client_moniker"), false); clientManager.setClientTaxInSurcharge(client.getString("client_moniker"), false);
} }

Loading…
Cancel
Save