| | |
| | | for(OrderItemSon orderItemSon:orderItemSonList){ |
| | | if(skuNoSet.contains(orderItemSon.getGoodsNo())){ |
| | | //疗程次数叠加,退款的也需要减去 |
| | | chekCureVo.setCureNum(chekCureVo.getCureNum()+orderItem.getUsedTotal()-orderItem.getHasReNum()); |
| | | chekCureVo.setCureNum(chekCureVo.getCureNum()+orderItemSon.getUsedTotal()-orderItemSon.getHasReNum()); |
| | | chekCureVo.setCureProject(true); |
| | | } |
| | | } |
| | |
| | | |
| | | values.put("orderItemId",orderItemId); |
| | | values.put("goodsType",goodsType); |
| | | sqlSentence.sqlSentence("SELECT id,type,goodsId,goodsNo,goodsName,usedTotal,hasReNum FROM order_item_source WHERE isDel = 0 AND orderItemId = #{m.orderItemId} AND type = #{m.type}",values); |
| | | sqlSentence.sqlSentence("SELECT id,type,goodsId,goodsNo,goodsName,usedTotal,hasReNum FROM order_item_source WHERE isDel = 0 AND orderItemId = #{m.orderItemId} AND type = #{m.goodsType}",values); |
| | | return commonService.selectList(OrderItemSonMapper.class,sqlSentence); |
| | | } |
| | | |