| | |
| | | values.put("status",RefundRecordConsumePay.NO); |
| | | values.put("statusOld",RefundRecordConsumePay.YES); |
| | | values.put("id",refundRecordConsumePay.getId()); |
| | | sqlSentence.sqlUpdate("status = #{m.status} WHERE id = #{m.id} AND statusOld = #{m.statusOld}",values); |
| | | sqlSentence.sqlUpdate("status = #{m.status} WHERE id = #{m.id} AND status = #{m.statusOld}",values); |
| | | if(commonService.updateWhere(RefundRecordConsumePayMapper.class,sqlSentence) != 1){ |
| | | throw new TipsException("退款金额记录状态错误!"); |
| | | } |
| | |
| | | } |
| | | |
| | | //找到用户项目 |
| | | UserProjectItem userProjectItem = PartialRefundUtil.getUserProject(refundRecordItem.getId(),commonService); |
| | | UserProjectItem userProjectItem = PartialRefundUtil.getUserProject(orderItem.getId(),commonService); |
| | | if (userProjectItem == null) { |
| | | throw new PlatTipsException(PlatformCode.ERROR_TIPS,orderItem.getGoodsName()+"["+orderItem.getGoodsNo()+"]"+"未找到用户子项项目信息"); |
| | | } |