fix app修改法人信息

luoyang 5 years ago
parent 5ea9ba1afe
commit 648b3b5f01

@ -73,16 +73,16 @@ public class AppClientBean {
public JSONObject legalObject() {
JSONObject res = new JSONObject();
if (legalPerson != null) {
res.put("legal_person", legalPerson);
res.put("representative_person", legalPerson);
}
if (legalPhone != null) {
res.put("legal_phone", legalPhone);
res.put("phone", legalPhone);
}
if (legalEmail != null) {
res.put("legal_email", legalEmail);
res.put("email", legalEmail);
}
if (legalJobTitle != null) {
res.put("legal_job_title", legalJobTitle);
res.put("job_title", legalJobTitle);
}
return res;
}

@ -4130,7 +4130,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject clientLegal = appClientBean.legalObject();
if (clientLegal.size() > 0) {
clientLegal.put("client_id", client_id);
sysClientLegalPersonMapper.update(clientLegal);
JSONObject oldClienetLegal = sysClientLegalPersonMapper.findRepresentativeInfo(client_id);
if (oldClienetLegal == null) {
sysClientLegalPersonMapper.save(clientLegal);
}else {
sysClientLegalPersonMapper.update(clientLegal);
}
}
if (appClientBean.getCustomerSurchargeRate() != null) {
if (appClientBean.getCustomerSurchargeRate() <= 0) {

Loading…
Cancel
Save