| | |
| | | import cn.hutool.json.JSONArray; |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | orderItem.setState(1); |
| | | |
| | | if (addOrderDto.getType() == 1) { |
| | | mallShoppingCartMapper.delBySkuId(item.getSkuId(), member.getId()); |
| | | LambdaQueryWrapper<MallShoppingCart> delQuery = new LambdaQueryWrapper<>(); |
| | | delQuery.eq(MallShoppingCart::getGoodsId, item.getSkuId()) |
| | | .eq(MallShoppingCart::getMemberId, member.getId()); |
| | | mallShoppingCartMapper.delete(delQuery); |
| | | } |
| | | total = total.add(amount); |
| | | } else { |