/** * 【一】 * * @author Rexsen 对终端信息进行备份 【客户】 【t_sale_client】 【client_id】 */ @Override public int addClient(ClientView cv) { // TODO Auto-generated method stub Map<String, Object> params = new HashMap<String, Object>(); params.put("majorId", cv.getClientId()); params.put("majorKey", "client_id"); params.put("tab", "t_sale_client"); params.put("userId", cv.getUserId()); int insOrupResult = clientmapper.selCenter(params); int result = 0; if (insOrupResult > 0) { result = clientmapper.upClient(cv); } else { result = clientmapper.addClient(cv); } return result; }