| | |
| | | values.put("orderId", orderId); |
| | | values.put("orderItemId", orderItemId); |
| | | if(StringUtils.isEmpty(orderItemSonId)){ |
| | | sqlSentence.setSqlSentence(" userProjectItemId = #{m.userProjectItemId} where orderId = #{m.orderId} and orderItemId = #{m.orderItemId} and userProjectItemId is null "); |
| | | sqlSentence.setSqlSentence(" userProjectItemId = #{m.userProjectItemId}, isUserPro = 1 where orderId = #{m.orderId} and orderItemId = #{m.orderItemId} and userProjectItemId is null "); |
| | | }else{ |
| | | values.put("orderItemSonId", orderItemSonId); |
| | | sqlSentence.setSqlSentence(" userProjectItemId = #{m.userProjectItemId} where orderId = #{m.orderId} and orderItemId = #{m.orderItemId} and orderItemSonId = #{m.orderItemSonId} and userProjectItemId is null "); |
| | | sqlSentence.setSqlSentence(" userProjectItemId = #{m.userProjectItemId}, isUserPro = 1 where orderId = #{m.orderId} and orderItemId = #{m.orderItemId} and orderItemSonId = #{m.orderItemSonId} and userProjectItemId is null "); |
| | | } |
| | | commonService.updateWhere(TreatProjectMapper.class, sqlSentence); |
| | | } |