| | |
| | | payFeePo.setUserId("-1");; |
| | | String id = po.getId(); |
| | | po.setId(null); |
| | | Object o = ((HashMap) sqlSessionTemplate.selectList("phoneBillFlowServiceDaoImpl.queryPhoneBillFlowsCount", BeanConvertUtil.beanCovertMap(po)).get(0)).get("count"); |
| | | if (Integer.parseInt(Vtil.defaultValue(o, "1")) != 0) { |
| | | throw new IllegalArgumentException("重复的话费"); |
| | | } |
| | | // Object o = ((HashMap) sqlSessionTemplate.selectList("phoneBillFlowServiceDaoImpl.queryPhoneBillFlowsCount", BeanConvertUtil.beanCovertMap(po)).get(0)).get("count"); |
| | | // if (Integer.parseInt(Vtil.defaultValue(o, "1")) != 0) { |
| | | // throw new IllegalArgumentException("重复的话费"); |
| | | // } |
| | | po.setId(id); |
| | | // reqJson.put("feeId", payFeePo.getFeeId()); |
| | | // String id = payFeePo.getFeeId(); |
| | |
| | | // throw new IllegalArgumentException("重复的话费"); |
| | | // } |
| | | // payFeePo.setFeeId(id); |
| | | |
| | | sqlSessionTemplate.insert("phoneBillFlowServiceDaoImpl.savePhoneBillFlowInfo", BeanConvertUtil.beanCovertMap(po)); |
| | | payFeePo.setTest("导入内容,先不做离散"); |
| | | int flag = payFeeV1InnerServiceSMOImpl.savePayFee(payFeePo); |
| | | if (flag < 1) { |
| | | throw new CmdException("保存数据失败"); |