/** * 【八】 * * @author Rexsen 对终端信息进行备份 【对客户和联系人关系进行备份】 【t_client_contacts_relation】 【id】 */ @Override public int addClientContactsRelation(ClientContactsRelationView ccrv) { // TODO Auto-generated method stub Map<String, Object> params = new HashMap<String, Object>(); params.put("majorId", ccrv.getId()); params.put("majorKey", "id"); params.put("tab", "t_client_contacts_relation"); params.put("userId", ccrv.getUserId()); int insOrupResult = clientmapper.selCenter(params); int result = 0; if (insOrupResult > 0) { result = clientmapper.upClientContactsRelation(ccrv); } else { result = clientmapper.addClientContactsRelation(ccrv); } return result; }