fix app修改法人信息

master
luoyang 5 years ago
parent 880897dfba
commit 4403f22bba

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

@ -4130,7 +4130,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject clientLegal = appClientBean.legalObject(); JSONObject clientLegal = appClientBean.legalObject();
if (clientLegal.size() > 0) { if (clientLegal.size() > 0) {
clientLegal.put("client_id", client_id); 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() != null) {
if (appClientBean.getCustomerSurchargeRate() <= 0) { if (appClientBean.getCustomerSurchargeRate() <= 0) {

Loading…
Cancel
Save