/** * 【四】 * * @author Rexsen 对终端信息进行备份 【收款】 【t_sale_money】 【money_id】 */ @Override public int addChanceMoney(ChanceMoneyView cmv) { // TODO Auto-generated method stub Map<String, Object> params = new HashMap<String, Object>(); params.put("majorId", cmv.getMoneyId()); params.put("majorKey", "money_id"); params.put("tab", "t_sale_money"); params.put("userId", cmv.getUserId()); int insOrupResult = clientmapper.selCenter(params); int result = 0; if (insOrupResult > 0) { result = clientmapper.upChanceMoney(cmv); } else { result = clientmapper.addChanceMoney(cmv); } return result; }