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强制更新
String [] oldVersion = version.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++) {
if(Integer.valueOf(newVersion[i])>Integer.valueOf(oldVersion[i])){
res = new JSONObject();
res.put("update_content", updateContent);
update_type = 1;
if (isUpdate) {
update_type = 2;
@ -1142,6 +1141,7 @@ public class RetailAppServiceImp implements RetailAppService {
return res;
}
}
res.put("update_type", update_type);
return res;
}

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

Loading…
Cancel
Save